The Gaudi Framework
v41r0 (bdbe7744)
Toggle main menu visibility
Loading...
Searching...
No Matches
ModuleInfo.h
Go to the documentation of this file.
1
/***********************************************************************************\
2
* (c) Copyright 1998-2025 CERN for the benefit of the LHCb and ATLAS collaborations *
3
* *
4
* This software is distributed under the terms of the Apache version 2 licence, *
5
* copied verbatim in the file "LICENSE". *
6
* *
7
* In applying this licence, CERN does not waive the privileges and immunities *
8
* granted to it by virtue of its status as an Intergovernmental Organization *
9
* or submit itself to any jurisdiction. *
10
\***********************************************************************************/
11
#pragma once
12
13
#include <
GaudiKernel/Kernel.h
>
14
#include <string>
15
#include <vector>
16
22
namespace
System
{
23
enum
ModuleType
{
UNKNOWN
,
SHAREDLIB
,
EXECUTABLE
};
25
typedef
void
*
ImageHandle
;
27
typedef
void
*
ProcessHandle
;
29
GAUDI_API
const
std::string&
moduleName
();
31
GAUDI_API
const
std::string&
moduleNameFull
();
33
GAUDI_API
ModuleType
moduleType
();
35
GAUDI_API
ProcessHandle
processHandle
();
37
GAUDI_API
ImageHandle
moduleHandle
();
39
GAUDI_API
ImageHandle
exeHandle
();
41
GAUDI_API
const
std::string&
exeName
();
43
GAUDI_API
const
std::vector<std::string>
linkedModules
();
45
GAUDI_API
void
setModuleHandle
(
ImageHandle
handle );
46
}
// namespace System
Kernel.h
GAUDI_API
#define GAUDI_API
Definition
Kernel.h:49
System
Note: OS specific details for environment resolution.
Definition
Environment.h:25
System::ModuleType
ModuleType
Definition
ModuleInfo.h:23
System::EXECUTABLE
@ EXECUTABLE
Definition
ModuleInfo.h:23
System::SHAREDLIB
@ SHAREDLIB
Definition
ModuleInfo.h:23
System::UNKNOWN
@ UNKNOWN
Definition
ModuleInfo.h:23
System::processHandle
GAUDI_API ProcessHandle processHandle()
Handle to running process.
Definition
ModuleInfo.cpp:80
System::ImageHandle
void * ImageHandle
Definition of an image handle.
Definition
ModuleInfo.h:25
System::exeHandle
GAUDI_API ImageHandle exeHandle()
Handle to the executable file running.
Definition
ModuleInfo.cpp:102
System::moduleType
GAUDI_API ModuleType moduleType()
Get type of the module.
Definition
ModuleInfo.cpp:62
System::moduleHandle
GAUDI_API ImageHandle moduleHandle()
Handle to currently executed module.
Definition
ModuleInfo.cpp:88
System::moduleNameFull
GAUDI_API const std::string & moduleNameFull()
Get the full name of the (executable/DLL) file.
Definition
ModuleInfo.cpp:44
System::ProcessHandle
void * ProcessHandle
Definition of the process handle.
Definition
ModuleInfo.h:27
System::moduleName
GAUDI_API const std::string & moduleName()
Get the name of the (executable/DLL) file without file-type.
Definition
ModuleInfo.cpp:28
System::linkedModules
GAUDI_API const std::vector< std::string > linkedModules()
Vector of names of linked modules.
Definition
ModuleInfo.cpp:145
System::setModuleHandle
GAUDI_API void setModuleHandle(ImageHandle handle)
Attach module handle.
Definition
ModuleInfo.cpp:86
System::exeName
GAUDI_API const std::string & exeName()
Name of the executable file running.
Definition
ModuleInfo.cpp:128
GaudiKernel
include
GaudiKernel
ModuleInfo.h
Generated on
for The Gaudi Framework by
1.17.0