Logo ROOT  
Reference Guide
 
Loading...
Searching...
No Matches
TMacOSXSystem Class Reference

Definition at line 39 of file TMacOSXSystem.h.

Public Member Functions

 TMacOSXSystem ()
 
 ~TMacOSXSystem ()
 
bool CocoaInitialized () const
 
void DispatchOneEvent (Bool_t pendingOnly)
 Dispatch a single event.
 
- Public Member Functions inherited from TUnixSystem
 TUnixSystem ()
 
virtual ~TUnixSystem ()
 Reset to original state.
 
void Abort (int code=0) override
 Abort the application.
 
int AcceptConnection (int sock) override
 Accept a connection.
 
Bool_t AccessPathName (const char *path, EAccessMode mode=kFileExists) override
 Returns FALSE if one can access a file using the specified access mode.
 
void AddDynamicPath (const char *lib) override
 Add a new directory to the dynamic path.
 
void AddFileHandler (TFileHandler *fh) override
 Add a file handler to the list of system file handlers.
 
void AddSignalHandler (TSignalHandler *sh) override
 Add a signal handler to list of system signal handlers.
 
void AddTimer (TTimer *ti) override
 Add timer to list of system timers.
 
int AnnounceTcpService (int port, Bool_t reuse, int backlog, int tcpwindowsize=-1) override
 Announce TCP/IP service.
 
int AnnounceUdpService (int port, int backlog) override
 Announce UDP service.
 
int AnnounceUnixService (const char *sockpath, int backlog) override
 Announce unix domain service on path 'sockpath'.
 
int AnnounceUnixService (int port, int backlog) override
 Announce unix domain service on path "kServerPath/<port>".
 
Bool_t ChangeDirectory (const char *path) override
 Change directory. Returns kTRUE in case of success, kFALSE otherwise.
 
void CheckChilds ()
 Check if children have finished.
 
Bool_t CheckDescriptors ()
 Check if there is activity on some file descriptors and call their Notify() member.
 
Bool_t CheckSignals (Bool_t sync)
 Check if some signals were raised and call their Notify() member.
 
int Chmod (const char *file, UInt_t mode) override
 Set the file permission bits. Returns -1 in case or error, 0 otherwise.
 
void CloseConnection (int sock, Bool_t force=kFALSE) override
 Close socket.
 
void Closelog () override
 Close connection to system log daemon.
 
int ClosePipe (FILE *pipe) override
 Close the pipe.
 
int ConnectService (const char *server, int port, int tcpwindowsize, const char *protocol="tcp")
 Connect to service servicename on server servername.
 
int CopyFile (const char *from, const char *to, Bool_t overwrite=kFALSE) override
 Copy a file.
 
void DispatchOneEvent (Bool_t pendingOnly=kFALSE) override
 Dispatch a single event.
 
void DispatchSignals (ESignals sig)
 Handle and dispatch signals.
 
Bool_t DispatchTimers (Bool_t mode)
 Handle and dispatch timers.
 
Func_t DynFindSymbol (const char *module, const char *entry) override
 dynamic linking of module
 
Int_t Exec (const char *shellcmd) override
 Execute a command.
 
void Exit (int code, Bool_t mode=kTRUE) override
 Exit the application.
 
char * ExpandPathName (const char *path) override
 Expand a pathname getting rid of special shell characaters like ~.
 
Bool_t ExpandPathName (TString &patbuf) override
 Expand a pathname getting rid of special shell characters like ~.
 
const char * FindDynamicLibrary (TString &lib, Bool_t quiet=kFALSE) override
 Returns the path of a shared library (searches for library in the shared library search path).
 
const char * FindFile (const char *search, TString &file, EAccessMode mode=kFileExists) override
 Find location of file "wfil" in a search path.
 
void FreeDirectory (void *dirp) override
 Close a Unix file system directory.
 
int GetCpuInfo (CpuInfo_t *info, Int_t sampleTime=1000) const override
 Returns cpu load average and load info into the CpuInfo_t structure.
 
const char * GetDirEntry (void *dirp) override
 Get next Unix file system directory entry. Returns 0 if no more entries.
 
const char * GetDynamicPath () override
 Return the dynamic path (used to find shared libraries).
 
Int_t GetEffectiveGid () override
 Returns the effective group id.
 
Int_t GetEffectiveUid () override
 Returns the effective user id.
 
const char * Getenv (const char *name) override
 Get environment variable.
 
const char * GetError () override
 Return system error string.
 
Int_t GetFPEMask () override
 Return the bitmap of conditions that trigger a floating point exception.
 
int GetFsInfo (const char *path, Long_t *id, Long_t *bsize, Long_t *blocks, Long_t *bfree) override
 Get info about a file system: id, bsize, bfree, blocks.
 
Int_t GetGid (const char *group=nullptr) override
 Returns the group's id. If group = 0, returns current user's group.
 
UserGroup_tGetGroupInfo (const char *group=nullptr) override
 Returns all group info in the UserGroup_t structure.
 
UserGroup_tGetGroupInfo (Int_t gid) override
 Returns all group info in the UserGroup_t structure.
 
std::string GetHomeDirectory (const char *userName=nullptr) const override
 Return the user's home directory.
 
TInetAddress GetHostByName (const char *server) override
 Get Internet Protocol (IP) address of host.
 
int GetMemInfo (MemInfo_t *info) const override
 Returns ram and swap memory usage info into the MemInfo_t structure.
 
int GetPathInfo (const char *path, FileStat_t &buf) override
 Get info about a file.
 
TInetAddress GetPeerName (int sock) override
 Get Internet Protocol (IP) address of remote host and port #.
 
int GetPid () override
 Get process id.
 
int GetProcInfo (ProcInfo_t *info) const override
 Returns cpu and memory used by this process into the ProcInfo_t structure.
 
int GetServiceByName (const char *service) override
 Get port # of internet service.
 
char * GetServiceByPort (int port) override
 Get name of internet service.
 
TInetAddress GetSockName (int sock) override
 Get Internet Protocol (IP) address of host and port #.
 
int GetSockOpt (int sock, int option, int *val) override
 Get socket option.
 
int GetSysInfo (SysInfo_t *info) const override
 Returns static system info, like OS type, CPU type, number of CPUs RAM size, etc into the SysInfo_t structure.
 
Int_t GetUid (const char *user=nullptr) override
 Returns the user's id. If user = 0, returns current user's id.
 
UserGroup_tGetUserInfo (const char *user=nullptr) override
 Returns all user info in the UserGroup_t structure.
 
UserGroup_tGetUserInfo (Int_t uid) override
 Returns all user info in the UserGroup_t structure.
 
std::string GetWorkingDirectory () const override
 Return working directory.
 
const char * HomeDirectory (const char *userName=nullptr) override
 Return the user's home directory.
 
const char * HostName () override
 Return the system's host name.
 
void IgnoreSignal (ESignals sig, Bool_t ignore=kTRUE) override
 If ignore is true ignore the specified signal, else restore previous behaviour.
 
Bool_t Init () override
 Initialize Unix system interface.
 
Bool_t IsPathLocal (const char *path) override
 Returns TRUE if the url in 'path' points to the local file system.
 
int Link (const char *from, const char *to) override
 Create a link from file1 to file2.
 
void ListLibraries (const char *regexp="") override
 List all loaded shared libraries.
 
void ListSymbols (const char *module, const char *re="") override
 List symbols in a shared library.
 
int Load (const char *module, const char *entry="", Bool_t system=kFALSE) override
 Load a shared library.
 
int MakeDirectory (const char *name) override
 Make a Unix file system directory.
 
TTime Now () override
 Get current time in milliseconds since 0:00 Jan 1 1995.
 
int OpenConnection (const char *server, int port, int tcpwindowsize=-1, const char *protocol="tcp") override
 Open a connection to a service on a server.
 
voidOpenDirectory (const char *name) override
 Open a Unix file system directory. Returns 0 if directory does not exist.
 
void Openlog (const char *name, Int_t options, ELogFacility facility) override
 Open connection to system log daemon.
 
FILE * OpenPipe (const char *shellcmd, const char *mode) override
 Open a pipe.
 
const char * PrependPathName (const char *dir, TString &name) override
 Concatenate a directory and a file name.
 
int RecvBuf (int sock, void *buffer, int length) override
 Receive a buffer headed by a length indicator.
 
int RecvRaw (int sock, void *buffer, int length, int flag) override
 Receive exactly length bytes into buffer.
 
Int_t RedirectOutput (const char *name, const char *mode="a", RedirectHandle_t *h=nullptr) override
 Redirect standard output (stdout, stderr) to the specified file.
 
TFileHandlerRemoveFileHandler (TFileHandler *fh) override
 Remove a file handler from the list of file handlers.
 
TSignalHandlerRemoveSignalHandler (TSignalHandler *sh) override
 Remove a signal handler from list of signal handlers.
 
TTimerRemoveTimer (TTimer *ti) override
 Remove timer from list of system timers.
 
int Rename (const char *from, const char *to) override
 Rename a file. Returns 0 when successful, -1 in case of failure.
 
void ResetSignal (ESignals sig, Bool_t reset=kTRUE) override
 If reset is true reset the signal handler for the specified signal to the default handler, else restore previous behaviour.
 
void ResetSignals () override
 Reset signals handlers to previous behaviour.
 
void ResetTimer (TTimer *ti) override
 Reset a-sync timer.
 
Int_t Select (TFileHandler *fh, Long_t timeout) override
 Select on the file descriptor related to file handler h.
 
Int_t Select (TList *active, Long_t timeout) override
 Select on file descriptors.
 
int SendBuf (int sock, const void *buffer, int length) override
 Send a buffer headed by a length indicator.
 
int SendRaw (int sock, const void *buffer, int length, int flag) override
 Send exactly length bytes from buffer.
 
void SetDisplay () override
 Set DISPLAY environment variable based on utmp entry. Only for UNIX.
 
void SetDynamicPath (const char *lib) override
 Set the dynamic path to a new value.
 
void Setenv (const char *name, const char *value) override
 Set environment variable.
 
Int_t SetFPEMask (Int_t mask=kDefaultMask) override
 Set which conditions trigger a floating point exception.
 
void SetProgname (const char *name) override
 Set the application name (from command line, argv[0]) and copy it in gProgName.
 
int SetSockOpt (int sock, int option, int val) override
 Set socket option.
 
void SigAlarmInterruptsSyscalls (Bool_t set) override
 When the argument is true the SIGALRM signal handler is set so that interrupted syscalls will not be restarted by the kernel.
 
void Sleep (UInt_t milliSec) override
 Sleep milliSec milliseconds.
 
void StackTrace () override
 Print a stack trace.
 
int Symlink (const char *from, const char *to) override
 Create a symlink from file1 to file2.
 
void Syslog (ELogLevel level, const char *mess) override
 Send mess to syslog daemon.
 
const char * TempDirectory () const override
 Return a user configured or systemwide directory to create temporary files in.
 
FILE * TempFileName (TString &base, const char *dir=nullptr) override
 Create a secure temporary file by appending a unique 6 letter string to base.
 
int Umask (Int_t mask) override
 Set the process file creation mode mask.
 
int Unlink (const char *name) override
 Unlink, i.e.
 
void Unload (const char *module) override
 Unload a shared library.
 
void Unsetenv (const char *name) override
 Unset environment variable.
 
int Utime (const char *file, Long_t modtime, Long_t actime) override
 Set a files modification and access times.
 
const char * WorkingDirectory () override
 Return working directory.
 
- Public Member Functions inherited from TSystem
 TSystem (const char *name="Generic", const char *title="Generic System")
 Create a new OS interface.
 
virtual ~TSystem ()
 Delete the OS interface.
 
virtual void AddIncludePath (const char *includePath)
 Add a directory to the already set include path.
 
virtual void AddLinkedLibs (const char *linkedLib)
 Add linkedLib to already set linked libs.
 
virtual void AddStdExceptionHandler (TStdExceptionHandler *eh)
 Add an exception handler to list of system exception handlers.
 
virtual const char * BaseName (const char *pathname)
 Base name of a file name. Base name of /user/root is root.
 
void Beep (Int_t freq=-1, Int_t duration=-1, Bool_t setDefault=kFALSE)
 Beep for duration milliseconds with a tone of frequency freq.
 
Bool_t cd (const char *path)
 
virtual void CleanCompiledMacros ()
 Remove the shared libs produced by the CompileMacro() function.
 
virtual int CompileMacro (const char *filename, Option_t *opt="", const char *library_name="", const char *build_dir="", UInt_t dirmode=0)
 This method compiles and loads a shared library containing the code from the file "filename".
 
virtual char * ConcatFileName (const char *dir, const char *name)
 Concatenate a directory and a file name. User must delete returned string.
 
virtual const char * DirName (const char *pathname)
 Return the directory name in pathname.
 
char * DynamicPathName (const char *lib, Bool_t quiet=kFALSE)
 Find a dynamic library called lib using the system search paths.
 
virtual void ExitLoop ()
 Exit from event loop.
 
virtual EAclicMode GetAclicMode () const
 AclicMode indicates whether the library should be built in debug mode or optimized.
 
virtual Int_t GetAclicProperties () const
 Return the ACLiC properties field.
 
void GetBeepDefaults (Int_t &freq, Int_t &duration) const
 
virtual const char * GetBuildArch () const
 Return the build architecture.
 
virtual const char * GetBuildCompiler () const
 Return the build compiler.
 
virtual const char * GetBuildCompilerVersion () const
 Return the build compiler version.
 
virtual const char * GetBuildCompilerVersionStr () const
 Return the build compiler version identifier string.
 
virtual const char * GetBuildDir () const
 Return the path of the build directory.
 
virtual const char * GetBuildNode () const
 Return the build node name.
 
virtual TString GetDirName (const char *pathname)
 Return the directory name in pathname.
 
virtual voidGetDirPtr () const
 
const char * GetErrorStr () const
 
virtual const char * GetFlagsDebug () const
 Return the debug flags.
 
virtual const char * GetFlagsOpt () const
 Return the optimization flags.
 
virtual TString GetFromPipe (const char *command)
 Execute command and return output in TString.
 
virtual const char * GetIncludePath ()
 Get the list of include path.
 
virtual const char * GetLibraries (const char *regexp="", const char *option="", Bool_t isRegexp=kTRUE)
 Return a space separated list of loaded shared libraries.
 
virtual const char * GetLinkdefSuffix () const
 Return the linkdef suffix chosen by the user for ACLiC.
 
virtual const char * GetLinkedLibs () const
 Return the list of library linked to this executable.
 
virtual TSeqCollectionGetListOfFileHandlers () const
 
virtual TSeqCollectionGetListOfSignalHandlers () const
 
virtual TSeqCollectionGetListOfStdExceptionHandlers () const
 
virtual TListGetListOfTimers () const
 
virtual const char * GetMakeExe () const
 Return the command line use to make an executable.
 
virtual const char * GetMakeSharedLib () const
 Return the command line use to make a shared library.
 
virtual const char * GetObjExt () const
 Get the object file extension.
 
int GetPathInfo (const char *path, Long_t *id, Long64_t *size, Long_t *flags, Long_t *modtime)
 Get info about a file: id, size, flags, modification time.
 
int GetPathInfo (const char *path, Long_t *id, Long_t *size, Long_t *flags, Long_t *modtime)
 Get info about a file: id, size, flags, modification time.
 
virtual const char * GetSoExt () const
 Get the shared library extension.
 
virtual TListGetVolumes (Option_t *) const
 
virtual void IgnoreInterrupt (Bool_t ignore=kTRUE)
 If ignore is true ignore the interrupt signal, else restore previous behaviour.
 
Bool_t InControl () const
 
virtual void InnerLoop ()
 Inner event loop.
 
virtual Bool_t IsAbsoluteFileName (const char *dir)
 Return true if dir is an absolute pathname.
 
virtual Bool_t IsFileInIncludePath (const char *name, char **fullpath=nullptr)
 Return true if 'name' is a file that can be found in the ROOT include path or the current directory.
 
virtual UInt_t LoadAllLibraries ()
 Load all libraries known to ROOT via the rootmap system.
 
virtual int mkdir (const char *name, Bool_t recursive=kFALSE)
 Make a file system directory.
 
virtual Long_t NextTimeOut (Bool_t mode)
 Time when next timer of mode (synchronous=kTRUE or asynchronous=kFALSE) will time-out (in ms).
 
virtual void NotifyApplicationCreated ()
 Hook to tell TSystem that the TApplication object has been created.
 
virtual Bool_t ProcessEvents ()
 Process pending events (GUI, timers, sockets).
 
const char * pwd ()
 
void RemoveOnExit (TObject *obj)
 Objects that should be deleted on exit of the OS interface.
 
virtual TStdExceptionHandlerRemoveStdExceptionHandler (TStdExceptionHandler *eh)
 Remove an exception handler from list of exception handlers.
 
virtual void Run ()
 System event loop.
 
virtual void SetAclicMode (EAclicMode mode)
 AclicMode indicates whether the library should be built in debug mode or optimized.
 
virtual void SetBuildDir (const char *build_dir, Bool_t isflat=kFALSE)
 Set the location where ACLiC will create libraries and use as a scratch area.
 
void SetErrorStr (const char *errstr)
 Set the system error string.
 
virtual void SetFlagsDebug (const char *)
 FlagsDebug should contain the options to pass to the C++ compiler in order to compile the library in debug mode.
 
virtual void SetFlagsOpt (const char *)
 FlagsOpt should contain the options to pass to the C++ compiler in order to compile the library in optimized mode.
 
virtual void SetIncludePath (const char *includePath)
 IncludePath should contain the list of compiler flags to indicate where to find user defined header files.
 
virtual void SetLinkdefSuffix (const char *suffix)
 The 'suffix' will be appended to the name of a script loaded by ACLiC and used to locate any eventual additional linkdef information that ACLiC should used to produce the dictionary.
 
virtual void SetLinkedLibs (const char *linkedLibs)
 LinkedLibs should contain the library directory and list of libraries needed to recreate the current executable.
 
virtual void SetMakeExe (const char *directives)
 Directives has the same syntax as the argument of SetMakeSharedLib but is used to create an executable.
 
virtual void SetMakeSharedLib (const char *directives)
 Directives should contain the description on how to compile and link a shared lib.
 
virtual void SetObjExt (const char *objExt)
 Set object files extension, should be either .o, .obj, etc.
 
virtual void SetSoExt (const char *soExt)
 Set shared library extension, should be either .so, .sl, .a, .dll, etc.
 
virtual void ShowOutput (RedirectHandle_t *h)
 Display the content associated with the redirection described by the opaque handle 'h'.
 
virtual TString SplitAclicMode (const char *filename, TString &mode, TString &args, TString &io) const
 This method split a filename of the form:
 
virtual const char * UnixPathName (const char *unixpathname)
 Convert from a local pathname to a Unix pathname.
 
virtual char * Which (const char *search, const char *file, EAccessMode mode=kFileExists)
 Find location of file in a search path.
 
- Public Member Functions inherited from TNamed
 TNamed ()
 
 TNamed (const char *name, const char *title)
 
 TNamed (const TNamed &named)
 TNamed copy ctor.
 
 TNamed (const TString &name, const TString &title)
 
virtual ~TNamed ()
 TNamed destructor.
 
virtual void Clear (Option_t *option="")
 Set name and title to empty strings ("").
 
virtual TObjectClone (const char *newname="") const
 Make a clone of an object using the Streamer facility.
 
virtual Int_t Compare (const TObject *obj) const
 Compare two TNamed objects.
 
virtual void Copy (TObject &named) const
 Copy this to obj.
 
virtual void FillBuffer (char *&buffer)
 Encode TNamed into output buffer.
 
virtual const char * GetName () const
 Returns name of object.
 
virtual const char * GetTitle () const
 Returns title of object.
 
virtual ULong_t Hash () const
 Return hash value for this object.
 
virtual Bool_t IsSortable () const
 
virtual void ls (Option_t *option="") const
 List TNamed name and title.
 
TNamedoperator= (const TNamed &rhs)
 TNamed assignment operator.
 
virtual void Print (Option_t *option="") const
 Print TNamed name and title.
 
virtual void SetName (const char *name)
 Set the name of the TNamed.
 
virtual void SetNameTitle (const char *name, const char *title)
 Set all the TNamed parameters (name and title).
 
virtual void SetTitle (const char *title="")
 Set the title of the TNamed.
 
virtual Int_t Sizeof () const
 Return size of the TNamed part of the TObject.
 
- Public Member Functions inherited from TObject
 TObject ()
 TObject constructor.
 
 TObject (const TObject &object)
 TObject copy ctor.
 
virtual ~TObject ()
 TObject destructor.
 
void AbstractMethod (const char *method) const
 Use this method to implement an "abstract" method that you don't want to leave purely abstract.
 
virtual void AppendPad (Option_t *option="")
 Append graphics object to current pad.
 
virtual void Browse (TBrowser *b)
 Browse object. May be overridden for another default action.
 
ULong_t CheckedHash ()
 Check and record whether this class has a consistent Hash/RecursiveRemove setup (*) and then return the regular Hash value for this object.
 
virtual const char * ClassName () const
 Returns name of class to which the object belongs.
 
virtual void Delete (Option_t *option="")
 Delete this object.
 
virtual Int_t DistancetoPrimitive (Int_t px, Int_t py)
 Computes distance from point (px,py) to the object.
 
virtual void Draw (Option_t *option="")
 Default Draw method for all objects.
 
virtual void DrawClass () const
 Draw class inheritance tree of the class to which this object belongs.
 
virtual TObjectDrawClone (Option_t *option="") const
 Draw a clone of this object in the current selected pad for instance with: gROOT->SetSelectedPad(gPad).
 
virtual void Dump () const
 Dump contents of object on stdout.
 
virtual void Error (const char *method, const char *msgfmt,...) const
 Issue error message.
 
virtual void Execute (const char *method, const char *params, Int_t *error=0)
 Execute method on this object with the given parameter string, e.g.
 
virtual void Execute (TMethod *method, TObjArray *params, Int_t *error=0)
 Execute method on this object with parameters stored in the TObjArray.
 
virtual void ExecuteEvent (Int_t event, Int_t px, Int_t py)
 Execute action corresponding to an event at (px,py).
 
virtual void Fatal (const char *method, const char *msgfmt,...) const
 Issue fatal error message.
 
virtual TObjectFindObject (const char *name) const
 Must be redefined in derived classes.
 
virtual TObjectFindObject (const TObject *obj) const
 Must be redefined in derived classes.
 
virtual Option_tGetDrawOption () const
 Get option used by the graphics system to draw this object.
 
virtual const char * GetIconName () const
 Returns mime type name of object.
 
virtual char * GetObjectInfo (Int_t px, Int_t py) const
 Returns string containing info about the object at position (px,py).
 
virtual Option_tGetOption () const
 
virtual UInt_t GetUniqueID () const
 Return the unique object id.
 
virtual Bool_t HandleTimer (TTimer *timer)
 Execute action in response of a timer timing out.
 
Bool_t HasInconsistentHash () const
 Return true is the type of this object is known to have an inconsistent setup for Hash and RecursiveRemove (i.e.
 
virtual void Info (const char *method, const char *msgfmt,...) const
 Issue info message.
 
virtual Bool_t InheritsFrom (const char *classname) const
 Returns kTRUE if object inherits from class "classname".
 
virtual Bool_t InheritsFrom (const TClass *cl) const
 Returns kTRUE if object inherits from TClass cl.
 
virtual void Inspect () const
 Dump contents of this object in a graphics canvas.
 
void InvertBit (UInt_t f)
 
Bool_t IsDestructed () const
 IsDestructed.
 
virtual Bool_t IsEqual (const TObject *obj) const
 Default equal comparison (objects are equal if they have the same address in memory).
 
virtual Bool_t IsFolder () const
 Returns kTRUE in case object contains browsable objects (like containers or lists of other objects).
 
R__ALWAYS_INLINE Bool_t IsOnHeap () const
 
R__ALWAYS_INLINE Bool_t IsZombie () const
 
void MayNotUse (const char *method) const
 Use this method to signal that a method (defined in a base class) may not be called in a derived class (in principle against good design since a child class should not provide less functionality than its parent, however, sometimes it is necessary).
 
virtual Bool_t Notify ()
 This method must be overridden to handle object notification.
 
void Obsolete (const char *method, const char *asOfVers, const char *removedFromVers) const
 Use this method to declare a method obsolete.
 
void operator delete (void *ptr)
 Operator delete.
 
void operator delete[] (void *ptr)
 Operator delete [].
 
voidoperator new (size_t sz)
 
voidoperator new (size_t sz, void *vp)
 
voidoperator new[] (size_t sz)
 
voidoperator new[] (size_t sz, void *vp)
 
TObjectoperator= (const TObject &rhs)
 TObject assignment operator.
 
virtual void Paint (Option_t *option="")
 This method must be overridden if a class wants to paint itself.
 
virtual void Pop ()
 Pop on object drawn in a pad to the top of the display list.
 
virtual Int_t Read (const char *name)
 Read contents of object with specified name from the current directory.
 
virtual void RecursiveRemove (TObject *obj)
 Recursively remove this object from a list.
 
void ResetBit (UInt_t f)
 
virtual void SaveAs (const char *filename="", Option_t *option="") const
 Save this object in the file specified by filename.
 
virtual void SavePrimitive (std::ostream &out, Option_t *option="")
 Save a primitive as a C++ statement(s) on output stream "out".
 
void SetBit (UInt_t f)
 
void SetBit (UInt_t f, Bool_t set)
 Set or unset the user status bits as specified in f.
 
virtual void SetDrawOption (Option_t *option="")
 Set drawing option for object.
 
virtual void SetUniqueID (UInt_t uid)
 Set the unique object id.
 
virtual void SysError (const char *method, const char *msgfmt,...) const
 Issue system error message.
 
R__ALWAYS_INLINE Bool_t TestBit (UInt_t f) const
 
Int_t TestBits (UInt_t f) const
 
virtual void UseCurrentStyle ()
 Set current style settings in this object This function is called when either TCanvas::UseCurrentStyle or TROOT::ForceStyle have been invoked.
 
virtual void Warning (const char *method, const char *msgfmt,...) const
 Issue warning message.
 
virtual Int_t Write (const char *name=0, Int_t option=0, Int_t bufsize=0)
 Write this object to the current directory.
 
virtual Int_t Write (const char *name=0, Int_t option=0, Int_t bufsize=0) const
 Write this object to the current directory.
 

Private Member Functions

 TMacOSXSystem (const TMacOSXSystem &rhs)
 
void AddFileHandler (TFileHandler *fh)
 Add a file handler to the list of system file handlers.
 
void InitializeCocoa ()
 
TMacOSXSystemoperator= (const TMacOSXSystem &rhs)
 
void ProcessApplicationDefinedEvent (void *event)
 
bool ProcessPendingEvents ()
 
TFileHandlerRemoveFileHandler (TFileHandler *fh)
 Remove a file handler from the list of file handlers.
 
void WaitEvents (Long_t nextto)
 

Private Attributes

bool fCocoaInitialized
 
bool fFirstDispatch
 
std::unique_ptr< ROOT::MacOSX::Details::MacOSXSystemfPimpl
 

Friends

class TGCocoa
 

Additional Inherited Members

- Public Types inherited from TSystem
enum  EAclicMode { kDefault , kDebug , kOpt }
 
enum  EAclicProperties { kFlatBuildDir = BIT(0) }
 
- Public Types inherited from TObject
enum  {
  kIsOnHeap = 0x01000000 , kNotDeleted = 0x02000000 , kZombie = 0x04000000 , kInconsistent = 0x08000000 ,
  kBitMask = 0x00ffffff
}
 
enum  { kSingleKey = BIT(0) , kOverwrite = BIT(1) , kWriteDelete = BIT(2) }
 
enum  EDeprecatedStatusBits { kObjInCanvas = BIT(3) }
 
enum  EStatusBits {
  kCanDelete = BIT(0) , kMustCleanup = BIT(3) , kIsReferenced = BIT(4) , kHasUUID = BIT(5) ,
  kCannotPick = BIT(6) , kNoContextMenu = BIT(8) , kInvalidObject = BIT(13)
}
 
- Static Public Member Functions inherited from TSystem
static Int_t GetErrno ()
 Static function returning system error number.
 
static void ResetErrno ()
 Static function resetting system error number.
 
- Static Public Member Functions inherited from TObject
static Longptr_t GetDtorOnly ()
 Return destructor only flag.
 
static Bool_t GetObjectStat ()
 Get status of object stat flag.
 
static void SetDtorOnly (void *obj)
 Set destructor only flag.
 
static void SetObjectStat (Bool_t stat)
 Turn on/off tracking of objects in the TObjectTable.
 
- Protected Types inherited from TObject
enum  { kOnlyPrepStep = BIT(3) }
 
- Protected Member Functions inherited from TUnixSystem
const char * GetLinkedLibraries () override
 Get list of shared libraries loaded at the start of the executable.
 
- Protected Member Functions inherited from TSystem
virtual Bool_t ConsistentWith (const char *path, void *dirptr=nullptr)
 Check consistency of this helper with the one required by 'path' or 'dirptr'.
 
virtual void DoBeep (Int_t=-1, Int_t=-1) const
 
virtual const char * ExpandFileName (const char *fname)
 Expand a pathname getting rid of special shell characters like ~.
 
virtual Bool_t ExpandFileName (TString &fname)
 Expand a pathname getting rid of special shell characters like ~.
 
TSystemFindHelper (const char *path, void *dirptr=nullptr)
 Create helper TSystem to handle file and directory operations that might be special for remote file access.
 
TStringGetLastErrorString ()
 Return the thread local storage for the custom last error message.
 
const TStringGetLastErrorString () const
 Return the thread local storage for the custom last error message.
 
- Protected Member Functions inherited from TObject
virtual void DoError (int level, const char *location, const char *fmt, va_list va) const
 Interface to ErrorHandler (protected).
 
void MakeZombie ()
 
- Static Protected Member Functions inherited from TUnixSystem
static int UnixFilestat (const char *path, FileStat_t &buf)
 Get info about a file.
 
static int UnixFSstat (const char *path, Long_t *id, Long_t *bsize, Long_t *blocks, Long_t *bfree)
 Get info about a file system: id, bsize, bfree, blocks.
 
static const char * UnixGetdirentry (void *dir)
 Returns the next directory entry.
 
static const char * UnixHomedirectory (const char *user, char *path, char *mydir)
 Returns the user's home directory.
 
static const char * UnixHomedirectory (const char *user=nullptr)
 Returns the user's home directory.
 
static void UnixIgnoreSignal (ESignals sig, Bool_t ignore)
 If ignore is true ignore the specified signal, else restore previous behaviour.
 
static int UnixMakedir (const char *name)
 Make a Unix file system directory.
 
static Long64_t UnixNow ()
 Get current time in milliseconds since 0:00 Jan 1 1995.
 
static voidUnixOpendir (const char *name)
 Open a directory.
 
static int UnixRecv (int sock, void *buf, int len, int flag)
 Receive exactly length bytes into buffer.
 
static void UnixResetSignal (ESignals sig)
 Restore old signal handler for specified signal.
 
static void UnixResetSignals ()
 Restore old signal handlers.
 
static int UnixSelect (Int_t nfds, TFdSet *readready, TFdSet *writeready, Long_t timeout)
 Wait for events on the file descriptors specified in the readready and writeready masks or for timeout (in milliseconds) to occur.
 
static int UnixSend (int sock, const void *buf, int len, int flag)
 Send exactly length bytes from buffer.
 
static int UnixSetitimer (Long_t ms)
 Set interval timer to time-out in ms milliseconds.
 
static void UnixSigAlarmInterruptsSyscalls (Bool_t set)
 When the argument is true the SIGALRM signal handler is set so that interrupted syscalls will not be restarted by the kernel.
 
static void UnixSignal (ESignals sig, SigHandler_t h)
 Set a signal handler for a signal.
 
static const char * UnixSigname (ESignals sig)
 Return the signal name associated with a signal.
 
static int UnixTcpConnect (const char *hostname, int port, int tcpwindowsize)
 Open a TCP/IP connection to server and connect to a service (i.e.
 
static int UnixTcpService (int port, Bool_t reuse, int backlog, int tcpwindowsize)
 Open a socket, bind to it and start listening for TCP/IP connections on the port.
 
static int UnixUdpConnect (const char *hostname, int port)
 Creates a UDP socket connection Is called via the TSocket constructor.
 
static int UnixUdpService (int port, int backlog)
 Open a socket, bind to it and start listening for UDP connections on the port.
 
static int UnixUnixConnect (const char *path)
 Connect to a Unix domain socket. Returns -1 in case of error.
 
static int UnixUnixConnect (int port)
 Connect to a Unix domain socket.
 
static int UnixUnixService (const char *sockpath, int backlog)
 Open a socket on path 'sockpath', bind to it and start listening for Unix domain connections to it.
 
static int UnixUnixService (int port, int backlog)
 Open a socket, bind to it and start listening for Unix domain connections to it.
 
static int UnixWaitchild ()
 Wait till child is finished.
 
- Static Protected Member Functions inherited from TSystem
static const char * StripOffProto (const char *path, const char *proto)
 Strip off protocol string from specified path.
 
- Protected Attributes inherited from TSystem
EAclicMode fAclicMode {kDefault}
 
Int_t fAclicProperties {0}
 
Int_t fBeepDuration {0}
 
Int_t fBeepFreq {0}
 
TString fBuildArch
 
TString fBuildCompiler
 
TString fBuildCompilerVersion
 
TString fBuildCompilerVersionStr
 
TString fBuildDir
 
TString fBuildNode
 
TSeqCollectionfCompiled {nullptr}
 
Bool_t fDone {kFALSE}
 
TSeqCollectionfFileHandler {nullptr}
 
TString fFlagsDebug
 
TString fFlagsOpt
 
TSeqCollectionfHelpers {nullptr}
 
TString fHostname
 
TString fIncludePath
 
Bool_t fInControl {kFALSE}
 
std::atomic< Bool_tfInsideNotify {kFALSE}
 
Int_t fLevel {0}
 
TString fLinkdefSuffix
 
TString fLinkedLibs
 
TString fListLibs
 
TString fListPaths
 
TString fMakeExe
 
TString fMakeSharedLib
 
Int_t fMaxrfd {-1}
 
Int_t fMaxwfd {-1}
 
Int_t fNfd {0}
 Signals that were trapped.
 
TString fObjExt
 
TSeqCollectionfOnExitList {nullptr}
 
TFdSetfReadmask {nullptr}
 
TFdSetfReadready {nullptr}
 Files that should be checked for write events.
 
Int_t fSigcnt {0}
 
TSeqCollectionfSignalHandler {nullptr}
 
TFdSetfSignals {nullptr}
 Files with writes waiting.
 
TString fSoExt
 
TSeqCollectionfStdExceptionHandler {nullptr}
 
TListfTimers {nullptr}
 
TString fWdpath
 
TFdSetfWritemask {nullptr}
 Files that should be checked for read events.
 
TFdSetfWriteready {nullptr}
 Files with reads waiting.
 
- Protected Attributes inherited from TNamed
TString fName
 
TString fTitle
 

#include <TMacOSXSystem.h>

Inheritance diagram for TMacOSXSystem:
[legend]

Constructor & Destructor Documentation

◆ TMacOSXSystem() [1/2]

TMacOSXSystem::TMacOSXSystem ( )

Definition at line 332 of file TMacOSXSystem.mm.

◆ ~TMacOSXSystem()

TMacOSXSystem::~TMacOSXSystem ( )

Definition at line 340 of file TMacOSXSystem.mm.

◆ TMacOSXSystem() [2/2]

TMacOSXSystem::TMacOSXSystem ( const TMacOSXSystem rhs)
private

Member Function Documentation

◆ AddFileHandler()

void TMacOSXSystem::AddFileHandler ( TFileHandler h)
privatevirtual

Add a file handler to the list of system file handlers.

Only adds the handler if it is not already in the list of file handlers.

Reimplemented from TSystem.

Definition at line 528 of file TMacOSXSystem.mm.

◆ CocoaInitialized()

bool TMacOSXSystem::CocoaInitialized ( ) const

Definition at line 434 of file TMacOSXSystem.mm.

◆ DispatchOneEvent()

void TMacOSXSystem::DispatchOneEvent ( Bool_t  pendingOnly)
virtual

Dispatch a single event.

Reimplemented from TSystem.

Definition at line 345 of file TMacOSXSystem.mm.

◆ InitializeCocoa()

void TMacOSXSystem::InitializeCocoa ( )
private

Definition at line 440 of file TMacOSXSystem.mm.

◆ operator=()

TMacOSXSystem & TMacOSXSystem::operator= ( const TMacOSXSystem rhs)
private

◆ ProcessApplicationDefinedEvent()

void TMacOSXSystem::ProcessApplicationDefinedEvent ( void event)
private

Definition at line 548 of file TMacOSXSystem.mm.

◆ ProcessPendingEvents()

bool TMacOSXSystem::ProcessPendingEvents ( )
private

Definition at line 468 of file TMacOSXSystem.mm.

◆ RemoveFileHandler()

TFileHandler * TMacOSXSystem::RemoveFileHandler ( TFileHandler h)
privatevirtual

Remove a file handler from the list of file handlers.

Returns the handler or 0 if the handler was not in the list of file handlers.

Reimplemented from TSystem.

Definition at line 539 of file TMacOSXSystem.mm.

◆ WaitEvents()

void TMacOSXSystem::WaitEvents ( Long_t  nextto)
private

Definition at line 482 of file TMacOSXSystem.mm.

Friends And Related Symbol Documentation

◆ TGCocoa

friend class TGCocoa
friend

Definition at line 40 of file TMacOSXSystem.h.

Member Data Documentation

◆ fCocoaInitialized

bool TMacOSXSystem::fCocoaInitialized
private

Definition at line 60 of file TMacOSXSystem.h.

◆ fFirstDispatch

bool TMacOSXSystem::fFirstDispatch
private

Definition at line 61 of file TMacOSXSystem.h.

◆ fPimpl

std::unique_ptr<ROOT::MacOSX::Details::MacOSXSystem> TMacOSXSystem::fPimpl
private

Definition at line 59 of file TMacOSXSystem.h.

  • core/macosx/inc/TMacOSXSystem.h
  • core/macosx/src/TMacOSXSystem.mm