| The Gaudi Framework v32r1 (f65d50dc)

ModuleInfo.h
Go to the documentation of this file.
1 //====================================================================
2 // ModuleInfo.h
3 //--------------------------------------------------------------------
4 //
5 // Package : System (The LHCb System service)
6 //
7 // Description: Definition of Systems internals
8 //
9 // Author : M.Frank
10 // Created : 13/1/99
11 // Changes :
12 //====================================================================
13 #ifndef GAUDIKERNEL_MODULEINFO_H
14 #define GAUDIKERNEL_MODULEINFO_H
15
16 // Framework include files
17 #include "GaudiKernel/Kernel.h"
18 // STL include files
19 #include <string>
20 #include <vector>
21
27 namespace System {
28 enum ModuleType { UNKNOWN, SHAREDLIB, EXECUTABLE };
30 typedef void* ImageHandle;
32 typedef void* ProcessHandle;
34 GAUDI_API const std::string& moduleName();
36 GAUDI_API const std::string& moduleNameFull();
38 GAUDI_API ModuleType moduleType();
40 GAUDI_API ProcessHandle processHandle();
42 GAUDI_API ImageHandle moduleHandle();
44 GAUDI_API ImageHandle exeHandle();
46 GAUDI_API const std::string& exeName();
48 GAUDI_API const std::vector<std::string> linkedModules();
50 GAUDI_API void setModuleHandle( ImageHandle handle );
51 } // namespace System
52 #endif // GAUDIKERNEL_MODULEINFO_H
System::moduleType
GAUDI_API ModuleType moduleType()
Get type of the module.
Definition: ModuleInfo.cpp:103
Kernel.h
System::SHAREDLIB
Definition: ModuleInfo.h:28
System::setModuleHandle
GAUDI_API void setModuleHandle(ImageHandle handle)
Attach module handle.
Definition: ModuleInfo.cpp:135
System::moduleNameFull
GAUDI_API const std::string & moduleNameFull()
Get the full name of the (executable/DLL) file.
Definition: ModuleInfo.cpp:77
System
Note: OS specific details for environment resolution.
Definition: Debugger.h:19
System::processHandle
GAUDI_API ProcessHandle processHandle()
Handle to running process.
Definition: ModuleInfo.cpp:125
System::ImageHandle
void * ImageHandle
Definition of an image handle.
Definition: ModuleInfo.h:30
System::UNKNOWN
Definition: ModuleInfo.h:28
std::string
STL class.
System::exeName
GAUDI_API const std::string & exeName()
Name of the executable file running.
Definition: ModuleInfo.cpp:193
System::ModuleType
ModuleType
Definition: ModuleInfo.h:28
System::moduleHandle
GAUDI_API ImageHandle moduleHandle()
Handle to currently executed module.
Definition: ModuleInfo.cpp:137
System::EXECUTABLE
Definition: ModuleInfo.h:28
System::exeHandle
GAUDI_API ImageHandle exeHandle()
Handle to the executable file running.
Definition: ModuleInfo.cpp:158
System::linkedModules
GAUDI_API const std::vector< std::string > linkedModules()
Vector of names of linked modules.
Definition: ModuleInfo.cpp:215
std::vector< std::string >
System::moduleName
GAUDI_API const std::string & moduleName()
Get the name of the (executable/DLL) file without file-type.
Definition: ModuleInfo.cpp:54
GAUDI_API
#define GAUDI_API
Definition: Kernel.h:71
System::ProcessHandle
void * ProcessHandle
Definition of the process handle.
Definition: ModuleInfo.h:32