The Gaudi Framework  master (82fdf313)
Loading...
Searching...
No Matches
System.h File Reference
#include <GaudiKernel/Kernel.h>
#include <GaudiKernel/ModuleInfo.h>
#include <GaudiKernel/Timing.h>
#include <string>
#include <typeinfo>
#include <vector>
Include dependency graph for System.h:

Go to the source code of this file.

Namespaces

namespace  System
 Note: OS specific details for environment resolution.
 

Typedefs

typedef unsigned long(* System::EntryPoint) (const unsigned long iid, void **ppvObject)
 Definition of the "generic" DLL entry point function.
 
typedef void *(* System::Creator) ()
 Definition of the "generic" DLL entry point function.
 
typedef void * System::ThreadHandle
 A Thread handle.
 

Functions

GAUDI_API unsigned long System::loadDynamicLib (const std::string &name, ImageHandle *handle)
 Load dynamic link library.
 
GAUDI_API unsigned long System::unloadDynamicLib (ImageHandle handle)
 unload dynamic link library
 
GAUDI_API unsigned long System::getProcedureByName (ImageHandle handle, const std::string &name, EntryPoint *pFunction)
 Get a specific function defined in the DLL.
 
GAUDI_API unsigned long System::getProcedureByName (ImageHandle handle, const std::string &name, Creator *pFunction)
 Get a specific function defined in the DLL.
 
GAUDI_API unsigned long System::getLastError ()
 Get last system known error.
 
GAUDI_API const std::string System::getLastErrorString ()
 Get last system error as string.
 
GAUDI_API const std::string System::getErrorString (unsigned long error)
 Retrieve error code as string for a given error.
 
GAUDI_API const std::string System::typeinfoName (const std::type_info &)
 Get platform independent information about the class type.
 
GAUDI_API const std::string System::typeinfoName (const char *)
 
GAUDI_API const std::string & System::hostName ()
 Host name.
 
GAUDI_API const std::string & System::osName ()
 OS name.
 
GAUDI_API const std::string & System::osVersion ()
 OS version.
 
GAUDI_API const std::string & System::machineType ()
 Machine type.
 
GAUDI_API int System::instructionsetLevel ()
 Instruction Set "Level".
 
GAUDI_API const std::string & System::accountName ()
 User login name.
 
GAUDI_API long System::numCmdLineArgs ()
 Number of arguments passed to the commandline.
 
GAUDI_API long System::argc ()
 Number of arguments passed to the commandline (==numCmdLineArgs()); just to match argv call...
 
GAUDI_API const std::vector< std::string > System::cmdLineArgs ()
 Command line arguments including executable name as arg[0] as vector of strings.
 
GAUDI_API char ** System::argv ()
 char** command line arguments including executable name as arg[0]; You may not modify them!
 
GAUDI_API std::string System::getEnv (const char *var)
 get a particular environment variable (returning "UNKNOWN" if not set)
 
GAUDI_API bool System::getEnv (const char *var, std::string &value)
 get a particular environment variable, storing the value in the passed string if the variable is set.
 
bool System::getEnv (const std::string &var, std::string &value)
 
GAUDI_API std::vector< std::string > System::getEnv ()
 get all environment variables
 
GAUDI_API int System::setEnv (const std::string &name, const std::string &value, int overwrite=1)
 Set an environment variables.
 
GAUDI_API bool System::isEnvSet (const char *var)
 Check if an environment variable is set or not.
 
ThreadHandle System::threadSelf ()
 thread handle "accessor"
 
GAUDI_API int System::backTrace (void **addresses, const int depth)
 
GAUDI_API bool System::backTrace (std::string &btrace, const int depth, const int offset=0)
 
GAUDI_API bool System::getStackLevel (void *addresses, void *&addr, std::string &fnc, std::string &lib)