1 #ifndef GAUDIKERNEL_SYSTEM_H 
    2 #define GAUDIKERNEL_SYSTEM_H 
    5 #include "GaudiKernel/Kernel.h" 
   11 #include "GaudiKernel/Timing.h" 
   12 #include "GaudiKernel/ModuleInfo.h" 
   17 # include <execinfo.h> 
   35   typedef unsigned long (*
EntryPoint)(
const unsigned long iid, 
void** ppvObject);
 
   37   typedef void* (*Creator)();
 
   90   inline bool getEnv(
const std::string &var, std::string &
value) {
 
  100   GAUDI_API int setEnv(
const std::string &
name, 
const std::string &value, 
int overwrite = 1);
 
  107   inline ThreadHandle 
threadSelf() { 
return pthread_self(); }
 
  112   inline ThreadHandle 
threadSelf() { 
return (
void*)0; }
 
  119   template <
typename DESTPTR, 
typename SRCPTR>
 
  132   inline DESTPTR FuncPtrCast(SRCPTR ptr) {
 
  142 #endif    // SYSTEM_SYSTEM_H 
GAUDI_API const std::string & osName()
OS name. 
 
GAUDI_API unsigned long getProcedureByName(ImageHandle handle, const std::string &name, EntryPoint *pFunction)
Get a specific function defined in the DLL. 
 
GAUDI_API bool getStackLevel(void *addresses, void *&addr, std::string &fnc, std::string &lib)
 
GAUDI_API const std::string typeinfoName(const std::type_info &)
Get platform independent information about the class type. 
 
Note: OS specific details for environment resolution. 
 
GAUDI_API unsigned long getLastError()
Get last system known error. 
 
void * ImageHandle
Definition of an image handle. 
 
GAUDI_API long argc()
Number of arguments passed to the commandline (==numCmdLineArgs()); just to match argv call...
 
GAUDI_API int backTrace(void **addresses, const int depth)
 
GAUDI_API int setEnv(const std::string &name, const std::string &value, int overwrite=1)
Set an environment variables. 
 
GAUDI_API const std::string getErrorString(unsigned long error)
Retrieve error code as string for a given error. 
 
GAUDI_API bool isEnvSet(const char *var)
Check if an environment variable is set or not. 
 
GAUDI_API std::string getEnv(const char *var)
get a particular environment variable (returning "UNKNOWN" if not set) 
 
GAUDI_API int instructionsetLevel()
Instruction Set "Level". 
 
GAUDI_API const std::string & machineType()
Machine type. 
 
void * ThreadHandle
A Thread handle. 
 
ThreadHandle threadSelf()
thread handle "accessor" 
 
void *(* Creator)()
Definition of the "generic" DLL entry point function. 
 
GAUDI_API long numCmdLineArgs()
Number of arguments passed to the commandline. 
 
GAUDI_API const std::string & hostName()
Host name. 
 
GAUDI_API char ** argv()
char** command line arguments including executable name as arg[0]; You may not modify them! ...
 
GAUDI_API const std::string getLastErrorString()
Get last system error as string. 
 
GAUDI_API const std::string & accountName()
User login name. 
 
GAUDI_API unsigned long loadDynamicLib(const std::string &name, ImageHandle *handle)
Load dynamic link library. 
 
GAUDI_API unsigned long unloadDynamicLib(ImageHandle handle)
unload dynamic link library 
 
unsigned long(* EntryPoint)(const unsigned long iid, void **ppvObject)
Definition of the "generic" DLL entry point function. 
 
GAUDI_API const std::vector< std::string > cmdLineArgs()
Command line arguments including executable name as arg[0] as vector of strings. 
 
void * ProcessHandle
Definition of the process handle. 
 
GAUDI_API const std::string & osVersion()
OS version.