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

Definition at line 39 of file TMacOSXSystem.h.

Public Types

enum  { kSingleKey = (1ULL << (0)) , kOverwrite = (1ULL << (1)) , kWriteDelete = (1ULL << (2)) }
enum  {
  kIsOnHeap = 0x01000000 , kNotDeleted = 0x02000000 , kZombie = 0x04000000 , kInconsistent = 0x08000000 ,
  kBitMask = 0x00ffffff
}
enum  EAclicMode { kDefault , kDebug , kOpt }
enum  EAclicProperties { kFlatBuildDir = (1ULL << (0)) }
enum  EDeprecatedStatusBits { kObjInCanvas = (1ULL << (3)) }
enum  EStatusBits {
  kCanDelete = (1ULL << (0)) , kMustCleanup = (1ULL << (3)) , kIsReferenced = (1ULL << (4)) , kHasUUID = (1ULL << (5)) ,
  kCannotPick = (1ULL << (6)) , kNoContextMenu = (1ULL << (8)) , kInvalidObject = (1ULL << (13))
}

Public Member Functions

 TMacOSXSystem ()
 ~TMacOSXSystem ()
void Abort (int code=0) override
 Abort the application.
void AbstractMethod (const char *method) const
 Call this function within a function that you don't want to define as purely virtual, in order not to force all users deriving from that class to implement that maybe (on their side) unused function; but at the same time, emit a run-time warning if they try to call it, telling that it is not implemented in the derived class: action must thus be taken on the user side to override it.
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.
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.
void AddSignalHandler (TSignalHandler *sh) override
 Add a signal handler to list of system signal handlers.
virtual void AddStdExceptionHandler (TStdExceptionHandler *eh)
 Add an exception handler to list of system exception 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, ESocketBindOption socketBindOption=ESocketBindOption::kInaddrAny) override
 Announce TCP/IP service.
int AnnounceUdpService (int port, int backlog, ESocketBindOption socketBindOption=ESocketBindOption::kInaddrAny) 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>".
virtual void AppendPad (Option_t *option="")
 Append graphics object to current pad.
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.
virtual void Browse (TBrowser *b)
 Browse object. May be overridden for another default action.
Bool_t cd (const char *path)
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.
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.
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.
virtual const char * ClassName () const
 Returns name of class to which the object belongs.
virtual void CleanCompiledMacros ()
 Remove the shared libs produced by the CompileMacro() function, together with their rootmaps, linkdefs, and pcms (and some more on Windows).
void Clear (Option_t *option="") override
 Set name and title to empty strings ("").
TObjectClone (const char *newname="") const override
 Make a clone of an object using the Streamer facility.
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.
bool CocoaInitialized () const
Int_t Compare (const TObject *obj) const override
 Compare two TNamed objects.
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.
int ConnectService (const char *server, int port, int tcpwindowsize, const char *protocol="tcp")
 Connect to service servicename on server servername.
void Copy (TObject &named) const override
 Copy this to obj.
int CopyFile (const char *from, const char *to, Bool_t overwrite=kFALSE) override
 Copy a file.
virtual void Delete (Option_t *option="")
 Delete this object.
virtual const char * DirName (const char *pathname)
 Return the directory name in pathname.
void DispatchOneEvent (Bool_t pendingOnly)
 Dispatch a single event.
void DispatchSignals (ESignals sig)
 Handle and dispatch signals.
Bool_t DispatchTimers (Bool_t mode)
 Handle and dispatch timers.
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 with: gROOT->SetSelectedPad(c1).
virtual void Dump () const
 Dump contents of object on stdout.
char * DynamicPathName (const char *lib, Bool_t quiet=kFALSE)
 Find a dynamic library called lib using the system search paths.
Func_t DynFindSymbol (const char *module, const char *entry) override
 dynamic linking of module
virtual void Error (const char *method, const char *msgfmt,...) const
 Issue error message.
Int_t Exec (const char *shellcmd) override
 Execute a command.
virtual void Execute (const char *method, const char *params, Int_t *error=nullptr)
 Execute method on this object with the given parameter string, e.g.
virtual void Execute (TMethod *method, TObjArray *params, Int_t *error=nullptr)
 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).
void Exit (int code, Bool_t mode=kTRUE) override
 Exit the application.
virtual void ExitLoop ()
 Exit from event loop.
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 ~.
virtual void Fatal (const char *method, const char *msgfmt,...) const
 Issue fatal error message.
virtual void FillBuffer (char *&buffer)
 Encode TNamed into output buffer.
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.
virtual TObjectFindObject (const char *name) const
 Must be redefined in derived classes.
virtual TObjectFindObject (const TObject *obj) const
 Must be redefined in derived classes.
void FreeDirectory (void *dirp) override
 Close a Unix file system directory.
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.
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.
virtual TString GetDirName (const char *pathname)
 Return the directory name in pathname.
virtual void * GetDirPtr () const
virtual Option_tGetDrawOption () const
 Get option used by the graphics system to draw this object.
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.
const char * GetErrorStr () const
virtual const char * GetFlagsDebug () const
 Return the debug flags.
virtual const char * GetFlagsOpt () const
 Return the optimization flags.
Int_t GetFPEMask () override
 Return the bitmap of conditions that trigger a floating point exception.
virtual TString GetFromPipe (const char *command, Int_t *ret=nullptr, Bool_t redirectStderr=kFALSE)
 Execute command and return output in TString.
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.
virtual const char * GetIconName () const
 Returns mime type name of object.
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.
int GetMemInfo (MemInfo_t *info) const override
 Returns ram and swap memory usage info into the MemInfo_t structure.
const char * GetName () const override
 Returns 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 const char * GetObjExt () const
 Get the object file extension.
virtual Option_tGetOption () const
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.
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.
virtual const char * GetSoExt () const
 Get the shared library extension.
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.
const char * GetTitle () const override
 Returns title of object.
Int_t GetUid (const char *user=nullptr) override
 Returns the user's id. If user = 0, returns current user's id.
virtual UInt_t GetUniqueID () const
 Return the unique object 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.
virtual TListGetVolumes (Option_t *) const
std::string GetWorkingDirectory () const override
 Return working directory.
virtual Bool_t HandleTimer (TTimer *timer)
 Execute action in response of a timer timing out.
ULong_t Hash () const override
 Return hash value for this object.
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.
const char * HomeDirectory (const char *userName=nullptr) override
 Return the user's home directory.
const char * HostName () override
 Return the system's host name.
virtual void IgnoreInterrupt (Bool_t ignore=kTRUE)
 If ignore is true ignore the interrupt signal, else restore previous behaviour.
void IgnoreSignal (ESignals sig, Bool_t ignore=kTRUE) override
 If ignore is true ignore the specified signal, else restore previous behaviour.
Bool_t InControl () const
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.
Bool_t Init () override
 Initialize Unix system interface.
virtual void InnerLoop ()
 Inner event loop.
virtual void Inspect () const
 Dump contents of this object in a graphics canvas.
void InvertBit (UInt_t f)
virtual TClassIsA () const
virtual Bool_t IsAbsoluteFileName (const char *dir)
 Return true if dir is an absolute pathname.
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 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 Bool_t IsFolder () const
 Returns kTRUE in case object contains browsable objects (like containers or lists of other objects).
Bool_t IsOnHeap () const
Bool_t IsPathLocal (const char *path) override
 Returns TRUE if the url in 'path' points to the local file system.
Bool_t IsSortable () const override
Bool_t IsZombie () const
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.
virtual UInt_t LoadAllLibraries ()
 Load all libraries known to ROOT via the rootmap system.
void ls (Option_t *option="") const override
 List TNamed name and title.
int MakeDirectory (const char *name) override
 Make a Unix file system directory.
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 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 Bool_t Notify ()
 This method must be overridden to handle object notification (the base implementation is no-op).
virtual void NotifyApplicationCreated ()
 Hook to tell TSystem that the TApplication object has been created.
TTime Now () override
 Get current time in milliseconds since 0:00 Jan 1 1995.
void Obsolete (const char *method, const char *asOfVers, const char *removedFromVers) const
 Use this method to declare a method obsolete.
int OpenConnection (const char *server, int port, int tcpwindowsize=-1, const char *protocol="tcp") override
 Open a connection to a service on a server.
void * OpenDirectory (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.
void operator delete (void *, size_t)
 Operator delete for sized deallocation.
void operator delete (void *ptr)
 Operator delete.
void operator delete (void *ptr, void *vp)
 Only called by placement new when throwing an exception.
void operator delete[] (void *, size_t)
 Operator delete [] for sized deallocation.
void operator delete[] (void *ptr)
 Operator delete [].
void operator delete[] (void *ptr, void *vp)
 Only called by placement new[] when throwing an exception.
void * operator new (size_t sz)
void * operator new (size_t sz, void *vp)
void * operator new[] (size_t sz)
void * operator new[] (size_t sz, void *vp)
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.
const char * PrependPathName (const char *dir, TString &name) override
 Concatenate a directory and a file name.
void Print (Option_t *option="") const override
 Print TNamed name and title.
virtual Bool_t ProcessEvents ()
 Process pending events (GUI, timers, sockets).
const char * pwd ()
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.
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.
void RemoveOnExit (TObject *obj)
 Objects that should be deleted on exit of the OS interface.
TSignalHandlerRemoveSignalHandler (TSignalHandler *sh) override
 Remove a signal handler from list of signal handlers.
virtual TStdExceptionHandlerRemoveStdExceptionHandler (TStdExceptionHandler *eh)
 Remove an exception handler from list of exception 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 ResetBit (UInt_t f)
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.
virtual void Run ()
 System event loop.
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".
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.
virtual void SetAclicMode (EAclicMode mode)
 AclicMode indicates whether the library should be built in debug mode or optimized.
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 SetBuildDir (const char *build_dir, Bool_t isflat=kFALSE)
 Set the location where ACLiC will create libraries and use as a scratch area.
void SetDisplay () override
 Set DISPLAY environment variable based on utmp entry. Only for UNIX.
virtual void SetDrawOption (Option_t *option="")
 Set drawing option for object.
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.
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.
Int_t SetFPEMask (Int_t mask=kDefaultMask) override
 Set which conditions trigger a floating point exception.
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 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 SetObjExt (const char *objExt)
 Set object files extension, should be either .o, .obj, etc.
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.
virtual void SetSoExt (const char *soExt)
 Set shared library extension, should be either .so, .sl, .a, .dll, etc.
virtual void SetTitle (const char *title="")
 Set the title of the TNamed.
virtual void SetUniqueID (UInt_t uid)
 Set the unique object id.
virtual void ShowOutput (RedirectHandle_t *h)
 Display the content associated with the redirection described by the opaque handle 'h'.
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.
virtual Int_t Sizeof () const
 Return size of the TNamed part of the TObject.
void Sleep (UInt_t milliSec) override
 Sleep milliSec milliseconds.
virtual TString SplitAclicMode (const char *filename, TString &mode, TString &args, TString &io) const
 This method split a filename of the form:
void StackTrace () override
 Print a stack trace.
virtual void Streamer (TBuffer &)
 Stream an object of class TObject.
void StreamerNVirtual (TBuffer &ClassDef_StreamerNVirtual_b)
int Symlink (const char *from, const char *to) override
 Create a symlink from file1 to file2.
virtual void SysError (const char *method, const char *msgfmt,...) const
 Issue system error message.
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, const char *suffix=nullptr) override
 Create a secure temporary file by appending a unique 6 letter string to base.
Bool_t TestBit (UInt_t f) const
Int_t TestBits (UInt_t f) const
int Umask (Int_t mask) override
 Set the process file creation mode mask.
virtual const char * UnixPathName (const char *unixpathname)
 Convert from a local pathname to a Unix pathname.
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.
virtual void UseCurrentStyle ()
 Set current style settings in this object This function is called when either TCanvas::UseCurrentStyle or TROOT::ForceStyle have been invoked.
int Utime (const char *file, Long_t modtime, Long_t actime) override
 Set a files modification and access times.
virtual void Warning (const char *method, const char *msgfmt,...) const
 Issue warning message.
virtual char * Which (const char *search, const char *file, EAccessMode mode=kFileExists)
 Find location of file in a search path.
const char * WorkingDirectory () override
 Return working directory.
virtual Int_t Write (const char *name=nullptr, Int_t option=0, Int_t bufsize=0)
 Write this object to the current directory.
virtual Int_t Write (const char *name=nullptr, Int_t option=0, Int_t bufsize=0) const
 Write this object to the current directory.

Static Public Member Functions

static TClassClass ()
static const char * Class_Name ()
static constexpr Version_t Class_Version ()
static const char * DeclFileName ()
static Int_t GetCryptoRandom (void *buf, Int_t len)
 Return cryptographic random number Fill provided buffer with random values.
static Longptr_t GetDtorOnly ()
 Return destructor only flag.
static Int_t GetErrno ()
 Static function returning system error number.
static Bool_t GetObjectStat ()
 Get status of object stat flag.
static void ResetErrno ()
 Static function resetting system error number.
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

enum  { kOnlyPrepStep = (1ULL << (3)) }

Protected Member Functions

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 void DoError (int level, const char *location, const char *fmt, va_list va) const
 Interface to ErrorHandler (protected).
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.
const char * GetLinkedLibraries () override
 Get list of shared libraries loaded at the start of the executable.
void MakeZombie ()
void SavePrimitiveNameTitle (std::ostream &out, const char *variable_name)
 Save object name and title into the output stream "out".

Static Protected Member Functions

static void SavePrimitiveConstructor (std::ostream &out, TClass *cl, const char *variable_name, const char *constructor_agrs="", Bool_t empty_line=kTRUE)
 Save object constructor in the output stream "out".
static void SavePrimitiveDraw (std::ostream &out, const char *variable_name, Option_t *option=nullptr)
 Save invocation of primitive Draw() method Skipped if option contains "nodraw" string.
static TString SavePrimitiveVector (std::ostream &out, const char *prefix, Int_t len, Double_t *arr, Int_t flag=0)
 Save array in the output stream "out" as vector.
static const char * StripOffProto (const char *path, const char *proto)
 Strip off protocol string from specified path.
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 void * UnixOpendir (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, ESocketBindOption socketBindOption)
 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, ESocketBindOption socketBindOption)
 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.

Protected Attributes

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}
TString fName
Int_t fNfd {0}
TString fObjExt
TSeqCollectionfOnExitList {nullptr}
TFdSetfReadmask {nullptr}
 !Files that should be checked for read events
TFdSetfReadready {nullptr}
 !Files with reads waiting
Int_t fSigcnt {0}
TSeqCollectionfSignalHandler {nullptr}
TFdSetfSignals {nullptr}
 !Signals that were trapped
TString fSoExt
TSeqCollectionfStdExceptionHandler {nullptr}
TListfTimers {nullptr}
TString fTitle
TString fWdpath
TFdSetfWritemask {nullptr}
 !Files that should be checked for write events
TFdSetfWriteready {nullptr}
 !Files with writes waiting

Private Member Functions

 TMacOSXSystem (const TMacOSXSystem &rhs)
void AddFileHandler (TFileHandler *fh)
 Add a file handler to the list of system file handlers.
Bool_t ExpandFileName (const char *fname, char *xname, const int kBufSize)
 Private method for pathname expansion.
void FillWithCwd (char *cwd) const
 Fill buffer with current working directory.
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)

Static Private Member Functions

static void AddToTObjectTable (TObject *)
 Private helper function which will dispatch to TObjectTable::AddObj.

Private Attributes

UInt_t fBits
 bit field status word
bool fCocoaInitialized
 !
bool fFirstDispatch
 !
std::unique_ptr< ROOT::MacOSX::Details::MacOSXSystemfPimpl
 !
UInt_t fUniqueID
 object unique identifier

Static Private Attributes

static Longptr_t fgDtorOnly = 0
 object for which to call dtor only (i.e. no delete)
static Bool_t fgObjectStat = kTRUE
 if true keep track of objects in TObjectTable

Friends

class TGCocoa

#include <TMacOSXSystem.h>

Inheritance diagram for TMacOSXSystem:
TUnixSystem TSystem TNamed TObject

Member Enumeration Documentation

◆ anonymous enum

anonymous enum
protectedinherited
Enumerator
kOnlyPrepStep 

Used to request that the class specific implementation of TObject::Write just prepare the objects to be ready to be written but do not actually write them into the TBuffer.

This is just for example by TBufferMerger to request that the TTree inside the file calls TTree::FlushBaskets (outside of the merging lock) and TBufferMerger will later ask for the write (inside the merging lock). To take advantage of this feature the class needs to overload TObject::Write and use this enum value accordingly. (See TTree::Write and TObject::Write) Do not use, this feature will be migrate to the Merge function (See TClass and TTree::Merge)

Definition at line 106 of file TObject.h.

◆ anonymous enum

anonymous enum
inherited
Enumerator
kSingleKey 

write collection with single key

kOverwrite 

overwrite existing object with same name

kWriteDelete 

write object, then delete previous key with same name

Definition at line 99 of file TObject.h.

◆ anonymous enum

anonymous enum
inherited
Enumerator
kIsOnHeap 

object is on heap

kNotDeleted 

object has not been deleted

kZombie 

object ctor failed

kInconsistent 

class overload Hash but does call RecursiveRemove in destructor

kBitMask 

Definition at line 89 of file TObject.h.

◆ EAclicMode

enum TSystem::EAclicMode
inherited
Enumerator
kDefault 
kDebug 
kOpt 

Definition at line 279 of file TSystem.h.

◆ EAclicProperties

enum TSystem::EAclicProperties
inherited
Enumerator
kFlatBuildDir 

Definition at line 290 of file TSystem.h.

◆ EDeprecatedStatusBits

Enumerator
kObjInCanvas 

for backward compatibility only, use kMustCleanup

Definition at line 84 of file TObject.h.

◆ EStatusBits

enum TObject::EStatusBits
inherited
Enumerator
kCanDelete 

if object in a list can be deleted

kMustCleanup 

if object destructor must call RecursiveRemove()

kIsReferenced 

if object is referenced by a TRef or TRefArray

kHasUUID 

if object has a TUUID (its fUniqueID=UUIDNumber)

kCannotPick 

if object in a pad cannot be picked

kNoContextMenu 

if object does not want context menu

kInvalidObject 

if object ctor succeeded but object should not be used

Definition at line 70 of file TObject.h.

Constructor & Destructor Documentation

◆ TMacOSXSystem() [1/2]

TMacOSXSystem::TMacOSXSystem ( )

Definition at line 331 of file TMacOSXSystem.mm.

◆ ~TMacOSXSystem()

TMacOSXSystem::~TMacOSXSystem ( )

Definition at line 339 of file TMacOSXSystem.mm.

◆ TMacOSXSystem() [2/2]

TMacOSXSystem::TMacOSXSystem ( const TMacOSXSystem & rhs)
private

Member Function Documentation

◆ Abort()

void TUnixSystem::Abort ( int code = 0)
overridevirtualinherited

Abort the application.

Reimplemented from TSystem.

Definition at line 2178 of file TUnixSystem.cxx.

◆ AbstractMethod()

void TObject::AbstractMethod ( const char * method) const
inherited

Call this function within a function that you don't want to define as purely virtual, in order not to force all users deriving from that class to implement that maybe (on their side) unused function; but at the same time, emit a run-time warning if they try to call it, telling that it is not implemented in the derived class: action must thus be taken on the user side to override it.

In other word, this method acts as a "runtime purely virtual" warning instead of a "compiler purely virtual" error.

Warning
This interface is a legacy function that is no longer recommended to be used by new development code.
Note
The name "AbstractMethod" does not imply that it's an abstract method in the strict C++ sense.

Definition at line 1149 of file TObject.cxx.

◆ AcceptConnection()

int TUnixSystem::AcceptConnection ( int sock)
overridevirtualinherited

Accept a connection.

In case of an error return -1. In case non-blocking I/O is enabled and no connections are available return -2.

Reimplemented from TSystem.

Definition at line 3259 of file TUnixSystem.cxx.

◆ AccessPathName()

Bool_t TUnixSystem::AccessPathName ( const char * path,
EAccessMode mode = kFileExists )
overridevirtualinherited

Returns FALSE if one can access a file using the specified access mode.

Mode is the same as for the Unix access(2) function. Attention, bizarre convention of return value!!

Reimplemented from TSystem.

Definition at line 1552 of file TUnixSystem.cxx.

◆ AddDynamicPath()

void TUnixSystem::AddDynamicPath ( const char * lib)
overridevirtualinherited

Add a new directory to the dynamic path.

Reimplemented from TSystem.

Definition at line 4729 of file TUnixSystem.cxx.

◆ 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 527 of file TMacOSXSystem.mm.

◆ AddIncludePath()

void TSystem::AddIncludePath ( const char * includePath)
virtualinherited

Add a directory to the already set include path.

Parameters
[in]includePathThe path to the directory.
Note
This interface is mostly relevant for ACLiC and it does not inform gInterpreter for this include path. If the TInterpreter needs to know about the include path please use TInterpreter::AddIncludePath() .
Warning
The path should start with the -I prefix, i.e. gSystem->AddIncludePath("-I /path/to/my/includes").

Definition at line 4222 of file TSystem.cxx.

◆ AddLinkedLibs()

void TSystem::AddLinkedLibs ( const char * linkedLib)
virtualinherited

Add linkedLib to already set linked libs.

Definition at line 4233 of file TSystem.cxx.

◆ AddSignalHandler()

void TUnixSystem::AddSignalHandler ( TSignalHandler * h)
overridevirtualinherited

Add a signal handler to list of system signal handlers.

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

Reimplemented from TSystem.

Definition at line 812 of file TUnixSystem.cxx.

◆ AddStdExceptionHandler()

void TSystem::AddStdExceptionHandler ( TStdExceptionHandler * eh)
virtualinherited

Add an exception handler to list of system exception handlers.

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

Definition at line 613 of file TSystem.cxx.

◆ AddTimer()

void TUnixSystem::AddTimer ( TTimer * ti)
overridevirtualinherited

Add timer to list of system timers.

Reimplemented from TSystem.

Definition at line 2992 of file TUnixSystem.cxx.

◆ AddToTObjectTable()

void TObject::AddToTObjectTable ( TObject * op)
staticprivateinherited

Private helper function which will dispatch to TObjectTable::AddObj.

Included here to avoid circular dependency between header files.

Definition at line 195 of file TObject.cxx.

◆ AnnounceTcpService()

int TUnixSystem::AnnounceTcpService ( int port,
Bool_t reuse,
int backlog,
int tcpwindowsize = -1,
ESocketBindOption socketBindOption = ESocketBindOption::kInaddrAny )
overridevirtualinherited

Announce TCP/IP service.

Open a socket, bind to it and start listening for TCP/IP connections on the port. If reuse is true reuse the address, backlog specifies how many sockets can be waiting to be accepted. Use tcpwindowsize to specify the size of the receive buffer, it has to be specified here to make sure the window scale option is set (for tcpwindowsize > 65KB and for platforms supporting window scaling). Returns socket fd or -1 if socket() failed, -2 if bind() failed or -3 if listen() failed.

Reimplemented from TSystem.

Definition at line 3224 of file TUnixSystem.cxx.

◆ AnnounceUdpService()

int TUnixSystem::AnnounceUdpService ( int port,
int backlog,
ESocketBindOption socketBindOption = ESocketBindOption::kInaddrAny )
overridevirtualinherited

Announce UDP service.

Reimplemented from TSystem.

Definition at line 3233 of file TUnixSystem.cxx.

◆ AnnounceUnixService() [1/2]

int TUnixSystem::AnnounceUnixService ( const char * sockpath,
int backlog )
overridevirtualinherited

Announce unix domain service on path 'sockpath'.

Reimplemented from TSystem.

Definition at line 3249 of file TUnixSystem.cxx.

◆ AnnounceUnixService() [2/2]

int TUnixSystem::AnnounceUnixService ( int port,
int backlog )
overridevirtualinherited

Announce unix domain service on path "kServerPath/<port>".

Reimplemented from TSystem.

Definition at line 3241 of file TUnixSystem.cxx.

◆ AppendPad()

void TObject::AppendPad ( Option_t * option = "")
virtualinherited

Append graphics object to current pad.

In case no current pad is set yet, create a default canvas with the name "c1".

Definition at line 204 of file TObject.cxx.

◆ BaseName()

const char * TSystem::BaseName ( const char * pathname)
virtualinherited

Base name of a file name. Base name of /user/root is root.

Reimplemented in TWinNTSystem.

Definition at line 948 of file TSystem.cxx.

◆ Beep()

void TSystem::Beep ( Int_t freq = -1,
Int_t duration = -1,
Bool_t setDefault = kFALSE )
inherited

Beep for duration milliseconds with a tone of frequency freq.

Defaults to printing the \a character to stdout. If freq or duration is <0 respectively, use default value. If setDefault is set, only set the frequency and duration as new defaults, but don't beep. If default freq or duration is <0, never beep (silence)

Definition at line 326 of file TSystem.cxx.

◆ Browse()

◆ cd()

Bool_t TSystem::cd ( const char * path)
inlineinherited

Definition at line 443 of file TSystem.h.

◆ ChangeDirectory()

Bool_t TUnixSystem::ChangeDirectory ( const char * path)
overridevirtualinherited

Change directory. Returns kTRUE in case of success, kFALSE otherwise.

Reimplemented from TSystem.

Definition at line 1409 of file TUnixSystem.cxx.

◆ CheckChilds()

void TUnixSystem::CheckChilds ( )
inherited

Check if children have finished.

Definition at line 1292 of file TUnixSystem.cxx.

◆ CheckDescriptors()

Bool_t TUnixSystem::CheckDescriptors ( )
inherited

Check if there is activity on some file descriptors and call their Notify() member.

Definition at line 1312 of file TUnixSystem.cxx.

◆ CheckedHash()

ULong_t TObject::CheckedHash ( )
inlineinherited

Check and record whether this class has a consistent Hash/RecursiveRemove setup (*) and then return the regular Hash value for this object.

The intent is for this routine to be called instead of directly calling the function Hash during "insert" operations. See TObject::HasInconsistenTObjectHash();

(*) The setup is consistent when all classes in the class hierarchy that overload TObject::Hash do call ROOT::CallRecursiveRemoveIfNeeded in their destructor. i.e. it is safe to call the Hash virtual function during the RecursiveRemove operation.

Definition at line 332 of file TObject.h.

◆ CheckSignals()

Bool_t TUnixSystem::CheckSignals ( Bool_t sync)
inherited

Check if some signals were raised and call their Notify() member.

Definition at line 1261 of file TUnixSystem.cxx.

◆ Chmod()

int TUnixSystem::Chmod ( const char * file,
UInt_t mode )
overridevirtualinherited

Set the file permission bits. Returns -1 in case or error, 0 otherwise.

Reimplemented from TSystem.

Definition at line 1866 of file TUnixSystem.cxx.

◆ Class()

TClass * TMacOSXSystem::Class ( )
static
Returns
TClass describing this class

◆ Class_Name()

const char * TMacOSXSystem::Class_Name ( )
static
Returns
Name of this class

◆ Class_Version()

constexpr Version_t TMacOSXSystem::Class_Version ( )
inlinestaticconstexpr
Returns
Version of this class

Definition at line 66 of file TMacOSXSystem.h.

◆ ClassName()

const char * TObject::ClassName ( ) const
virtualinherited

Returns name of class to which the object belongs.

Definition at line 227 of file TObject.cxx.

◆ CleanCompiledMacros()

void TSystem::CleanCompiledMacros ( )
virtualinherited

Remove the shared libs produced by the CompileMacro() function, together with their rootmaps, linkdefs, and pcms (and some more on Windows).

Definition at line 4435 of file TSystem.cxx.

◆ Clear()

void TNamed::Clear ( Option_t * option = "")
overridevirtualinherited

Set name and title to empty strings ("").

Reimplemented from TObject.

Reimplemented in TPrincipal, TProcessID, TStreamerInfo, TTask, TVirtualFitter, and TVirtualStreamerInfo.

Definition at line 63 of file TNamed.cxx.

◆ Clone()

TObject * TNamed::Clone ( const char * newname = "") const
overridevirtualinherited

Make a clone of an object using the Streamer facility.

If newname is specified, this will be the name of the new object.

Reimplemented from TObject.

Reimplemented in TStreamerInfo, and TTreeIndex.

Definition at line 73 of file TNamed.cxx.

◆ CloseConnection()

void TUnixSystem::CloseConnection ( int sock,
Bool_t force = kFALSE )
overridevirtualinherited

Close socket.

Reimplemented from TSystem.

Definition at line 3281 of file TUnixSystem.cxx.

◆ Closelog()

void TUnixSystem::Closelog ( )
overridevirtualinherited

Close connection to system log daemon.

Reimplemented from TSystem.

Definition at line 2646 of file TUnixSystem.cxx.

◆ ClosePipe()

int TUnixSystem::ClosePipe ( FILE * pipe)
overridevirtualinherited

Close the pipe.

Reimplemented from TSystem.

Definition at line 2147 of file TUnixSystem.cxx.

◆ CocoaInitialized()

bool TMacOSXSystem::CocoaInitialized ( ) const

Definition at line 433 of file TMacOSXSystem.mm.

◆ Compare()

Int_t TNamed::Compare ( const TObject * obj) const
overridevirtualinherited

Compare two TNamed objects.

Returns 0 when equal, -1 when this is smaller and +1 when bigger (like strcmp).

Reimplemented from TObject.

Reimplemented in TStructNodeProperty.

Definition at line 84 of file TNamed.cxx.

◆ CompileMacro()

int TSystem::CompileMacro ( const char * filename,
Option_t * opt = "",
const char * library_specified = "",
const char * build_dir = "",
UInt_t dirmode = 0 )
virtualinherited

This method compiles and loads a shared library containing the code from the file "filename".

The return value is true (1) in case of success and false (0) in case of error.

The possible options are:

  • k : keep the shared library after the session end.
  • f : force recompilation.
  • g : compile with debug symbol
  • O : optimized the code
  • c : compile only, do not attempt to load the library.
  • s : silence all informational output
  • v : output all information output
  • d : debug ACLiC, keep all the output files.
  • - : if buildir is set, use a flat structure (see buildir below)

If library_specified is specified, CompileMacro generates the file "library_specified".soext where soext is the shared library extension for the current platform.

If build_dir is specified, it is used as an alternative 'root' for the generation of the shared library. The library is stored in a sub-directories of 'build_dir' including the full pathname of the script unless a flat directory structure is requested ('-' option). With the '-' option the libraries are created directly in the directory 'build_dir'; in particular this means that 2 scripts with the same name in different source directory will over-write each other's library. See also TSystem::SetBuildDir.

If dirmode is not zero and we need to create the target directory, the file mode bit will be change to 'dirmode' using chmod.

If library_specified is not specified, CompileMacro generate a default name for library by taking the name of the file "filename" but replacing the dot before the extension by an underscore and by adding the shared library extension for the current platform. For example on most platform, hsimple.cxx will generate hsimple_cxx.so

It uses the directive fMakeSharedLibs to create a shared library. If loading the shared library fails, it tries to output a list of missing symbols by creating an executable (on some platforms like OSF, this does not HAVE to be an executable) containing the script. It uses the directive fMakeExe to do so. For both directives, before passing them to TSystem::Exec, it expands the variables $SourceFiles, $SharedLib, $LibName, $IncludePath, $LinkedLibs, $DepLibs, $ExeName and $ObjectFiles. See SetMakeSharedLib() for more information on those variables.

This method is used to implement the following feature:

Synopsis:

The purpose of this addition is to allow the user to use an external compiler to create a shared library from its C++ macro (scripts). Currently in order to execute a script, a user has to type at the root prompt

.X myfunc.C(arg1,arg2)

We allow them to type:

.X myfunc.C++(arg1,arg2)

or

.X myfunc.C+(arg1,arg2)

In which case an external compiler will be called to create a shared library. This shared library will then be loaded and the function myfunc will be called with the two arguments. With '++' the shared library is always recompiled. With '+' the shared library is recompiled only if it does not exist yet or the macro file is newer than the shared library.

Of course the + and ++ notation is supported in similar way for .x and .L.

Through the function TSystem::SetMakeSharedLib(), the user will be able to indicate, with shell commands, how to build a shared library (a good default will be provided). The most common change, namely where to find header files, will be available through the function TSystem::SetIncludePath(). A good default will be provided so that a typical user session should be at most:

root[1] gSystem->SetIncludePath("-I$ROOTSYS/include
-I$HOME/mypackage/include");
root[2] .x myfunc.C++(10,20);
externTSystem * gSystem
Definition TSystem.h:582

The user may sometimes try to compile a script before it has loaded all the needed shared libraries. In this case we want to be helpful and output a list of the unresolved symbols. So if the loading of the created shared library fails, we will try to build a executable that contains the script. The linker should then output a list of missing symbols.

To support this we provide a TSystem::SetMakeExe() function, that sets the directive telling how to create an executable. The loader will need to be informed of all the libraries available. The information about the libraries that has been loaded by .L and TSystem::Load() is accessible to the script compiler. However, the information about the libraries that have been selected at link time by the application builder (like the root libraries for root.exe) are not available and need to be explicitly listed in fLinkedLibs (either by default or by a call to TSystem::SetLinkedLibs()).

To simplify customization we could also add to the .rootrc support for the variables

Unix.*.Root.IncludePath: -I$ROOTSYS/include
WinNT.*.Root.IncludePath: -I%ROOTSYS%/include
Unix.*.Root.LinkedLibs: -L$ROOTSYS/lib -lBase ....
WinNT.*.Root.LinkedLibs: %ROOTSYS%/lib/*.lib msvcrt.lib ....
#define I(x, y, z)

And also support for MakeSharedLibs() and MakeExe().

(the ... have to be replaced by the actual values and are here only to shorten this comment).

Note that the default behavior is to remove libraries when closing ROOT, ie TSystem::CleanCompiledMacros() is called in the TROOT destructor. The default behavior of .L script.C+ is the opposite one, leaving things after closing, without removing. In other words, .L always passes the 'k' option behind the scenes.

Definition at line 2872 of file TSystem.cxx.

◆ ConcatFileName()

char * TSystem::ConcatFileName ( const char * dir,
const char * name )
virtualinherited

Concatenate a directory and a file name.

User must delete returned string.

Deprecated
Consider replacing with TSystem::PrependPathName

Definition at line 1086 of file TSystem.cxx.

◆ ConnectService()

int TUnixSystem::ConnectService ( const char * server,
int port,
int tcpwindowsize,
const char * protocol = "tcp" )
inherited

Connect to service servicename on server servername.

Definition at line 3184 of file TUnixSystem.cxx.

◆ ConsistentWith()

Bool_t TSystem::ConsistentWith ( const char * path,
void * dirptr = nullptr )
protectedvirtualinherited

Check consistency of this helper with the one required by 'path' or 'dirptr'.

Reimplemented in TDavixSystem, and TNetXNGSystem.

Definition at line 817 of file TSystem.cxx.

◆ Copy()

void TNamed::Copy ( TObject & named) const
overridevirtualinherited

Copy this to obj.

Reimplemented from TObject.

Reimplemented in TPieSlice, TProfile2D, TProfile3D, TProfile, TStyle, TSystemDirectory, TSystemFile, TText, and TXTRU.

Definition at line 93 of file TNamed.cxx.

◆ CopyFile()

int TUnixSystem::CopyFile ( const char * f,
const char * t,
Bool_t overwrite = kFALSE )
overridevirtualinherited

Copy a file.

If overwrite is true and file already exists the file will be overwritten. Returns 0 when successful, -1 in case of file open failure, -2 in case the file already exists and overwrite was false and -3 in case of error during copy.

Reimplemented from TSystem.

Definition at line 1571 of file TUnixSystem.cxx.

◆ DeclFileName()

const char * TMacOSXSystem::DeclFileName ( )
inlinestatic
Returns
Name of the file containing the class declaration

Definition at line 66 of file TMacOSXSystem.h.

◆ Delete()

void TObject::Delete ( Option_t * option = "")
virtualinherited

◆ DirName()

const char * TSystem::DirName ( const char * pathname)
virtualinherited

Return the directory name in pathname.

DirName of /user/root is /user. In case no dirname is specified "." is returned.

Reimplemented in TWinNTSystem.

Definition at line 1020 of file TSystem.cxx.

◆ DispatchOneEvent()

void TMacOSXSystem::DispatchOneEvent ( Bool_t pendingOnly)
virtual

Dispatch a single event.

Reimplemented from TSystem.

Definition at line 344 of file TMacOSXSystem.mm.

◆ DispatchSignals()

void TUnixSystem::DispatchSignals ( ESignals sig)
inherited

Handle and dispatch signals.

Definition at line 3631 of file TUnixSystem.cxx.

◆ DispatchTimers()

Bool_t TUnixSystem::DispatchTimers ( Bool_t mode)
inherited

Handle and dispatch timers.

If mode = kTRUE dispatch synchronous timers else a-synchronous timers.

Definition at line 2962 of file TUnixSystem.cxx.

◆ DistancetoPrimitive()

◆ DoBeep()

virtual void TSystem::DoBeep ( Int_t = -1,
Int_t = -1 ) const
inlineprotectedvirtualinherited

Reimplemented in TWinNTSystem.

Definition at line 352 of file TSystem.h.

◆ DoError()

void TObject::DoError ( int level,
const char * location,
const char * fmt,
va_list va ) const
protectedvirtualinherited

Interface to ErrorHandler (protected).

Reimplemented in TThread, and TTreeViewer.

Definition at line 1059 of file TObject.cxx.

◆ Draw()

◆ DrawClass()

void TObject::DrawClass ( ) const
virtualinherited

Draw class inheritance tree of the class to which this object belongs.

If a class B inherits from a class A, description of B is drawn on the right side of description of A. Member functions overridden by B are shown in class A with a blue line crossing-out the corresponding member function. The following picture is the class inheritance tree of class TPaveLabel:

Reimplemented in TGFrame, TSystemDirectory, and TSystemFile.

Definition at line 308 of file TObject.cxx.

◆ DrawClone()

TObject * TObject::DrawClone ( Option_t * option = "") const
virtualinherited

Draw a clone of this object in the current selected pad with: gROOT->SetSelectedPad(c1).

If pad was not selected - gPad will be used.

Note
For histograms, use the more specialised TH1::DrawCopy().

Reimplemented in TAxis, TCanvas, TGFrame, TSystemDirectory, and TSystemFile.

Definition at line 319 of file TObject.cxx.

◆ Dump()

void TObject::Dump ( ) const
virtualinherited

Dump contents of object on stdout.

Using the information in the object dictionary (class TClass) each data member is interpreted. If a data member is a pointer, the pointer value is printed

The following output is the Dump of a TArrow object:

fAngle 0 Arrow opening angle (degrees)
fArrowSize 0.2 Arrow Size
fOption.*fData
fX1 0.1 X of 1st point
fY1 0.15 Y of 1st point
fX2 0.67 X of 2nd point
fY2 0.83 Y of 2nd point
fUniqueID 0 object unique identifier
fBits 50331648 bit field status word
fLineColor 1 line color
fLineStyle 1 line style
fLineWidth 1 line width
fFillColor 19 fill area color
fFillStyle 1001 fill area style
#define X(type, name)
UInt_t fUniqueID
object unique identifier
Definition TObject.h:46
UInt_t fBits
bit field status word
Definition TObject.h:47
TLine * line
TCanvas * style()
Definition style.C:1

Reimplemented in TClass, TCollection, TGFrame, TGPack, and TSystemFile.

Definition at line 367 of file TObject.cxx.

◆ DynamicPathName()

char * TSystem::DynamicPathName ( const char * lib,
Bool_t quiet = kFALSE )
inherited

Find a dynamic library called lib using the system search paths.

Appends known extensions if needed. Returned string must be deleted by the user!

Definition at line 2035 of file TSystem.cxx.

◆ DynFindSymbol()

Func_t TUnixSystem::DynFindSymbol ( const char * module,
const char * entry )
overridevirtualinherited

dynamic linking of module

Reimplemented from TSystem.

Definition at line 2797 of file TUnixSystem.cxx.

◆ Error()

void TObject::Error ( const char * location,
const char * fmt,
... ) const
virtualinherited

Issue error message.

Use "location" to specify the method where the error occurred. Accepts standard printf formatting arguments.

Reimplemented in TFitResult.

Definition at line 1098 of file TObject.cxx.

◆ Exec()

int TUnixSystem::Exec ( const char * shellcmd)
overridevirtualinherited

Execute a command.

Reimplemented from TSystem.

Definition at line 2131 of file TUnixSystem.cxx.

◆ Execute() [1/2]

void TObject::Execute ( const char * method,
const char * params,
Int_t * error = nullptr )
virtualinherited

Execute method on this object with the given parameter string, e.g.

"3.14,1,\"text\"".

Reimplemented in ROOT::R::TRInterface, TCling, TContextMenu, TInterpreter, and TMethodCall.

Definition at line 378 of file TObject.cxx.

◆ Execute() [2/2]

void TObject::Execute ( TMethod * method,
TObjArray * params,
Int_t * error = nullptr )
virtualinherited

Execute method on this object with parameters stored in the TObjArray.

The TObjArray should contain an argv vector like:

argv[0] ... argv[n] = the list of TObjString parameters
Collectable string class.
Definition TObjString.h:28
const Int_t n
Definition legend1.C:16

Reimplemented in ROOT::R::TRInterface, TCling, TContextMenu, TInterpreter, and TMethodCall.

Definition at line 398 of file TObject.cxx.

◆ ExecuteEvent()

◆ Exit()

void TUnixSystem::Exit ( int code,
Bool_t mode = kTRUE )
overridevirtualinherited

Exit the application.

Reimplemented from TSystem.

Definition at line 2163 of file TUnixSystem.cxx.

◆ ExitLoop()

void TSystem::ExitLoop ( )
virtualinherited

Exit from event loop.

Reimplemented in TWinNTSystem.

Definition at line 394 of file TSystem.cxx.

◆ ExpandFileName() [1/3]

const char * TSystem::ExpandFileName ( const char * fname)
protectedvirtualinherited

Expand a pathname getting rid of special shell characters like ~.

$, etc. For Unix/Win32 compatibility use instead of $XXX when using environment variables in a pathname. If compatibility is not an issue you can use on Unix directly $XXX. This is a protected function called from the OS specific system classes, like TUnixSystem and TWinNTSystem. Returns the expanded filename or 0 in case of error.

Definition at line 1113 of file TSystem.cxx.

◆ ExpandFileName() [2/3]

Bool_t TSystem::ExpandFileName ( const char * fname,
char * xname,
const int kBufSize )
privateinherited

Private method for pathname expansion.

Returns kTRUE in case of error and kFALSE otherwise.

Definition at line 1147 of file TSystem.cxx.

◆ ExpandFileName() [3/3]

Bool_t TSystem::ExpandFileName ( TString & fname)
protectedvirtualinherited

Expand a pathname getting rid of special shell characters like ~.

$, etc. This function is analogous to ExpandFileName(const char *), except that it receives a TString reference of the pathname to be expanded. Returns kTRUE in case of error and kFALSE otherwise.

Definition at line 1131 of file TSystem.cxx.

◆ ExpandPathName() [1/2]

char * TUnixSystem::ExpandPathName ( const char * path)
overridevirtualinherited

Expand a pathname getting rid of special shell characaters like ~.

$, etc. For Unix/Win32 compatibility use instead of $XXX when using environment variables in a pathname. If compatibility is not an issue you can use on Unix directly $XXX. The user must delete returned string. Returns the expanded pathname or 0 in case of error. The user must delete returned string (delete []).

Reimplemented from TSystem.

Definition at line 1855 of file TUnixSystem.cxx.

◆ ExpandPathName() [2/2]

Bool_t TUnixSystem::ExpandPathName ( TString & path)
overridevirtualinherited

Expand a pathname getting rid of special shell characters like ~.

$, etc. For Unix/Win32 compatibility use instead of $XXX when using environment variables in a pathname. If compatibility is not an issue you can use on Unix directly $XXX. Returns kFALSE in case of success or kTRUE in case of error.

Reimplemented from TSystem.

Definition at line 1722 of file TUnixSystem.cxx.

◆ Fatal()

void TObject::Fatal ( const char * location,
const char * fmt,
... ) const
virtualinherited

Issue fatal error message.

Use "location" to specify the method where the fatal error occurred. Accepts standard printf formatting arguments.

Definition at line 1126 of file TObject.cxx.

◆ FillBuffer()

void TNamed::FillBuffer ( char *& buffer)
virtualinherited

Encode TNamed into output buffer.

Reimplemented in TDirectoryFile, TFile, TKey, TKeySQL, TKeyXML, TSQLFile, and TXMLFile.

Definition at line 103 of file TNamed.cxx.

◆ FillWithCwd()

void TUnixSystem::FillWithCwd ( char * cwd) const
privateinherited

Fill buffer with current working directory.

Definition at line 1448 of file TUnixSystem.cxx.

◆ FindDynamicLibrary()

const char * TUnixSystem::FindDynamicLibrary ( TString & sLib,
Bool_t quiet = kFALSE )
overridevirtualinherited

Returns the path of a shared library (searches for library in the shared library search path).

If no file name extension is provided it first tries .so, .sl, .dl and then .a (for AIX).

Reimplemented from TSystem.

Definition at line 4765 of file TUnixSystem.cxx.

◆ FindFile()

const char * TUnixSystem::FindFile ( const char * search,
TString & wfil,
EAccessMode mode = kFileExists )
overridevirtualinherited

Find location of file "wfil" in a search path.

The search path is specified as a : separated list of directories. Return value is pointing to wfile for compatibility with Which(const char*,const char*,EAccessMode) version.

Note
This function does not support finding files in directories containing colons in their name. For that specific use case and if you know the filename, deploy instead TSystem::AccessPathName(dirName+fileName, kReadPermission)

Reimplemented from TSystem.

Definition at line 1903 of file TUnixSystem.cxx.

◆ FindHelper()

TSystem * TSystem::FindHelper ( const char * path,
void * dirptr = nullptr )
protectedinherited

Create helper TSystem to handle file and directory operations that might be special for remote file access.

Definition at line 759 of file TSystem.cxx.

◆ FindObject() [1/2]

TObject * TObject::FindObject ( const char * name) const
virtualinherited

Must be redefined in derived classes.

This function is typically used with TCollections, but can also be used to find an object by name inside this object.

Reimplemented in RooAbsCollection, RooLinkedList, TBtree, TCollection, TDirectory, TFolder, TGeometry, TGraph2D, TGraph, TH1, THashList, THashTable, THbookFile, TList, TListOfDataMembers, TListOfEnums, TListOfEnumsWithLock, TListOfFunctions, TListOfFunctionTemplates, TListOfTypes, TMap, TObjArray, TPad, TROOT, TViewPubDataMembers, and TViewPubFunctions.

Definition at line 425 of file TObject.cxx.

◆ FindObject() [2/2]

TObject * TObject::FindObject ( const TObject * obj) const
virtualinherited

Must be redefined in derived classes.

This function is typically used with TCollections, but can also be used to find an object inside this object.

Reimplemented in RooAbsCollection, RooLinkedList, TBtree, TCollection, TDirectory, TFolder, TGeometry, TGraph2D, TGraph, TH1, THashList, THashTable, THbookFile, TList, TListOfDataMembers, TListOfEnums, TListOfEnumsWithLock, TListOfFunctions, TListOfFunctionTemplates, TListOfTypes, TMap, TObjArray, TPad, TROOT, TViewPubDataMembers, and TViewPubFunctions.

Definition at line 435 of file TObject.cxx.

◆ FreeDirectory()

void TUnixSystem::FreeDirectory ( void * dirp)
overridevirtualinherited

Close a Unix file system directory.

Reimplemented from TSystem.

Definition at line 1379 of file TUnixSystem.cxx.

◆ GetAclicMode()

TSystem::EAclicMode TSystem::GetAclicMode ( ) const
virtualinherited

AclicMode indicates whether the library should be built in debug mode or optimized.

The values are:

  • TSystem::kDefault : compile the same as the current ROOT
  • TSystem::kDebug : compiled in debug mode
  • TSystem::kOpt : optimized the library

Definition at line 4008 of file TSystem.cxx.

◆ GetAclicProperties()

Int_t TSystem::GetAclicProperties ( ) const
virtualinherited

Return the ACLiC properties field.

See EAclicProperties for details on the semantic of each bit.

Definition at line 3928 of file TSystem.cxx.

◆ GetBeepDefaults()

void TSystem::GetBeepDefaults ( Int_t & freq,
Int_t & duration ) const
inlineinherited

Definition at line 380 of file TSystem.h.

◆ GetBuildArch()

const char * TSystem::GetBuildArch ( ) const
virtualinherited

Return the build architecture.

Definition at line 3936 of file TSystem.cxx.

◆ GetBuildCompiler()

const char * TSystem::GetBuildCompiler ( ) const
virtualinherited

Return the build compiler.

Definition at line 3944 of file TSystem.cxx.

◆ GetBuildCompilerVersion()

const char * TSystem::GetBuildCompilerVersion ( ) const
virtualinherited

Return the build compiler version.

Definition at line 3952 of file TSystem.cxx.

◆ GetBuildCompilerVersionStr()

const char * TSystem::GetBuildCompilerVersionStr ( ) const
virtualinherited

Return the build compiler version identifier string.

Definition at line 3960 of file TSystem.cxx.

◆ GetBuildDir()

const char * TSystem::GetBuildDir ( ) const
virtualinherited

Return the path of the build directory.

Definition at line 3976 of file TSystem.cxx.

◆ GetBuildNode()

const char * TSystem::GetBuildNode ( ) const
virtualinherited

Return the build node name.

Definition at line 3968 of file TSystem.cxx.

◆ GetCpuInfo()

int TUnixSystem::GetCpuInfo ( CpuInfo_t * info,
Int_t sampleTime = 1000 ) const
overridevirtualinherited

Returns cpu load average and load info into the CpuInfo_t structure.

Returns -1 in case of error, 0 otherwise. Use sampleTime to set the interval over which the CPU load will be measured, in ms (default 1000).

Reimplemented from TSystem.

Definition at line 5322 of file TUnixSystem.cxx.

◆ GetCryptoRandom()

Int_t TSystem::GetCryptoRandom ( void * buf,
Int_t len )
staticinherited

Return cryptographic random number Fill provided buffer with random values.

The number of requested random bytes must not exceed 256. Returns number of bytes written to buffer or -1 in case of error

Definition at line 265 of file TSystem.cxx.

◆ GetDirEntry()

const char * TUnixSystem::GetDirEntry ( void * dirp)
overridevirtualinherited

Get next Unix file system directory entry. Returns 0 if no more entries.

Reimplemented from TSystem.

Definition at line 1394 of file TUnixSystem.cxx.

◆ GetDirName()

TString TSystem::GetDirName ( const char * pathname)
virtualinherited

Return the directory name in pathname.

DirName of /user/root is /user. DirName of /user/root/ is also /user. In case no dirname is specified "." is returned.

Reimplemented in TWinNTSystem.

Definition at line 1046 of file TSystem.cxx.

◆ GetDirPtr()

virtual void * TSystem::GetDirPtr ( ) const
inlinevirtualinherited

Reimplemented in TDCacheSystem.

Definition at line 436 of file TSystem.h.

◆ GetDrawOption()

Option_t * TObject::GetDrawOption ( ) const
virtualinherited

Get option used by the graphics system to draw this object.

Note that before calling object.GetDrawOption(), you must have called object.Draw(..) before in the current pad.

Reimplemented in TBrowser, TFitEditor, TGedFrame, TGFileBrowser, TRootBrowser, and TRootBrowserLite.

Definition at line 445 of file TObject.cxx.

◆ GetDtorOnly()

Longptr_t TObject::GetDtorOnly ( )
staticinherited

Return destructor only flag.

Definition at line 1196 of file TObject.cxx.

◆ GetDynamicPath()

const char * TUnixSystem::GetDynamicPath ( )
overridevirtualinherited

Return the dynamic path (used to find shared libraries).

Reimplemented from TSystem.

Definition at line 4742 of file TUnixSystem.cxx.

◆ GetEffectiveGid()

Int_t TUnixSystem::GetEffectiveGid ( )
overridevirtualinherited

Returns the effective group id.

The effective group id corresponds to the set id bit on the file being executed.

Reimplemented from TSystem.

Definition at line 2021 of file TUnixSystem.cxx.

◆ GetEffectiveUid()

Int_t TUnixSystem::GetEffectiveUid ( )
overridevirtualinherited

Returns the effective user id.

The effective id corresponds to the set id bit on the file being executed.

Reimplemented from TSystem.

Definition at line 1997 of file TUnixSystem.cxx.

◆ Getenv()

const char * TUnixSystem::Getenv ( const char * name)
overridevirtualinherited

Get environment variable.

Reimplemented from TSystem.

Definition at line 2113 of file TUnixSystem.cxx.

◆ GetErrno()

Int_t TSystem::GetErrno ( )
staticinherited

Static function returning system error number.

Definition at line 278 of file TSystem.cxx.

◆ GetError()

const char * TUnixSystem::GetError ( )
overridevirtualinherited

Return system error string.

Reimplemented from TSystem.

Definition at line 718 of file TUnixSystem.cxx.

◆ GetErrorStr()

const char * TSystem::GetErrorStr ( ) const
inlineinherited

Definition at line 370 of file TSystem.h.

◆ GetFlagsDebug()

const char * TSystem::GetFlagsDebug ( ) const
virtualinherited

Return the debug flags.

Definition at line 3988 of file TSystem.cxx.

◆ GetFlagsOpt()

const char * TSystem::GetFlagsOpt ( ) const
virtualinherited

Return the optimization flags.

Definition at line 3996 of file TSystem.cxx.

◆ GetFPEMask()

Int_t TUnixSystem::GetFPEMask ( )
overridevirtualinherited

Return the bitmap of conditions that trigger a floating point exception.

Reimplemented from TSystem.

Definition at line 891 of file TUnixSystem.cxx.

◆ GetFromPipe()

TString TSystem::GetFromPipe ( const char * command,
Int_t * ret = nullptr,
Bool_t redirectStderr = kFALSE )
virtualinherited

Execute command and return output in TString.

Parameters
commandthe command to be executed
retpointer to the memory where to store the returned value of the command, i.e. the result of ClosePipe (p-close stream, the status of its child). If ret is nullptr, the returned value is not stored anywhere.
redirectStderrif true, stderr will be redirected to stdout
Returns
the stdout of the command as TString (from the p-opened FILE stream)

Definition at line 688 of file TSystem.cxx.

◆ GetFsInfo()

int TUnixSystem::GetFsInfo ( const char * path,
Long_t * id,
Long_t * bsize,
Long_t * blocks,
Long_t * bfree )
overridevirtualinherited

Get info about a file system: id, bsize, bfree, blocks.

Id is file system type (machine dependend, see statfs()) Bsize is block size of file system Blocks is total number of blocks in file system Bfree is number of free blocks in file system The function returns 0 in case of success and 1 if the file system could not be stat'ed.

Reimplemented from TSystem.

Definition at line 1649 of file TUnixSystem.cxx.

◆ GetGid()

Int_t TUnixSystem::GetGid ( const char * group = nullptr)
overridevirtualinherited

Returns the group's id. If group = 0, returns current user's group.

Reimplemented from TSystem.

Definition at line 2005 of file TUnixSystem.cxx.

◆ GetGroupInfo() [1/2]

UserGroup_t * TUnixSystem::GetGroupInfo ( const char * group = nullptr)
overridevirtualinherited

Returns all group info in the UserGroup_t structure.

The only active fields in the UserGroup_t structure for this call are: fGid and fGroup If group = 0, returns current user's group. The returned structure must be deleted by the user. In case of error 0 is returned.

Reimplemented from TSystem.

Definition at line 2095 of file TUnixSystem.cxx.

◆ GetGroupInfo() [2/2]

UserGroup_t * TUnixSystem::GetGroupInfo ( Int_t gid)
overridevirtualinherited

Returns all group info in the UserGroup_t structure.

The only active fields in the UserGroup_t structure for this call are: fGid and fGroup The returned structure must be deleted by the user. In case of error 0 is returned.

Reimplemented from TSystem.

Definition at line 2075 of file TUnixSystem.cxx.

◆ GetHomeDirectory()

std::string TUnixSystem::GetHomeDirectory ( const char * userName = nullptr) const
overridevirtualinherited

Return the user's home directory.

Reimplemented from TSystem.

Definition at line 1466 of file TUnixSystem.cxx.

◆ GetHostByName()

TInetAddress TUnixSystem::GetHostByName ( const char * hostname)
overridevirtualinherited

Get Internet Protocol (IP) address of host.

Returns an TInetAddress object. To see if the hostname lookup was successfull call TInetAddress::IsValid().

Reimplemented from TSystem.

Definition at line 3029 of file TUnixSystem.cxx.

◆ GetIconName()

const char * TObject::GetIconName ( ) const
virtualinherited

Returns mime type name of object.

Used by the TBrowser (via TGMimeTypes class). Override for class of which you would like to have different icons for objects of the same class.

Reimplemented in ROOT::Experimental::XRooFit::xRooNode, TASImage, TBranch, TBranchElement, TGeoVolume, TGMainFrame, TKey, TMethodBrowsable, TSystemFile, and TVirtualBranchBrowsable.

Definition at line 472 of file TObject.cxx.

◆ GetIncludePath()

const char * TSystem::GetIncludePath ( )
virtualinherited

Get the list of include path.

Definition at line 4034 of file TSystem.cxx.

◆ GetLastErrorString() [1/2]

TString & TSystem::GetLastErrorString ( )
protectedinherited

Return the thread local storage for the custom last error message.

Definition at line 2117 of file TSystem.cxx.

◆ GetLastErrorString() [2/2]

const TString & TSystem::GetLastErrorString ( ) const
protectedinherited

Return the thread local storage for the custom last error message.

Definition at line 2126 of file TSystem.cxx.

◆ GetLibraries()

const char * TSystem::GetLibraries ( const char * regexp = "",
const char * options = "",
Bool_t isRegexp = kTRUE )
virtualinherited

Return a space separated list of loaded shared libraries.

Regexp is a wildcard expression, see TRegexp::MakeWildcard. This list is of a format suitable for a linker, i.e it may contain -Lpathname and/or -lNameOfLib. Option can be any of:

  • S: shared libraries loaded at the start of the executable, because they were specified on the link line.
  • D: shared libraries dynamically loaded after the start of the program.
  • L: this option is ignored, and available for backward compatibility.

Reimplemented in TWinNTSystem.

Definition at line 2151 of file TSystem.cxx.

◆ GetLinkdefSuffix()

const char * TSystem::GetLinkdefSuffix ( ) const
virtualinherited

Return the linkdef suffix chosen by the user for ACLiC.

See TSystem::CompileMacro for more details.

Definition at line 4062 of file TSystem.cxx.

◆ GetLinkedLibraries()

const char * TUnixSystem::GetLinkedLibraries ( )
overrideprotectedvirtualinherited

Get list of shared libraries loaded at the start of the executable.

Returns 0 in case list cannot be obtained or in case of error.

Reimplemented from TSystem.

Definition at line 2840 of file TUnixSystem.cxx.

◆ GetLinkedLibs()

const char * TSystem::GetLinkedLibs ( ) const
virtualinherited

Return the list of library linked to this executable.

See TSystem::CompileMacro for more details.

Definition at line 4053 of file TSystem.cxx.

◆ GetListOfFileHandlers()

virtual TSeqCollection * TSystem::GetListOfFileHandlers ( ) const
inlinevirtualinherited

Definition at line 402 of file TSystem.h.

◆ GetListOfSignalHandlers()

virtual TSeqCollection * TSystem::GetListOfSignalHandlers ( ) const
inlinevirtualinherited

Definition at line 399 of file TSystem.h.

◆ GetListOfStdExceptionHandlers()

virtual TSeqCollection * TSystem::GetListOfStdExceptionHandlers ( ) const
inlinevirtualinherited

Definition at line 405 of file TSystem.h.

◆ GetListOfTimers()

virtual TList * TSystem::GetListOfTimers ( ) const
inlinevirtualinherited

Definition at line 413 of file TSystem.h.

◆ GetMakeExe()

const char * TSystem::GetMakeExe ( ) const
virtualinherited

Return the command line use to make an executable.

See TSystem::CompileMacro for more details.

Definition at line 4026 of file TSystem.cxx.

◆ GetMakeSharedLib()

const char * TSystem::GetMakeSharedLib ( ) const
virtualinherited

Return the command line use to make a shared library.

See TSystem::CompileMacro for more details.

Definition at line 4017 of file TSystem.cxx.

◆ GetMemInfo()

int TUnixSystem::GetMemInfo ( MemInfo_t * info) const
overridevirtualinherited

Returns ram and swap memory usage info into the MemInfo_t structure.

Returns -1 in case of error, 0 otherwise.

Reimplemented from TSystem.

Definition at line 5341 of file TUnixSystem.cxx.

◆ GetName()

const char * TNamed::GetName ( ) const
inlineoverridevirtualinherited

Returns name of object.

This default method returns the class name. Classes that give objects a name should override this method.

Reimplemented from TObject.

Definition at line 49 of file TNamed.h.

◆ GetObjectInfo()

char * TObject::GetObjectInfo ( Int_t px,
Int_t py ) const
virtualinherited

Returns string containing info about the object at position (px,py).

This method is typically overridden by classes of which the objects can report peculiarities for different positions. Returned string will be re-used (lock in MT environment).

Reimplemented in TASImage, TAxis3D, TColorWheel, TF1, TF2, TFileDrawMap, TGeoNode, TGeoTrack, TGeoVolume, TGL5DDataSet, TGLHistPainter, TGLParametricEquation, TGLTH3Composition, TGraph, TH1, THistPainter, TNode, TPaletteAxis, TParallelCoordVar, and TVirtualHistPainter.

Definition at line 491 of file TObject.cxx.

◆ GetObjectStat()

Bool_t TObject::GetObjectStat ( )
staticinherited

Get status of object stat flag.

Definition at line 1181 of file TObject.cxx.

◆ GetObjExt()

const char * TSystem::GetObjExt ( ) const
virtualinherited

Get the object file extension.

Definition at line 4082 of file TSystem.cxx.

◆ GetOption()

virtual Option_t * TObject::GetOption ( ) const
inlinevirtualinherited

◆ GetPathInfo() [1/3]

int TSystem::GetPathInfo ( const char * path,
Long_t * id,
Long64_t * size,
Long_t * flags,
Long_t * modtime )
inherited

Get info about a file: id, size, flags, modification time.

  • Id is (statbuf.st_dev << 24) + statbuf.st_ino
  • Size is the file size
  • Flags is file type: 0 is regular file, bit 0 set executable, bit 1 set directory, bit 2 set special file (socket, fifo, pipe, etc.) Modtime is modification time. The function returns 0 in case of success and 1 if the file could not be stat'ed.

Definition at line 1443 of file TSystem.cxx.

◆ GetPathInfo() [2/3]

int TSystem::GetPathInfo ( const char * path,
Long_t * id,
Long_t * size,
Long_t * flags,
Long_t * modtime )
inherited

Get info about a file: id, size, flags, modification time.

  • Id is (statbuf.st_dev << 24) + statbuf.st_ino
  • Size is the file size
  • Flags is file type: 0 is regular file, bit 0 set executable, bit 1 set directory, bit 2 set special file (socket, fifo, pipe, etc.) Modtime is modification time. The function returns 0 in case of success and 1 if the file could not be stat'ed.

Definition at line 1413 of file TSystem.cxx.

◆ GetPathInfo() [3/3]

int TUnixSystem::GetPathInfo ( const char * path,
FileStat_t & buf )
overridevirtualinherited

Get info about a file.

Info is returned in the form of a FileStat_t structure (see TSystem.h). The function returns 0 in case of success and 1 if the file could not be stat'ed.

Reimplemented from TSystem.

Definition at line 1631 of file TUnixSystem.cxx.

◆ GetPeerName()

TInetAddress TUnixSystem::GetPeerName ( int sock)
overridevirtualinherited

Get Internet Protocol (IP) address of remote host and port #.

Reimplemented from TSystem.

Definition at line 3124 of file TUnixSystem.cxx.

◆ GetPid()

int TUnixSystem::GetPid ( )
overridevirtualinherited

Get process id.

Reimplemented from TSystem.

Definition at line 2155 of file TUnixSystem.cxx.

◆ GetProcInfo()

int TUnixSystem::GetProcInfo ( ProcInfo_t * info) const
overridevirtualinherited

Returns cpu and memory used by this process into the ProcInfo_t structure.

Returns -1 in case of error, 0 otherwise.

Reimplemented from TSystem.

Definition at line 5358 of file TUnixSystem.cxx.

◆ GetServiceByName()

int TUnixSystem::GetServiceByName ( const char * service)
overridevirtualinherited

Get port # of internet service.

Reimplemented from TSystem.

Definition at line 3154 of file TUnixSystem.cxx.

◆ GetServiceByPort()

char * TUnixSystem::GetServiceByPort ( int port)
overridevirtualinherited

Get name of internet service.

Reimplemented from TSystem.

Definition at line 3169 of file TUnixSystem.cxx.

◆ GetSockName()

TInetAddress TUnixSystem::GetSockName ( int sock)
overridevirtualinherited

Get Internet Protocol (IP) address of host and port #.

Reimplemented from TSystem.

Definition at line 3094 of file TUnixSystem.cxx.

◆ GetSockOpt()

int TUnixSystem::GetSockOpt ( int sock,
int option,
int * val )
overridevirtualinherited

Get socket option.

Reimplemented from TSystem.

Definition at line 3490 of file TUnixSystem.cxx.

◆ GetSoExt()

const char * TSystem::GetSoExt ( ) const
virtualinherited

Get the shared library extension.

Definition at line 4074 of file TSystem.cxx.

◆ GetSysInfo()

int TUnixSystem::GetSysInfo ( SysInfo_t * info) const
overridevirtualinherited

Returns static system info, like OS type, CPU type, number of CPUs RAM size, etc into the SysInfo_t structure.

Returns -1 in case of error, 0 otherwise.

Reimplemented from TSystem.

Definition at line 5296 of file TUnixSystem.cxx.

◆ GetTitle()

const char * TNamed::GetTitle ( ) const
inlineoverridevirtualinherited

Returns title of object.

This default method returns the class title (i.e. description). Classes that give objects a title should override this method.

Reimplemented from TObject.

Definition at line 50 of file TNamed.h.

◆ GetUid()

Int_t TUnixSystem::GetUid ( const char * user = nullptr)
overridevirtualinherited

Returns the user's id. If user = 0, returns current user's id.

Reimplemented from TSystem.

Definition at line 1981 of file TUnixSystem.cxx.

◆ GetUniqueID()

UInt_t TObject::GetUniqueID ( ) const
virtualinherited

Return the unique object id.

Definition at line 480 of file TObject.cxx.

◆ GetUserInfo() [1/2]

UserGroup_t * TUnixSystem::GetUserInfo ( const char * user = nullptr)
overridevirtualinherited

Returns all user info in the UserGroup_t structure.

If user = 0, returns current user's id info. The returned structure must be deleted by the user. In case of error 0 is returned.

Reimplemented from TSystem.

Definition at line 2063 of file TUnixSystem.cxx.

◆ GetUserInfo() [2/2]

UserGroup_t * TUnixSystem::GetUserInfo ( Int_t uid)
overridevirtualinherited

Returns all user info in the UserGroup_t structure.

The returned structure must be deleted by the user. In case of error 0 is returned.

Reimplemented from TSystem.

Definition at line 2030 of file TUnixSystem.cxx.

◆ GetVolumes()

virtual TList * TSystem::GetVolumes ( Option_t * ) const
inlinevirtualinherited

Reimplemented in TWinNTSystem.

Definition at line 475 of file TSystem.h.

◆ GetWorkingDirectory()

std::string TUnixSystem::GetWorkingDirectory ( ) const
overridevirtualinherited

Return working directory.

Reimplemented from TSystem.

Definition at line 1438 of file TUnixSystem.cxx.

◆ HandleTimer()

Bool_t TObject::HandleTimer ( TTimer * timer)
virtualinherited

Execute action in response of a timer timing out.

This method must be overridden if an object has to react to timers.

Reimplemented in TGCommandPlugin, TGDNDManager, TGFileContainer, TGHtml, TGLEventHandler, TGPopupMenu, TGraphTime, TGScrollBar, TGShutter, TGTextEdit, TGTextEditor, TGTextEntry, TGTextView, TGToolTip, TGuiBldDragManager, TGWindow, and TTreeViewer.

Definition at line 516 of file TObject.cxx.

◆ Hash()

ULong_t TNamed::Hash ( ) const
inlineoverridevirtualinherited

Return hash value for this object.

Note: If this routine is overloaded in a derived class, this derived class should also add

void CallRecursiveRemoveIfNeeded(TObject &obj)
call RecursiveRemove for obj if gROOT is valid and obj.TestBit(kMustCleanup) is true.
Definition TROOT.h:406

Otherwise, when RecursiveRemove is called (by ~TObject or example) for this type of object, the transversal of THashList and THashTable containers will will have to be done without call Hash (and hence be linear rather than logarithmic complexity). You will also see warnings like

Error in <ROOT::Internal::TCheckHashRecursiveRemoveConsistency::CheckRecursiveRemove>: The class SomeName overrides
TObject::Hash but does not call TROOT::RecursiveRemove in its destructor.
ULong_t Hash() const override
Return hash value for this object.
Definition TNamed.h:51
Mother of all ROOT objects.
Definition TObject.h:42
virtual void Error(const char *method, const char *msgfmt,...) const
Issue error message.
Definition TObject.cxx:1098
void RecursiveRemove(TObject *obj) override
Recursively remove this object from the list of Cleanups.
Definition TROOT.cxx:2651

Reimplemented from TObject.

Definition at line 51 of file TNamed.h.

◆ HasInconsistentHash()

Bool_t TObject::HasInconsistentHash ( ) const
inlineinherited

Return true is the type of this object is known to have an inconsistent setup for Hash and RecursiveRemove (i.e.

missing call to RecursiveRemove in destructor).

Note: Since the consistency is only tested for during inserts, this routine will return true for object that have never been inserted whether or not they have a consistent setup. This has no negative side-effect as searching for the object with the right or wrong Hash will always yield a not-found answer (Since anyway no hash can be guaranteed unique, there is always a check)

Definition at line 366 of file TObject.h.

◆ HomeDirectory()

const char * TUnixSystem::HomeDirectory ( const char * userName = nullptr)
overridevirtualinherited

Return the user's home directory.

Reimplemented from TSystem.

Definition at line 1458 of file TUnixSystem.cxx.

◆ HostName()

const char * TUnixSystem::HostName ( )
overridevirtualinherited

Return the system's host name.

Reimplemented from TSystem.

Definition at line 737 of file TUnixSystem.cxx.

◆ IgnoreInterrupt()

void TSystem::IgnoreInterrupt ( Bool_t ignore = kTRUE)
virtualinherited

If ignore is true ignore the interrupt signal, else restore previous behaviour.

Typically call ignore interrupt before writing to disk.

Definition at line 604 of file TSystem.cxx.

◆ IgnoreSignal()

void TUnixSystem::IgnoreSignal ( ESignals sig,
Bool_t ignore = kTRUE )
overridevirtualinherited

If ignore is true ignore the specified signal, else restore previous behaviour.

Reimplemented from TSystem.

Definition at line 870 of file TUnixSystem.cxx.

◆ InControl()

Bool_t TSystem::InControl ( ) const
inlineinherited

Definition at line 387 of file TSystem.h.

◆ Info()

void TObject::Info ( const char * location,
const char * fmt,
... ) const
virtualinherited

Issue info message.

Use "location" to specify the method where the warning occurred. Accepts standard printf formatting arguments.

Definition at line 1072 of file TObject.cxx.

◆ InheritsFrom() [1/2]

Bool_t TObject::InheritsFrom ( const char * classname) const
virtualinherited

Returns kTRUE if object inherits from class "classname".

Reimplemented in TClass.

Definition at line 549 of file TObject.cxx.

◆ InheritsFrom() [2/2]

Bool_t TObject::InheritsFrom ( const TClass * cl) const
virtualinherited

Returns kTRUE if object inherits from TClass cl.

Reimplemented in TClass.

Definition at line 557 of file TObject.cxx.

◆ Init()

Bool_t TUnixSystem::Init ( )
overridevirtualinherited

Initialize Unix system interface.

Reimplemented from TSystem.

Definition at line 594 of file TUnixSystem.cxx.

◆ InitializeCocoa()

void TMacOSXSystem::InitializeCocoa ( )
private

Definition at line 439 of file TMacOSXSystem.mm.

◆ InnerLoop()

void TSystem::InnerLoop ( )
virtualinherited

Inner event loop.

Definition at line 402 of file TSystem.cxx.

◆ Inspect()

void TObject::Inspect ( ) const
virtualinherited

Dump contents of this object in a graphics canvas.

Same action as Dump but in a graphical form. In addition pointers to other objects can be followed.

The following picture is the Inspect of a histogram object:

Reimplemented in ROOT::Experimental::XRooFit::xRooNode, TGFrame, TInspectorObject, and TSystemFile.

Definition at line 570 of file TObject.cxx.

◆ InvertBit()

void TObject::InvertBit ( UInt_t f)
inlineinherited

Definition at line 206 of file TObject.h.

◆ IsA()

virtual TClass * TMacOSXSystem::IsA ( ) const
inlinevirtual
Returns
TClass describing current object

Reimplemented from TObject.

Definition at line 66 of file TMacOSXSystem.h.

◆ IsAbsoluteFileName()

Bool_t TSystem::IsAbsoluteFileName ( const char * dir)
virtualinherited

Return true if dir is an absolute pathname.

Reimplemented in TWinNTSystem.

Definition at line 965 of file TSystem.cxx.

◆ IsDestructed()

Bool_t TObject::IsDestructed ( ) const
inlineinherited

IsDestructed.

Note
This function must be non-virtual as it can be used on destructed (but not yet modified) memory. This is used for example in TClonesArray to record the element that have been destructed but not deleted and thus are ready for re-use (by operator new with placement).
Returns
true if this object's destructor has been run.

Definition at line 186 of file TObject.h.

◆ IsEqual()

Bool_t TObject::IsEqual ( const TObject * obj) const
virtualinherited

Default equal comparison (objects are equal if they have the same address in memory).

More complicated classes might want to override this function.

Reimplemented in TGObject, TObjString, TPair, and TQCommand.

Definition at line 589 of file TObject.cxx.

◆ IsFileInIncludePath()

Bool_t TSystem::IsFileInIncludePath ( const char * name,
char ** fullpath = nullptr )
virtualinherited

Return true if 'name' is a file that can be found in the ROOT include path or the current directory.

If 'name' contains any ACLiC style information (e.g. trailing +[+][g|O]), it will be striped off 'name'. If fullpath is != 0, the full path to the file is returned in *fullpath, which must be deleted by the caller.

Definition at line 980 of file TSystem.cxx.

◆ IsFolder()

◆ IsOnHeap()

Bool_t TObject::IsOnHeap ( ) const
inlineinherited

Definition at line 160 of file TObject.h.

◆ IsPathLocal()

Bool_t TUnixSystem::IsPathLocal ( const char * path)
overridevirtualinherited

Returns TRUE if the url in 'path' points to the local file system.

This is used to avoid going through the NIC card for local operations.

Reimplemented from TSystem.

Definition at line 1616 of file TUnixSystem.cxx.

◆ IsSortable()

Bool_t TNamed::IsSortable ( ) const
inlineoverridevirtualinherited

Reimplemented from TObject.

Reimplemented in TStructNodeProperty.

Definition at line 52 of file TNamed.h.

◆ IsZombie()

Bool_t TObject::IsZombie ( ) const
inlineinherited

Definition at line 161 of file TObject.h.

◆ Link()

int TUnixSystem::Link ( const char * from,
const char * to )
overridevirtualinherited

Create a link from file1 to file2.

Returns 0 when successful, -1 in case of failure.

Reimplemented from TSystem.

Definition at line 1659 of file TUnixSystem.cxx.

◆ ListLibraries()

void TUnixSystem::ListLibraries ( const char * regexp = "")
overridevirtualinherited

List all loaded shared libraries.

Reimplemented from TSystem.

Definition at line 2831 of file TUnixSystem.cxx.

◆ ListSymbols()

void TUnixSystem::ListSymbols ( const char * module,
const char * re = "" )
overridevirtualinherited

List symbols in a shared library.

Reimplemented from TSystem.

Definition at line 2823 of file TUnixSystem.cxx.

◆ Load()

int TUnixSystem::Load ( const char * module,
const char * entry = "",
Bool_t system = kFALSE )
overridevirtualinherited

Load a shared library.

Returns 0 on successful loading, 1 in case lib was already loaded and -1 in case lib does not exist or in case of error.

Reimplemented from TSystem.

Definition at line 2807 of file TUnixSystem.cxx.

◆ LoadAllLibraries()

UInt_t TSystem::LoadAllLibraries ( )
virtualinherited

Load all libraries known to ROOT via the rootmap system.

Returns the number of top level libraries successfully loaded.

Definition at line 1985 of file TSystem.cxx.

◆ ls()

void TNamed::ls ( Option_t * option = "") const
overridevirtualinherited

List TNamed name and title.

Reimplemented from TObject.

Reimplemented in ROOT::Experimental::XRooFit::xRooBrowser, TNode, TROOT, TStreamerBase, TStreamerElement, TStreamerInfo, TStreamerSTL, TTask, TText, and TVirtualStreamerInfo.

Definition at line 112 of file TNamed.cxx.

◆ MakeDirectory()

int TUnixSystem::MakeDirectory ( const char * name)
overridevirtualinherited

Make a Unix file system directory.

Returns 0 in case of success and -1 if the directory could not be created.

Reimplemented from TSystem.

Definition at line 1355 of file TUnixSystem.cxx.

◆ MakeZombie()

void TObject::MakeZombie ( )
inlineprotectedinherited

Definition at line 55 of file TObject.h.

◆ MayNotUse()

void TObject::MayNotUse ( const char * method) const
inherited

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).

Definition at line 1160 of file TObject.cxx.

◆ mkdir()

int TSystem::mkdir ( const char * name,
Bool_t recursive = kFALSE )
virtualinherited

Make a file system directory.

Returns 0 in case of success and -1 if the directory could not be created (either already exists or illegal path name). If 'recursive' is true, makes parent directories as needed.

Reimplemented in TWinNTSystem.

Definition at line 920 of file TSystem.cxx.

◆ NextTimeOut()

Long_t TSystem::NextTimeOut ( Bool_t mode)
virtualinherited

Time when next timer of mode (synchronous=kTRUE or asynchronous=kFALSE) will time-out (in ms).

Definition at line 496 of file TSystem.cxx.

◆ Notify()

Bool_t TObject::Notify ( )
virtualinherited

This method must be overridden to handle object notification (the base implementation is no-op).

Different objects in ROOT use the Notify method for different purposes, in coordination with other objects that call this method at the appropriate time.

For example, TLeaf uses it to load class information; TBranchRef to load contents of referenced branches TBranchRef; most notably, based on Notify, TChain implements a callback mechanism to inform interested parties when it switches to a new sub-tree.

Reimplemented in h1analysis, h1analysisTreeReader, TARInterruptHandler, TASInputHandler, TASInterruptHandler, TASLogHandler, TASSigPipeHandler, TBlinkTimer, TBranchElement, TBranchRef, TBreakLineCom, TBrowserTimer, TCollection, TDelCharCom, TDelTextCom, TFileHandler, TGContainerKeyboardTimer, TGContainerScrollTimer, TGInputHandler, TGLRedrawTimer, TGTextEditHist, TGuiBldDragManagerRepeatTimer, TIdleTimer, TInsCharCom, TInsTextCom, TInterruptHandler, TLeafObject, TMessageHandler, TNotifyLink< Type >, TNotifyLink< RNoCleanupNotifierHelper >, TNotifyLink< ROOT::Detail::TBranchProxy >, TNotifyLink< TTreeReader >, TPopupDelayTimer, TProcessEventTimer, TRefTable, TRepeatTimer, TSBRepeatTimer, TSelector, TSelectorDraw, TSelectorEntries, TSignalHandler, TSingleShotCleaner, TSocketHandler, TStdExceptionHandler, TSysEvtHandler, TTermInputHandler, TThreadTimer, TTimeOutTimer, TTimer, TTipDelayTimer, TTree, TTreeFormula, TTreeFormulaManager, TTreeReader, TViewTimer, and TViewUpdateTimer.

Definition at line 618 of file TObject.cxx.

◆ NotifyApplicationCreated()

void TSystem::NotifyApplicationCreated ( )
virtualinherited

Hook to tell TSystem that the TApplication object has been created.

Reimplemented in TWinNTSystem.

Definition at line 313 of file TSystem.cxx.

◆ Now()

TTime TUnixSystem::Now ( )
overridevirtualinherited

Get current time in milliseconds since 0:00 Jan 1 1995.

Reimplemented from TSystem.

Definition at line 2953 of file TUnixSystem.cxx.

◆ Obsolete()

void TObject::Obsolete ( const char * method,
const char * asOfVers,
const char * removedFromVers ) const
inherited

Use this method to declare a method obsolete.

Specify as of which version the method is obsolete and as from which version it will be removed.

Definition at line 1169 of file TObject.cxx.

◆ OpenConnection()

int TUnixSystem::OpenConnection ( const char * server,
int port,
int tcpwindowsize = -1,
const char * protocol = "tcp" )
overridevirtualinherited

Open a connection to a service on a server.

Returns -1 in case connection cannot be opened. Use tcpwindowsize to specify the size of the receive buffer, it has to be specified here to make sure the window scale option is set (for tcpwindowsize > 65KB and for platforms supporting window scaling). Is called via the TSocket constructor.

Reimplemented from TSystem.

Definition at line 3208 of file TUnixSystem.cxx.

◆ OpenDirectory()

void * TUnixSystem::OpenDirectory ( const char * name)
overridevirtualinherited

Open a Unix file system directory. Returns 0 if directory does not exist.

Reimplemented from TSystem.

Definition at line 1367 of file TUnixSystem.cxx.

◆ Openlog()

void TUnixSystem::Openlog ( const char * name,
Int_t options,
ELogFacility facility )
overridevirtualinherited

Open connection to system log daemon.

For the use of the options and facility see the Unix openlog man page.

Reimplemented from TSystem.

Definition at line 2599 of file TUnixSystem.cxx.

◆ OpenPipe()

FILE * TUnixSystem::OpenPipe ( const char * shellcmd,
const char * mode )
overridevirtualinherited

Open a pipe.

Reimplemented from TSystem.

Definition at line 2139 of file TUnixSystem.cxx.

◆ operator delete() [1/3]

void TObject::operator delete ( void * ptr,
size_t size )
inherited

Operator delete for sized deallocation.

Definition at line 1234 of file TObject.cxx.

◆ operator delete() [2/3]

void TObject::operator delete ( void * ptr)
inherited

Operator delete.

Definition at line 1212 of file TObject.cxx.

◆ operator delete() [3/3]

void TObject::operator delete ( void * ptr,
void * vp )
inherited

Only called by placement new when throwing an exception.

Definition at line 1266 of file TObject.cxx.

◆ operator delete[]() [1/3]

void TObject::operator delete[] ( void * ptr,
size_t size )
inherited

Operator delete [] for sized deallocation.

Definition at line 1245 of file TObject.cxx.

◆ operator delete[]() [2/3]

void TObject::operator delete[] ( void * ptr)
inherited

Operator delete [].

Definition at line 1223 of file TObject.cxx.

◆ operator delete[]() [3/3]

void TObject::operator delete[] ( void * ptr,
void * vp )
inherited

Only called by placement new[] when throwing an exception.

Definition at line 1274 of file TObject.cxx.

◆ operator new() [1/2]

void * TObject::operator new ( size_t sz)
inlineinherited

Definition at line 189 of file TObject.h.

◆ operator new() [2/2]

void * TObject::operator new ( size_t sz,
void * vp )
inlineinherited

Definition at line 191 of file TObject.h.

◆ operator new[]() [1/2]

void * TObject::operator new[] ( size_t sz)
inlineinherited

Definition at line 190 of file TObject.h.

◆ operator new[]() [2/2]

void * TObject::operator new[] ( size_t sz,
void * vp )
inlineinherited

Definition at line 192 of file TObject.h.

◆ operator=()

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

◆ Paint()

void TObject::Paint ( Option_t * option = "")
virtualinherited

This method must be overridden if a class wants to paint itself.

The difference between Paint() and Draw() is that when a object draws itself it is added to the display list of the pad in which it is drawn (and automatically redrawn whenever the pad is redrawn). While paint just draws the object without adding it to the pad display list.

Reimplemented in ROOT::Experimental::RTreeMapPainter, ROOT::RGeoPainter, TAnnotation, TArrow, TASImage, TASPaletteEditor::LimitLine, TASPaletteEditor::PaintPalette, TAxis3D, TBits, TBox, TButton, TCanvas, TClassTree, TCollection, TColorWheel, TCrown, TDiamond, TDirectory, TEfficiency, TEllipse, TEveArrow, TEveCaloViz, TEveDigitSet, TEveGeoShape, TEveGeoTopNode, TEvePlot3D, TEvePointSet, TEveProjectionAxes, TEveScene, TEveShape, TEveStraightLineSet, TEveText, TEveTriangleSet, TExec, TF1, TF2, TF3, TFile, TFileDrawMap, TFrame, TGaxis, TGenerator, TGeoBoolNode, TGeoIntersection, TGeoNode, TGeoOverlap, TGeoPainter, TGeoPhysicalNode, TGeoShape, TGeoSubtraction, TGeoTrack, TGeoUnion, TGeoVGShape, TGeoVolume, TGL5DDataSet, TGLHistPainter, TGLParametricEquation, TGLTH3Composition, TGraph2D, TGraph2DPainter, TGraph, TGraphEdge, TGraphNode, TGraphPolargram, TGraphTime, TH1, THistPainter, THStack, TLatex, TLegend, TLine, TMacro, TMarker3DBox, TMarker, TMathText, TMultiGraph, TNode, TNodeDiv, TPad, TPaletteAxis, TParallelCoord, TParallelCoordRange, TParallelCoordVar, TParticle, TPave, TPaveLabel, TPaveStats, TPavesText, TPaveText, TPie, TPolyLine3D, TPolyLine, TPolyMarker3D, TPolyMarker, TPrimary, TRatioPlot, TScatter2D, TScatter, TShape, TSpectrum2Painter, TSpider, TSpline, TSQLFile, TStyle, TText, TTreePerfStats, TVirtualGeoPainter, TVirtualGeoTrack, TVirtualHistPainter, TVirtualPad, TWbox, and TXMLFile.

Definition at line 631 of file TObject.cxx.

◆ Pop()

void TObject::Pop ( )
virtualinherited

Pop on object drawn in a pad to the top of the display list.

I.e. it will be drawn last and on top of all other primitives.

Reimplemented in TFrame, TPad, and TVirtualPad.

Definition at line 640 of file TObject.cxx.

◆ PrependPathName()

const char * TUnixSystem::PrependPathName ( const char * dir,
TString & name )
overridevirtualinherited

Concatenate a directory and a file name.

Reimplemented from TSystem.

Definition at line 1525 of file TUnixSystem.cxx.

◆ Print()

◆ ProcessApplicationDefinedEvent()

void TMacOSXSystem::ProcessApplicationDefinedEvent ( void * event)
private

Definition at line 547 of file TMacOSXSystem.mm.

◆ ProcessEvents()

Bool_t TSystem::ProcessEvents ( )
virtualinherited

Process pending events (GUI, timers, sockets).

Returns the result of TROOT::IsInterrupted(). The interrupt flag (TROOT::SetInterrupt()) can be set during the handling of the events. This mechanism allows macros running in tight calculating loops to be interrupted by some GUI event (depending on the interval with which this method is called). For example hitting ctrl-c in a canvas will set the interrupt flag.

Reimplemented in TWinNTSystem.

Definition at line 418 of file TSystem.cxx.

◆ ProcessPendingEvents()

bool TMacOSXSystem::ProcessPendingEvents ( )
private

Definition at line 467 of file TMacOSXSystem.mm.

◆ pwd()

const char * TSystem::pwd ( )
inlineinherited

Definition at line 444 of file TSystem.h.

◆ Read()

Int_t TObject::Read ( const char * name)
virtualinherited

Read contents of object with specified name from the current directory.

First the key with the given name is searched in the current directory, next the key buffer is deserialized into the object. The object must have been created before via the default constructor. See TObject::Write().

Reimplemented in TBuffer, TKey, TKeySQL, and TKeyXML.

Definition at line 673 of file TObject.cxx.

◆ RecursiveRemove()

◆ RecvBuf()

int TUnixSystem::RecvBuf ( int sock,
void * buf,
int length )
overridevirtualinherited

Receive a buffer headed by a length indicator.

Length is the size of the buffer. Returns the number of bytes received in buf or -1 in case of error.

Reimplemented from TSystem.

Definition at line 3299 of file TUnixSystem.cxx.

◆ RecvRaw()

int TUnixSystem::RecvRaw ( int sock,
void * buf,
int length,
int opt )
overridevirtualinherited

Receive exactly length bytes into buffer.

Use opt to receive out-of-band data or to have a peek at what is in the buffer (see TSocket). Buffer must be able to store at least length bytes. Returns the number of bytes received (can be 0 if other side of connection was closed) or -1 in case of error, -2 in case of MSG_OOB and errno == EWOULDBLOCK, -3 in case of MSG_OOB and errno == EINVAL and -4 in case of kNoBlock and errno == EWOULDBLOCK. Returns -5 if pipe broken or reset by peer (EPIPE || ECONNRESET).

Reimplemented from TSystem.

Definition at line 3351 of file TUnixSystem.cxx.

◆ RedirectOutput()

Int_t TUnixSystem::RedirectOutput ( const char * file,
const char * mode = "a",
RedirectHandle_t * h = nullptr )
overridevirtualinherited

Redirect standard output (stdout, stderr) to the specified file.

If the file argument is 0 the output is set again to stderr, stdout. The second argument specifies whether the output should be added to the file ("a", default) or the file be truncated before ("w"). This function saves internally the current state into a static structure. The call can be made reentrant by specifying the opaque structure pointed by 'h', which is filled with the relevant information. The handle 'h' obtained on the first call must then be used in any subsequent call, included ShowOutput, to display the redirected output. Returns 0 on success, -1 in case of error.

Reimplemented from TSystem.

Definition at line 2665 of file TUnixSystem.cxx.

◆ 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 538 of file TMacOSXSystem.mm.

◆ RemoveOnExit()

void TSystem::RemoveOnExit ( TObject * obj)
inherited

Objects that should be deleted on exit of the OS interface.

Definition at line 294 of file TSystem.cxx.

◆ RemoveSignalHandler()

TSignalHandler * TUnixSystem::RemoveSignalHandler ( TSignalHandler * h)
overridevirtualinherited

Remove a signal handler from list of signal handlers.

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

Reimplemented from TSystem.

Definition at line 824 of file TUnixSystem.cxx.

◆ RemoveStdExceptionHandler()

TStdExceptionHandler * TSystem::RemoveStdExceptionHandler ( TStdExceptionHandler * eh)
virtualinherited

Remove an exception handler from list of exception handlers.

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

Definition at line 623 of file TSystem.cxx.

◆ RemoveTimer()

TTimer * TUnixSystem::RemoveTimer ( TTimer * ti)
overridevirtualinherited

Remove timer from list of system timers.

Reimplemented from TSystem.

Definition at line 3001 of file TUnixSystem.cxx.

◆ Rename()

int TUnixSystem::Rename ( const char * from,
const char * to )
overridevirtualinherited

Rename a file. Returns 0 when successful, -1 in case of failure.

Reimplemented from TSystem.

Definition at line 1605 of file TUnixSystem.cxx.

◆ ResetBit()

void TObject::ResetBit ( UInt_t f)
inlineinherited

Definition at line 203 of file TObject.h.

◆ ResetErrno()

void TSystem::ResetErrno ( )
staticinherited

Static function resetting system error number.

Definition at line 286 of file TSystem.cxx.

◆ ResetSignal()

void TUnixSystem::ResetSignal ( ESignals sig,
Bool_t reset = kTRUE )
overridevirtualinherited

If reset is true reset the signal handler for the specified signal to the default handler, else restore previous behaviour.

Reimplemented from TSystem.

Definition at line 850 of file TUnixSystem.cxx.

◆ ResetSignals()

void TUnixSystem::ResetSignals ( )
overridevirtualinherited

Reset signals handlers to previous behaviour.

Reimplemented from TSystem.

Definition at line 861 of file TUnixSystem.cxx.

◆ ResetTimer()

void TUnixSystem::ResetTimer ( TTimer * ti)
overridevirtualinherited

Reset a-sync timer.

Reimplemented from TSystem.

Definition at line 3016 of file TUnixSystem.cxx.

◆ Run()

void TSystem::Run ( )
virtualinherited

System event loop.

Definition at line 345 of file TSystem.cxx.

◆ SaveAs()

void TObject::SaveAs ( const char * filename = "",
Option_t * option = "" ) const
virtualinherited

Save this object in the file specified by filename.

  • if "filename" contains ".root" the object is saved in filename as root binary file.
  • if "filename" contains ".xml" the object is saved in filename as a xml ascii file.
  • if "filename" contains ".cc" the object is saved in filename as C code independent from ROOT. The code is generated via SavePrimitive(). Specific code should be implemented in each object to handle this option. Like in TF1::SavePrimitive().
  • otherwise the object is written to filename as a CINT/C++ script. The C++ code to rebuild this object is generated via SavePrimitive(). The "option" parameter is passed to SavePrimitive. By default it is an empty string. It can be used to specify the Draw option in the code generated by SavePrimitive.

    The function is available via the object context menu.

Reimplemented in ROOT::Experimental::XRooFit::xRooNode, TClassTree, TFolder, TGeoVolume, TGObject, TGraph, TH1, TPad, TPaveClass, TSpline3, TSpline5, TSpline, TTreePerfStats, and TVirtualPad.

Definition at line 708 of file TObject.cxx.

◆ SavePrimitive()

void TObject::SavePrimitive ( std::ostream & out,
Option_t * option = "" )
virtualinherited

Save a primitive as a C++ statement(s) on output stream "out".

Reimplemented in TAnnotation, TArc, TArrow, TASImage, TAxis3D, TBox, TButton, TCanvas, TChain, TCrown, TCurlyArc, TCurlyLine, TCutG, TDiamond, TEfficiency, TEllipse, TExec, TF12, TF1, TF2, TF3, TFrame, TGaxis, TGButton, TGButtonGroup, TGCanvas, TGCheckButton, TGColorSelect, TGColumnLayout, TGComboBox, TGCompositeFrame, TGContainer, TGDockableFrame, TGDoubleHSlider, TGDoubleVSlider, TGedMarkerSelect, TGedPatternSelect, TGeoArb8, TGeoBBox, TGeoBoolNode, TGeoCombiTrans, TGeoCompositeShape, TGeoCone, TGeoConeSeg, TGeoCtub, TGeoDecayChannel, TGeoElementRN, TGeoEltu, TGeoGtra, TGeoHalfSpace, TGeoHMatrix, TGeoHype, TGeoIdentity, TGeoIntersection, TGeoMaterial, TGeoMedium, TGeoMixture, TGeoPara, TGeoParaboloid, TGeoPatternCylPhi, TGeoPatternCylR, TGeoPatternParaX, TGeoPatternParaY, TGeoPatternParaZ, TGeoPatternSphPhi, TGeoPatternSphR, TGeoPatternSphTheta, TGeoPatternTrapZ, TGeoPatternX, TGeoPatternY, TGeoPatternZ, TGeoPcon, TGeoPgon, TGeoRotation, TGeoScaledShape, TGeoShapeAssembly, TGeoSphere, TGeoSubtraction, TGeoTessellated, TGeoTorus, TGeoTranslation, TGeoTrap, TGeoTrd1, TGeoTrd2, TGeoTube, TGeoTubeSeg, TGeoUnion, TGeoVolume, TGeoXtru, TGFileContainer, TGFont, TGFrame, TGFSComboBox, TGGC, TGGroupFrame, TGHButtonGroup, TGHorizontal3DLine, TGHorizontalFrame, TGHorizontalLayout, TGHProgressBar, TGHScrollBar, TGHSlider, TGHSplitter, TGHtml, TGIcon, TGLabel, TGLayoutHints, TGLineStyleComboBox, TGLineWidthComboBox, TGListBox, TGListDetailsLayout, TGListLayout, TGListTree, TGListView, TGLVContainer, TGMainFrame, TGMatrixLayout, TGMdiFrame, TGMdiMainFrame, TGMdiMenuBar, TGMenuBar, TGMenuTitle, TGNumberEntry, TGNumberEntryField, TGPictureButton, TGPopupMenu, TGProgressBar, TGRadioButton, TGraph2D, TGraph2DAsymmErrors, TGraph2DErrors, TGraph, TGraphAsymmErrors, TGraphBentErrors, TGraphEdge, TGraphErrors, TGraphMultiErrors, TGraphNode, TGraphPolar, TGraphPolargram, TGraphStruct, TGroupButton, TGRowLayout, TGShapedFrame, TGShutter, TGShutterItem, TGSplitFrame, TGStatusBar, TGTab, TGTabLayout, TGTableLayout, TGTableLayoutHints, TGTextButton, TGTextEdit, TGTextEntry, TGTextLBEntry, TGTextView, TGTileLayout, TGToolBar, TGTransientFrame, TGTripleHSlider, TGTripleVSlider, TGVButtonGroup, TGVertical3DLine, TGVerticalFrame, TGVerticalLayout, TGVFileSplitter, TGVProgressBar, TGVScrollBar, TGVSlider, TGVSplitter, TGXYLayout, TGXYLayoutHints, TH1, TH2Poly, THelix, THStack, TLatex, TLegend, TLine, TMacro, TMarker3DBox, TMarker, TMathText, TMultiGraph, TPad, TPaletteAxis, TParallelCoord, TParallelCoordVar, TPave, TPaveClass, TPaveLabel, TPaveStats, TPavesText, TPaveText, TPie, TPieSlice, TPolyLine3D, TPolyLine, TPolyMarker3D, TPolyMarker, TProfile2D, TProfile3D, TProfile, TRootContainer, TRootEmbeddedCanvas, TScatter2D, TScatter, TSlider, TSliderBox, TSpline3, TSpline5, TStyle, TText, TTreePerfStats, and TWbox.

Definition at line 858 of file TObject.cxx.

◆ SavePrimitiveConstructor()

void TObject::SavePrimitiveConstructor ( std::ostream & out,
TClass * cl,
const char * variable_name,
const char * constructor_agrs = "",
Bool_t empty_line = kTRUE )
staticprotectedinherited

Save object constructor in the output stream "out".

Can be used as first statement when implementing SavePrimitive() method for the object

Definition at line 777 of file TObject.cxx.

◆ SavePrimitiveDraw()

void TObject::SavePrimitiveDraw ( std::ostream & out,
const char * variable_name,
Option_t * option = nullptr )
staticprotectedinherited

Save invocation of primitive Draw() method Skipped if option contains "nodraw" string.

Definition at line 845 of file TObject.cxx.

◆ SavePrimitiveNameTitle()

void TNamed::SavePrimitiveNameTitle ( std::ostream & out,
const char * variable_name )
protectedinherited

Save object name and title into the output stream "out".

Definition at line 135 of file TNamed.cxx.

◆ SavePrimitiveVector()

TString TObject::SavePrimitiveVector ( std::ostream & out,
const char * prefix,
Int_t len,
Double_t * arr,
Int_t flag = 0 )
staticprotectedinherited

Save array in the output stream "out" as vector.

Create unique variable name based on prefix value Returns name of vector which can be used in constructor or in other places of C++ code If flag === kTRUE, just add empty line If flag === 111, check if array is empty and return nullptr or <vectorname>.data()

Definition at line 796 of file TObject.cxx.

◆ Select() [1/2]

Int_t TUnixSystem::Select ( TFileHandler * h,
Long_t to )
overridevirtualinherited

Select on the file descriptor related to file handler h.

The timeout to is in millisec. Returns the number of ready descriptors, or 0 in case of timeout, or < 0 in case of an error, with -2 being EINTR and -3 EBADF. In case of EINTR the errno has been reset and the method can be called again. Returns -4 in case the file handler is 0 or does not have a file descriptor >= 0.

Reimplemented from TSystem.

Definition at line 1225 of file TUnixSystem.cxx.

◆ Select() [2/2]

Int_t TUnixSystem::Select ( TList * act,
Long_t to )
overridevirtualinherited

Select on file descriptors.

The timeout to is in millisec. Returns the number of ready descriptors, or 0 in case of timeout, or < 0 in case of an error, with -2 being EINTR and -3 EBADF. In case of EINTR the errno has been reset and the method can be called again. Returns -4 in case the list did not contain any file handlers or file handlers with file descriptor >= 0.

Reimplemented from TSystem.

Definition at line 1177 of file TUnixSystem.cxx.

◆ SendBuf()

int TUnixSystem::SendBuf ( int sock,
const void * buf,
int length )
overridevirtualinherited

Send a buffer headed by a length indicator.

Returns length of sent buffer or -1 in case of error.

Reimplemented from TSystem.

Definition at line 3324 of file TUnixSystem.cxx.

◆ SendRaw()

int TUnixSystem::SendRaw ( int sock,
const void * buf,
int length,
int opt )
overridevirtualinherited

Send exactly length bytes from buffer.

Use opt to send out-of-band data (see TSocket). Returns the number of bytes sent or -1 in case of error. Returns -4 in case of kNoBlock and errno == EWOULDBLOCK. Returns -5 if pipe broken or reset by peer (EPIPE || ECONNRESET).

Reimplemented from TSystem.

Definition at line 3388 of file TUnixSystem.cxx.

◆ SetAclicMode()

void TSystem::SetAclicMode ( EAclicMode mode)
virtualinherited

AclicMode indicates whether the library should be built in debug mode or optimized.

The values are:

  • TSystem::kDefault : compile the same as the current ROOT
  • TSystem::kDebug : compiled in debug mode
  • TSystem::kOpt : optimized the library

Definition at line 4138 of file TSystem.cxx.

◆ SetBit() [1/2]

void TObject::SetBit ( UInt_t f)
inlineinherited

Definition at line 202 of file TObject.h.

◆ SetBit() [2/2]

void TObject::SetBit ( UInt_t f,
Bool_t set )
inherited

Set or unset the user status bits as specified in f.

Definition at line 888 of file TObject.cxx.

◆ SetBuildDir()

void TSystem::SetBuildDir ( const char * build_dir,
Bool_t isflat = kFALSE )
virtualinherited

Set the location where ACLiC will create libraries and use as a scratch area.

If unset, libraries will be created at the same location than the script.

Parameters
build_dirthe name of the build directory
isflatIf false (default), then the libraries are actually stored in sub-directories of 'build_dir' including the full pathname of the script. If the script is located at /full/path/name/macro.C the library will be located at build_dir+/full/path/name/macro_C.so If 'isflat' is true, then no subdirectory is created and the library is created directly in the directory 'build_dir'. Note that in this mode there is a risk than 2 script of the same in different source directory will over-write each other.
Note
This build_dir can also be controlled via ACLiC.BuildDir in your .rootrc.

Definition at line 4104 of file TSystem.cxx.

◆ SetDisplay()

void TUnixSystem::SetDisplay ( )
overridevirtualinherited

Set DISPLAY environment variable based on utmp entry. Only for UNIX.

Reimplemented from TSystem.

Definition at line 662 of file TUnixSystem.cxx.

◆ SetDrawOption()

void TObject::SetDrawOption ( Option_t * option = "")
virtualinherited

Set drawing option for object.

This option only affects the drawing style and is stored in the option field of the TObjOptLink supporting a TPad's primitive list (TList). Note that it does not make sense to call object.SetDrawOption(option) before having called object.Draw().

Reimplemented in RooPlot, TAxis, TBrowser, TGedFrame, TGFrame, TPad, TPaveStats, TRootBrowserLite, TSystemDirectory, and TSystemFile.

Definition at line 871 of file TObject.cxx.

◆ SetDtorOnly()

void TObject::SetDtorOnly ( void * obj)
staticinherited

Set destructor only flag.

Definition at line 1204 of file TObject.cxx.

◆ SetDynamicPath()

void TUnixSystem::SetDynamicPath ( const char * path)
overridevirtualinherited

Set the dynamic path to a new value.

If the value of 'path' is zero, the dynamic path is reset to its default value.

Reimplemented from TSystem.

Definition at line 4752 of file TUnixSystem.cxx.

◆ Setenv()

void TUnixSystem::Setenv ( const char * name,
const char * value )
overridevirtualinherited

Set environment variable.

Reimplemented from TSystem.

Definition at line 2105 of file TUnixSystem.cxx.

◆ SetErrorStr()

void TSystem::SetErrorStr ( const char * errstr)
inherited

Set the system error string.

This string will be used by GetError(). To be used in case one does not want or can use the system error string (e.g. because error is generated by a third party POSIX like library that does not use standard errno).

Definition at line 244 of file TSystem.cxx.

◆ SetFlagsDebug()

void TSystem::SetFlagsDebug ( const char * flags)
virtualinherited

FlagsDebug should contain the options to pass to the C++ compiler in order to compile the library in debug mode.

Definition at line 4117 of file TSystem.cxx.

◆ SetFlagsOpt()

void TSystem::SetFlagsOpt ( const char * flags)
virtualinherited

FlagsOpt should contain the options to pass to the C++ compiler in order to compile the library in optimized mode.

Definition at line 4126 of file TSystem.cxx.

◆ SetFPEMask()

Int_t TUnixSystem::SetFPEMask ( Int_t mask = kDefaultMask)
overridevirtualinherited

Set which conditions trigger a floating point exception.

Return the previous set of conditions.

Reimplemented from TSystem.

Definition at line 974 of file TUnixSystem.cxx.

◆ SetIncludePath()

void TSystem::SetIncludePath ( const char * includePath)
virtualinherited

IncludePath should contain the list of compiler flags to indicate where to find user defined header files.

It is used to expand $IncludePath in the directives given to SetMakeSharedLib() and SetMakeExe(), e.g.:

gSystem->SetInclude("-I$ROOTSYS/include -Imydirectory/include");

the default value of IncludePath on Unix is:

"-I$ROOTSYS/include "

and on Windows:

"/I%ROOTSYS%/include "

Definition at line 4257 of file TSystem.cxx.

◆ SetLinkdefSuffix()

void TSystem::SetLinkdefSuffix ( const char * suffix)
virtualinherited

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.

So by default, when doing .L MyScript.cxx, ACLiC will look for a file name MyScript_linkdef and having one of the .h (.hpp, etc.) extensions. If such a file exist, it will be added to the end of the linkdef file used to created the ACLiC dictionary. This effectively enable the full customization of the creation of the dictionary. It should be noted that the file is intended as a linkdef fragment, so usually you would not list the typical:

#pragma link off ....

Definition at line 4290 of file TSystem.cxx.

◆ SetLinkedLibs()

void TSystem::SetLinkedLibs ( const char * linkedLibs)
virtualinherited

LinkedLibs should contain the library directory and list of libraries needed to recreate the current executable.

It is used to expand $LinkedLibs in the directives given to SetMakeSharedLib() and SetMakeExe() The default value on Unix is: root-config --glibs

Definition at line 4268 of file TSystem.cxx.

◆ SetMakeExe()

void TSystem::SetMakeExe ( const char * directives)
virtualinherited

Directives has the same syntax as the argument of SetMakeSharedLib but is used to create an executable.

This creation is used as a means to output a list of unresolved symbols, when loading a shared library has failed. The required variable is $ExeName rather than $SharedLib, e.g.:

gSystem->SetMakeExe(
"g++ -Wall -fPIC $IncludePath $SourceFiles
-o $ExeName $LinkedLibs -L/usr/X11R6/lib -lX11 -lm -ldl -rdynamic");

Definition at line 4154 of file TSystem.cxx.

◆ SetMakeSharedLib()

void TSystem::SetMakeSharedLib ( const char * directives)
virtualinherited

Directives should contain the description on how to compile and link a shared lib.

This description can be any valid shell command, including the use of ';' to separate several instructions. However, shell specific construct should be avoided. In particular this description can contain environment variables, like $ROOTSYS (or ROOTSYS% on windows).

The following special variables will be expanded before execution:
Variable name Expands to
------------- ----------
$SourceFiles Name of source files to be compiled
$SharedLib Name of the shared library being created
$LibName Name of shared library without extension
$BuildDir Directory where the files will be created
$IncludePath value of fIncludePath
$LinkedLibs value of fLinkedLibs
$RPath ROOT's library directory is added as -rpath
$DepLibs libraries on which this library depends on
$ObjectFiles Name of source files to be compiler with
their extension changed to .o or .obj
$Opt location of the optimization/debug options
set fFlagsDebug and fFlagsOpt
char name[80]
Definition TGX11.cxx:148
const char * extension
Definition civetweb.c:8515
TString fLinkedLibs
Definition TSystem.h:332
TString fIncludePath
Definition TSystem.h:331

e.g.:

gSystem->SetMakeSharedLib(
"KCC -n32 --strict $IncludePath -K0 \$Opt $SourceFile
--no_exceptions --signed_chars --display_error_number
--diag_suppress 68 -o $SharedLib");
// Or adding an rpath to the generated libraries (ROOT's rpath is inserted automatically into $RPath):
gSystem->SetMakeSharedLib(
"Cxx $IncludePath -c $SourceFile;
ld -L/usr/lib/cmplrs/cxx -rpath /usr/lib/cmplrs/cxx -expect_unresolved
\$Opt \$RPath -shared /usr/lib/cmplrs/cc/crt0.o /usr/lib/cmplrs/cxx/_main.o
-o $SharedLib $ObjectFile -lcxxstd -lcxx -lexc -lots -lc"
gSystem->SetMakeSharedLib(
"$HOME/mygcc/bin/g++ \$Opt -Wall -fPIC $IncludePath $SourceFile
-shared -o $SharedLib");
gSystem->SetMakeSharedLib(
"cl -DWIN32 -D_WIN32 -D_MT -D_DLL -MD /O2 /G5 /MD -DWIN32
-D_WINDOWS $IncludePath $SourceFile
/link -PDB:NONE /NODEFAULTLIB /INCREMENTAL:NO /RELEASE /NOLOGO
$LinkedLibs -entry:_DllMainCRTStartup@12 -dll /out:$SharedLib")

Definition at line 4208 of file TSystem.cxx.

◆ SetName()

void TNamed::SetName ( const char * name)
virtualinherited

Set the name of the TNamed.

WARNING: if the object is a member of a THashTable or THashList container the container must be Rehash()'ed after SetName(). For example the list of objects in the current directory is a THashList.

Reimplemented in RooAbsArg, RooAbsData, RooDataHist, RooDataSet, RooFitResult, RooPlot, ROOT::Experimental::XRooFit::xRooNode, TChain, TColor, TDirectory, TEfficiency, TEventList, TEveScene, TFormula, TGraph2D, TGraph, TH1, TNode, TRotMatrix, TShape, TSystemDirectory, TSystemFile, and TTree.

Definition at line 149 of file TNamed.cxx.

◆ SetNameTitle()

void TNamed::SetNameTitle ( const char * name,
const char * title )
virtualinherited

Set all the TNamed parameters (name and title).

WARNING: if the name is changed and the object is a member of a THashTable or THashList container the container must be Rehash()'ed after SetName(). For example the list of objects in the current directory is a THashList.

Reimplemented in RooAbsArg, RooAbsData, RooDataHist, RooDataSet, RooFitResult, RooPlot, TContextMenu, TGraph2D, TGraph, TH1, and TNode.

Definition at line 163 of file TNamed.cxx.

◆ SetObjectStat()

void TObject::SetObjectStat ( Bool_t stat)
staticinherited

Turn on/off tracking of objects in the TObjectTable.

Definition at line 1188 of file TObject.cxx.

◆ SetObjExt()

void TSystem::SetObjExt ( const char * objExt)
virtualinherited

Set object files extension, should be either .o, .obj, etc.

Definition at line 4307 of file TSystem.cxx.

◆ SetProgname()

void TUnixSystem::SetProgname ( const char * name)
overridevirtualinherited

Set the application name (from command line, argv[0]) and copy it in gProgName.

Copy the application pathname in gProgPath. If name is 0 let the system set the actual executable name and path (works on MacOS X and Linux).

Reimplemented from TSystem.

Definition at line 640 of file TUnixSystem.cxx.

◆ SetSockOpt()

int TUnixSystem::SetSockOpt ( int sock,
int option,
int val )
overridevirtualinherited

Set socket option.

Reimplemented from TSystem.

Definition at line 3420 of file TUnixSystem.cxx.

◆ SetSoExt()

void TSystem::SetSoExt ( const char * soExt)
virtualinherited

Set shared library extension, should be either .so, .sl, .a, .dll, etc.

Definition at line 4299 of file TSystem.cxx.

◆ SetTitle()

void TNamed::SetTitle ( const char * title = "")
virtualinherited

◆ SetUniqueID()

void TObject::SetUniqueID ( UInt_t uid)
virtualinherited

Set the unique object id.

Definition at line 899 of file TObject.cxx.

◆ ShowOutput()

void TSystem::ShowOutput ( RedirectHandle_t * h)
virtualinherited

Display the content associated with the redirection described by the opaque handle 'h'.

Definition at line 1740 of file TSystem.cxx.

◆ SigAlarmInterruptsSyscalls()

void TUnixSystem::SigAlarmInterruptsSyscalls ( Bool_t set)
overridevirtualinherited

When the argument is true the SIGALRM signal handler is set so that interrupted syscalls will not be restarted by the kernel.

This is typically used in case one wants to put a timeout on an I/O operation. By default interrupted syscalls will always be restarted (for all signals). This can be controlled for each a-synchronous TTimer via the method TTimer::SetInterruptSyscalls().

Reimplemented from TSystem.

Definition at line 883 of file TUnixSystem.cxx.

◆ Sizeof()

Int_t TNamed::Sizeof ( ) const
virtualinherited

Return size of the TNamed part of the TObject.

Reimplemented in TDirectory, TDirectoryFile, TFile, TKey, TSQLFile, and TXMLFile.

Definition at line 182 of file TNamed.cxx.

◆ Sleep()

void TUnixSystem::Sleep ( UInt_t milliSec)
overridevirtualinherited

Sleep milliSec milliseconds.

Reimplemented from TSystem.

Definition at line 1159 of file TUnixSystem.cxx.

◆ SplitAclicMode()

TString TSystem::SplitAclicMode ( const char * filename,
TString & aclicMode,
TString & arguments,
TString & io ) const
virtualinherited

This method split a filename of the form:

[path/]macro.C[+|++[k|f|g|O|c|s|d|v|-]][(args)].
#define d(i)
Definition RSha256.hxx:102
#define f(i)
Definition RSha256.hxx:104
#define c(i)
Definition RSha256.hxx:101
#define g(i)
Definition RSha256.hxx:105

It stores the ACliC mode [+|++[options]] in 'mode', the arguments (including parenthesis) in arg and the I/O indirection in io

Definition at line 4321 of file TSystem.cxx.

◆ StackTrace()

void TUnixSystem::StackTrace ( )
overridevirtualinherited

Print a stack trace.

Reimplemented from TSystem.

Definition at line 2257 of file TUnixSystem.cxx.

◆ Streamer()

virtual void TMacOSXSystem::Streamer ( TBuffer & R__b)
virtual

Stream an object of class TObject.

Reimplemented from TObject.

◆ StreamerNVirtual()

void TMacOSXSystem::StreamerNVirtual ( TBuffer & ClassDef_StreamerNVirtual_b)
inline

Definition at line 66 of file TMacOSXSystem.h.

◆ StripOffProto()

const char * TSystem::StripOffProto ( const char * path,
const char * proto )
staticprotectedinherited

Strip off protocol string from specified path.

Definition at line 116 of file TSystem.cxx.

◆ Symlink()

int TUnixSystem::Symlink ( const char * from,
const char * to )
overridevirtualinherited

Create a symlink from file1 to file2.

Returns 0 when successful, -1 in case of failure.

Reimplemented from TSystem.

Definition at line 1668 of file TUnixSystem.cxx.

◆ SysError()

void TObject::SysError ( const char * location,
const char * fmt,
... ) const
virtualinherited

Issue system error message.

Use "location" to specify the method where the system error occurred. Accepts standard printf formatting arguments.

Definition at line 1112 of file TObject.cxx.

◆ Syslog()

void TUnixSystem::Syslog ( ELogLevel level,
const char * mess )
overridevirtualinherited

Send mess to syslog daemon.

Level is the logging level and mess the message that will be written on the log.

Reimplemented from TSystem.

Definition at line 2637 of file TUnixSystem.cxx.

◆ TempDirectory()

const char * TUnixSystem::TempDirectory ( ) const
overridevirtualinherited

Return a user configured or systemwide directory to create temporary files in.

Reimplemented from TSystem.

Definition at line 1478 of file TUnixSystem.cxx.

◆ TempFileName()

FILE * TUnixSystem::TempFileName ( TString & base,
const char * dir = nullptr,
const char * suffix = nullptr )
overridevirtualinherited

Create a secure temporary file by appending a unique 6 letter string to base.

The file will be created in a standard (system) directory or in the directory provided in dir. Optionally one can provide suffix append to the final name - like extension ".txt" or ".html". The full filename is returned in base and a filepointer is returned for safely writing to the file (this avoids certain security problems). Returns 0 in case of error.

Reimplemented from TSystem.

Definition at line 1498 of file TUnixSystem.cxx.

◆ TestBit()

Bool_t TObject::TestBit ( UInt_t f) const
inlineinherited

Definition at line 204 of file TObject.h.

◆ TestBits()

Int_t TObject::TestBits ( UInt_t f) const
inlineinherited

Definition at line 205 of file TObject.h.

◆ Umask()

int TUnixSystem::Umask ( Int_t mask)
overridevirtualinherited

Set the process file creation mode mask.

Reimplemented from TSystem.

Definition at line 1874 of file TUnixSystem.cxx.

◆ UnixFilestat()

int TUnixSystem::UnixFilestat ( const char * fpath,
FileStat_t & buf )
staticprotectedinherited

Get info about a file.

Info is returned in the form of a FileStat_t structure (see TSystem.h). The function returns 0 in case of success and 1 if the file could not be stat'ed.

Definition at line 4022 of file TUnixSystem.cxx.

◆ UnixFSstat()

int TUnixSystem::UnixFSstat ( const char * path,
Long_t * id,
Long_t * bsize,
Long_t * blocks,
Long_t * bfree )
staticprotectedinherited

Get info about a file system: id, bsize, bfree, blocks.

Id is file system type (machine dependend, see statfs()) Bsize is block size of file system Blocks is total number of blocks in file system Bfree is number of free blocks in file system The function returns 0 in case of success and 1 if the file system could not be stat'ed.

Definition at line 4066 of file TUnixSystem.cxx.

◆ UnixGetdirentry()

const char * TUnixSystem::UnixGetdirentry ( void * dir)
staticprotectedinherited

Returns the next directory entry.

Definition at line 3993 of file TUnixSystem.cxx.

◆ UnixHomedirectory() [1/2]

const char * TUnixSystem::UnixHomedirectory ( const char * user,
char * path,
char * mydir )
staticprotectedinherited

Returns the user's home directory.

Definition at line 3927 of file TUnixSystem.cxx.

◆ UnixHomedirectory() [2/2]

const char * TUnixSystem::UnixHomedirectory ( const char * user = nullptr)
staticprotectedinherited

Returns the user's home directory.

Definition at line 3918 of file TUnixSystem.cxx.

◆ UnixIgnoreSignal()

void TUnixSystem::UnixIgnoreSignal ( ESignals sig,
Bool_t ignore )
staticprotectedinherited

If ignore is true ignore the specified signal, else restore previous behaviour.

Definition at line 3725 of file TUnixSystem.cxx.

◆ UnixMakedir()

int TUnixSystem::UnixMakedir ( const char * dir)
staticprotectedinherited

Make a Unix file system directory.

Returns 0 in case of success and -1 if the directory could not be created (either already exists or illegal path name).

Definition at line 3959 of file TUnixSystem.cxx.

◆ UnixNow()

Long64_t TUnixSystem::UnixNow ( )
staticprotectedinherited

Get current time in milliseconds since 0:00 Jan 1 1995.

Definition at line 3830 of file TUnixSystem.cxx.

◆ UnixOpendir()

void * TUnixSystem::UnixOpendir ( const char * name)
staticprotectedinherited

Open a directory.

Definition at line 3967 of file TUnixSystem.cxx.

◆ UnixPathName()

const char * TSystem::UnixPathName ( const char * name)
virtualinherited

Convert from a local pathname to a Unix pathname.

E.g. from \user\root to /user/root.

Reimplemented in TWinNTSystem.

Definition at line 1077 of file TSystem.cxx.

◆ UnixRecv()

int TUnixSystem::UnixRecv ( int sock,
void * buffer,
int length,
int flag )
staticprotectedinherited

Receive exactly length bytes into buffer.

Returns number of bytes received. Returns -1 in case of error, -2 in case of MSG_OOB and errno == EWOULDBLOCK, -3 in case of MSG_OOB and errno == EINVAL and -4 in case of kNoBlock and errno == EWOULDBLOCK. Returns -5 if pipe broken or reset by peer (EPIPE || ECONNRESET).

Definition at line 4495 of file TUnixSystem.cxx.

◆ UnixResetSignal()

void TUnixSystem::UnixResetSignal ( ESignals sig)
staticprotectedinherited

Restore old signal handler for specified signal.

Definition at line 3804 of file TUnixSystem.cxx.

◆ UnixResetSignals()

void TUnixSystem::UnixResetSignals ( )
staticprotectedinherited

Restore old signal handlers.

Definition at line 3819 of file TUnixSystem.cxx.

◆ UnixSelect()

int TUnixSystem::UnixSelect ( Int_t nfds,
TFdSet * readready,
TFdSet * writeready,
Long_t timeout )
staticprotectedinherited

Wait for events on the file descriptors specified in the readready and writeready masks or for timeout (in milliseconds) to occur.

Returns the number of ready descriptors, or 0 in case of timeout, or < 0 in case of an error, with -2 being EINTR and -3 EBADF. In case of EINTR the errno has been reset and the method can be called again.

Definition at line 3884 of file TUnixSystem.cxx.

◆ UnixSend()

int TUnixSystem::UnixSend ( int sock,
const void * buffer,
int length,
int flag )
staticprotectedinherited

Send exactly length bytes from buffer.

Returns -1 in case of error, otherwise number of sent bytes. Returns -4 in case of kNoBlock and errno == EWOULDBLOCK. Returns -5 if pipe broken or reset by peer (EPIPE || ECONNRESET).

Definition at line 4545 of file TUnixSystem.cxx.

◆ UnixSetitimer()

int TUnixSystem::UnixSetitimer ( Long_t ms)
staticprotectedinherited

Set interval timer to time-out in ms milliseconds.

Definition at line 3858 of file TUnixSystem.cxx.

◆ UnixSigAlarmInterruptsSyscalls()

void TUnixSystem::UnixSigAlarmInterruptsSyscalls ( Bool_t set)
staticprotectedinherited

When the argument is true the SIGALRM signal handler is set so that interrupted syscalls will not be restarted by the kernel.

This is typically used in case one wants to put a timeout on an I/O operation. By default interrupted syscalls will always be restarted (for all signals). This can be controlled for each a-synchronous TTimer via the method TTimer::SetInterruptSyscalls().

Definition at line 3760 of file TUnixSystem.cxx.

◆ UnixSignal()

void TUnixSystem::UnixSignal ( ESignals sig,
SigHandler_t h )
staticprotectedinherited

Set a signal handler for a signal.

Definition at line 3686 of file TUnixSystem.cxx.

◆ UnixSigname()

const char * TUnixSystem::UnixSigname ( ESignals sig)
staticprotectedinherited

Return the signal name associated with a signal.

Definition at line 3796 of file TUnixSystem.cxx.

◆ UnixTcpConnect()

int TUnixSystem::UnixTcpConnect ( const char * hostname,
int port,
int tcpwindowsize )
staticprotectedinherited

Open a TCP/IP connection to server and connect to a service (i.e.

port). Use tcpwindowsize to specify the size of the receive buffer, it has to be specified here to make sure the window scale option is set (for tcpwindowsize > 65KB and for platforms supporting window scaling). Is called via the TSocket constructor. Returns -1 in case of error.

Definition at line 4128 of file TUnixSystem.cxx.

◆ UnixTcpService()

int TUnixSystem::UnixTcpService ( int port,
Bool_t reuse,
int backlog,
int tcpwindowsize,
ESocketBindOption socketBindOption )
staticprotectedinherited

Open a socket, bind to it and start listening for TCP/IP connections on the port.

If reuse is true reuse the address, backlog specifies how many sockets can be waiting to be accepted. If port is 0 a port scan will be done to find a free port. This option is mutual exlusive with the reuse option. Use tcpwindowsize to specify the size of the receive buffer, it has to be specified here to make sure the window scale option is set (for tcpwindowsize > 65KB and for platforms supporting window scaling). The socketBindOption parameter allows to specify how the socket will be bound. See the documentation of ESocketBindOption for the details. Returns socket fd or -1 if socket() failed, -2 if bind() failed or -3 if listen() failed.

Definition at line 4282 of file TUnixSystem.cxx.

◆ UnixUdpConnect()

int TUnixSystem::UnixUdpConnect ( const char * hostname,
int port )
staticprotectedinherited

Creates a UDP socket connection Is called via the TSocket constructor.

Returns -1 in case of error.

Definition at line 4180 of file TUnixSystem.cxx.

◆ UnixUdpService()

int TUnixSystem::UnixUdpService ( int port,
int backlog,
ESocketBindOption socketBindOption )
staticprotectedinherited

Open a socket, bind to it and start listening for UDP connections on the port.

If reuse is true reuse the address, backlog specifies how many sockets can be waiting to be accepted. If port is 0 a port scan will be done to find a free port. This option is mutual exlusive with the reuse option. The socketBindOption parameter allows to specify how the socket will be bound. See the documentation of ESocketBindOption for the details.

Definition at line 4360 of file TUnixSystem.cxx.

◆ UnixUnixConnect() [1/2]

int TUnixSystem::UnixUnixConnect ( const char * path)
staticprotectedinherited

Connect to a Unix domain socket. Returns -1 in case of error.

Definition at line 4232 of file TUnixSystem.cxx.

◆ UnixUnixConnect() [2/2]

int TUnixSystem::UnixUnixConnect ( int port)
staticprotectedinherited

Connect to a Unix domain socket.

Definition at line 4224 of file TUnixSystem.cxx.

◆ UnixUnixService() [1/2]

int TUnixSystem::UnixUnixService ( const char * sockpath,
int backlog )
staticprotectedinherited

Open a socket on path 'sockpath', bind to it and start listening for Unix domain connections to it.

Returns socket fd or -1.

Definition at line 4445 of file TUnixSystem.cxx.

◆ UnixUnixService() [2/2]

int TUnixSystem::UnixUnixService ( int port,
int backlog )
staticprotectedinherited

Open a socket, bind to it and start listening for Unix domain connections to it.

Returns socket fd or -1.

Definition at line 4419 of file TUnixSystem.cxx.

◆ UnixWaitchild()

int TUnixSystem::UnixWaitchild ( )
staticprotectedinherited

Wait till child is finished.

Definition at line 4113 of file TUnixSystem.cxx.

◆ Unlink()

int TUnixSystem::Unlink ( const char * name)
overridevirtualinherited

Unlink, i.e.

remove, a file or directory. Returns 0 when successful, -1 in case of failure.

Reimplemented from TSystem.

Definition at line 1681 of file TUnixSystem.cxx.

◆ Unload()

void TUnixSystem::Unload ( const char * module)
overridevirtualinherited

Unload a shared library.

Reimplemented from TSystem.

Definition at line 2815 of file TUnixSystem.cxx.

◆ Unsetenv()

void TUnixSystem::Unsetenv ( const char * name)
overridevirtualinherited

Unset environment variable.

Reimplemented from TSystem.

Definition at line 2121 of file TUnixSystem.cxx.

◆ UseCurrentStyle()

void TObject::UseCurrentStyle ( )
virtualinherited

Set current style settings in this object This function is called when either TCanvas::UseCurrentStyle or TROOT::ForceStyle have been invoked.

Reimplemented in TAxis3D, TCanvas, TFrame, TGraph, TH1, TPad, TPaveStats, TPaveText, and TTree.

Definition at line 909 of file TObject.cxx.

◆ Utime()

int TUnixSystem::Utime ( const char * file,
Long_t modtime,
Long_t actime )
overridevirtualinherited

Set a files modification and access times.

If actime = 0 it will be set to the modtime. Returns 0 on success and -1 in case of error.

Reimplemented from TSystem.

Definition at line 1883 of file TUnixSystem.cxx.

◆ WaitEvents()

void TMacOSXSystem::WaitEvents ( Long_t nextto)
private

Definition at line 481 of file TMacOSXSystem.mm.

◆ Warning()

void TObject::Warning ( const char * location,
const char * fmt,
... ) const
virtualinherited

Issue warning message.

Use "location" to specify the method where the warning occurred. Accepts standard printf formatting arguments.

Definition at line 1084 of file TObject.cxx.

◆ Which()

char * TSystem::Which ( const char * search,
const char * wfil,
EAccessMode mode = kFileExists )
virtualinherited

Find location of file in a search path.

User must delete returned string. Returns 0 in case file is not found.

Definition at line 1563 of file TSystem.cxx.

◆ WorkingDirectory()

const char * TUnixSystem::WorkingDirectory ( )
overridevirtualinherited

Return working directory.

Reimplemented from TSystem.

Definition at line 1420 of file TUnixSystem.cxx.

◆ Write() [1/2]

Int_t TObject::Write ( const char * name = nullptr,
Int_t option = 0,
Int_t bufsize = 0 )
virtualinherited

Write this object to the current directory.

For more see the const version of this method.

Reimplemented in ROOT::TBufferMergerFile, TBuffer, TCollection, TDirectory, TDirectoryFile, TFile, TMap, TParallelMergingFile, TSQLFile, TTree, and TXMLFile.

Definition at line 989 of file TObject.cxx.

◆ Write() [2/2]

Int_t TObject::Write ( const char * name = nullptr,
Int_t option = 0,
Int_t bufsize = 0 ) const
virtualinherited

Write this object to the current directory.

The data structure corresponding to this object is serialized. The corresponding buffer is written to the current directory with an associated key with name "name".

Writing an object to a file involves the following steps:

  • Creation of a support TKey object in the current directory. The TKey object creates a TBuffer object.
  • The TBuffer object is filled via the class::Streamer function.
  • If the file is compressed (default) a second buffer is created to hold the compressed buffer.
  • Reservation of the corresponding space in the file by looking in the TFree list of free blocks of the file.
  • The buffer is written to the file.

Bufsize can be given to force a given buffer size to write this object. By default, the buffersize will be taken from the average buffer size of all objects written to the current file so far.

If a name is specified, it will be the name of the key. If name is not given, the name of the key will be the name as returned by GetName().

The option can be a combination of: kSingleKey, kOverwrite or kWriteDelete Using the kOverwrite option a previous key with the same name is overwritten. The previous key is deleted before writing the new object. Using the kWriteDelete option a previous key with the same name is deleted only after the new object has been written. This option is safer than kOverwrite but it is slower. NOTE: Neither kOverwrite nor kWriteDelete reduces the size of a TFile– the space is simply freed up to be overwritten; in the case of a TTree, it is more complicated. If one opens a TTree, appends some entries, then writes it out, the behaviour is effectively the same. If, however, one creates a new TTree and writes it out in this way, only the metadata is replaced, effectively making the old data invisible without deleting it. TTree::Delete() can be used to mark all disk space occupied by a TTree as free before overwriting its metadata this way. The kSingleKey option is only used by TCollection::Write() to write a container with a single key instead of each object in the container with its own key.

An object is read from the file into memory via TKey::Read() or via TObject::Read().

The function returns the total number of bytes written to the file. It returns 0 if the object cannot be written.

Reimplemented in TBuffer, TCollection, TDirectory, TDirectoryFile, TFile, TMap, TParallelMergingFile, TSQLFile, TTree, and TXMLFile.

Definition at line 964 of file TObject.cxx.

◆ TGCocoa

friend class TGCocoa
friend

Definition at line 40 of file TMacOSXSystem.h.

Member Data Documentation

◆ fAclicMode

EAclicMode TSystem::fAclicMode {kDefault}
protectedinherited

Definition at line 335 of file TSystem.h.

◆ fAclicProperties

Int_t TSystem::fAclicProperties {0}
protectedinherited

Definition at line 339 of file TSystem.h.

◆ fBeepDuration

Int_t TSystem::fBeepDuration {0}
protectedinherited

Definition at line 308 of file TSystem.h.

◆ fBeepFreq

Int_t TSystem::fBeepFreq {0}
protectedinherited

Definition at line 307 of file TSystem.h.

◆ fBits

UInt_t TObject::fBits
privateinherited

bit field status word

Definition at line 47 of file TObject.h.

◆ fBuildArch

TString TSystem::fBuildArch
protectedinherited

Definition at line 322 of file TSystem.h.

◆ fBuildCompiler

TString TSystem::fBuildCompiler
protectedinherited

Definition at line 323 of file TSystem.h.

◆ fBuildCompilerVersion

TString TSystem::fBuildCompilerVersion
protectedinherited

Definition at line 324 of file TSystem.h.

◆ fBuildCompilerVersionStr

TString TSystem::fBuildCompilerVersionStr
protectedinherited

Definition at line 325 of file TSystem.h.

◆ fBuildDir

TString TSystem::fBuildDir
protectedinherited

Definition at line 327 of file TSystem.h.

◆ fBuildNode

TString TSystem::fBuildNode
protectedinherited

Definition at line 326 of file TSystem.h.

◆ fCocoaInitialized

bool TMacOSXSystem::fCocoaInitialized
private

!

Definition at line 60 of file TMacOSXSystem.h.

◆ fCompiled

TSeqCollection* TSystem::fCompiled {nullptr}
protectedinherited

Definition at line 340 of file TSystem.h.

◆ fDone

Bool_t TSystem::fDone {kFALSE}
protectedinherited

Definition at line 311 of file TSystem.h.

◆ fFileHandler

TSeqCollection* TSystem::fFileHandler {nullptr}
protectedinherited

Definition at line 316 of file TSystem.h.

◆ fFirstDispatch

bool TMacOSXSystem::fFirstDispatch
private

!

Definition at line 61 of file TMacOSXSystem.h.

◆ fFlagsDebug

TString TSystem::fFlagsDebug
protectedinherited

Definition at line 328 of file TSystem.h.

◆ fFlagsOpt

TString TSystem::fFlagsOpt
protectedinherited

Definition at line 329 of file TSystem.h.

◆ fgDtorOnly

Longptr_t TObject::fgDtorOnly = 0
staticprivateinherited

object for which to call dtor only (i.e. no delete)

Definition at line 49 of file TObject.h.

◆ fgObjectStat

Bool_t TObject::fgObjectStat = kTRUE
staticprivateinherited

if true keep track of objects in TObjectTable

Definition at line 50 of file TObject.h.

◆ fHelpers

TSeqCollection* TSystem::fHelpers {nullptr}
protectedinherited

Definition at line 341 of file TSystem.h.

◆ fHostname

TString TSystem::fHostname
protectedinherited

Definition at line 305 of file TSystem.h.

◆ fIncludePath

TString TSystem::fIncludePath
protectedinherited

Definition at line 331 of file TSystem.h.

◆ fInControl

Bool_t TSystem::fInControl {kFALSE}
protectedinherited

Definition at line 310 of file TSystem.h.

◆ fInsideNotify

std::atomic<Bool_t> TSystem::fInsideNotify {kFALSE}
protectedinherited

Definition at line 306 of file TSystem.h.

◆ fLevel

Int_t TSystem::fLevel {0}
protectedinherited

Definition at line 312 of file TSystem.h.

◆ fLinkdefSuffix

TString TSystem::fLinkdefSuffix
protectedinherited

Definition at line 338 of file TSystem.h.

◆ fLinkedLibs

TString TSystem::fLinkedLibs
protectedinherited

Definition at line 332 of file TSystem.h.

◆ fListLibs

TString TSystem::fListLibs
protectedinherited

Definition at line 320 of file TSystem.h.

◆ fListPaths

TString TSystem::fListPaths
protectedinherited

Definition at line 330 of file TSystem.h.

◆ fMakeExe

TString TSystem::fMakeExe
protectedinherited

Definition at line 337 of file TSystem.h.

◆ fMakeSharedLib

TString TSystem::fMakeSharedLib
protectedinherited

Definition at line 336 of file TSystem.h.

◆ fMaxrfd

Int_t TSystem::fMaxrfd {-1}
protectedinherited

Definition at line 301 of file TSystem.h.

◆ fMaxwfd

Int_t TSystem::fMaxwfd {-1}
protectedinherited

Definition at line 302 of file TSystem.h.

◆ fName

TString TNamed::fName
protectedinherited

Definition at line 32 of file TNamed.h.

◆ fNfd

Int_t TSystem::fNfd {0}
protectedinherited

Definition at line 300 of file TSystem.h.

◆ fObjExt

TString TSystem::fObjExt
protectedinherited

Definition at line 334 of file TSystem.h.

◆ fOnExitList

TSeqCollection* TSystem::fOnExitList {nullptr}
protectedinherited

Definition at line 318 of file TSystem.h.

◆ fPimpl

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

!

Definition at line 59 of file TMacOSXSystem.h.

◆ fReadmask

TFdSet* TSystem::fReadmask {nullptr}
protectedinherited

!Files that should be checked for read events

Definition at line 295 of file TSystem.h.

◆ fReadready

TFdSet* TSystem::fReadready {nullptr}
protectedinherited

!Files with reads waiting

Definition at line 297 of file TSystem.h.

◆ fSigcnt

Int_t TSystem::fSigcnt {0}
protectedinherited

Definition at line 303 of file TSystem.h.

◆ fSignalHandler

TSeqCollection* TSystem::fSignalHandler {nullptr}
protectedinherited

Definition at line 315 of file TSystem.h.

◆ fSignals

TFdSet* TSystem::fSignals {nullptr}
protectedinherited

!Signals that were trapped

Definition at line 299 of file TSystem.h.

◆ fSoExt

TString TSystem::fSoExt
protectedinherited

Definition at line 333 of file TSystem.h.

◆ fStdExceptionHandler

TSeqCollection* TSystem::fStdExceptionHandler {nullptr}
protectedinherited

Definition at line 317 of file TSystem.h.

◆ fTimers

TList* TSystem::fTimers {nullptr}
protectedinherited

Definition at line 314 of file TSystem.h.

◆ fTitle

TString TNamed::fTitle
protectedinherited

Definition at line 33 of file TNamed.h.

◆ fUniqueID

UInt_t TObject::fUniqueID
privateinherited

object unique identifier

Definition at line 46 of file TObject.h.

◆ fWdpath

TString TSystem::fWdpath
protectedinherited

Definition at line 304 of file TSystem.h.

◆ fWritemask

TFdSet* TSystem::fWritemask {nullptr}
protectedinherited

!Files that should be checked for write events

Definition at line 296 of file TSystem.h.

◆ fWriteready

TFdSet* TSystem::fWriteready {nullptr}
protectedinherited

!Files with writes waiting

Definition at line 298 of file TSystem.h.


The documentation for this class was generated from the following files: