ADTF  3.18.2
dynamic_linkage.h
Go to the documentation of this file.
1 
7 #ifndef _DYNAMIC_LINKAGE_CLASS_HEADER_
8 #define _DYNAMIC_LINKAGE_CLASS_HEADER_
9 
10 namespace A_UTILS_NS
11 {
12 
18 class DOEXPORT cDynamicLinkage
19 {
20  private:
21  static tResult err;
22 
23  public:
34  static tHandle Load(const tChar* strFilename, tUInt32 nFlags=0);
35 
42  static tVoid Unload(tHandle hLibrary);
43 
52  static tVoid* GetSymbol(tHandle hLibrary, const tChar* strSymbol);
53 
77  static cFilename GetLibraryFilename(const tHandle hModule);
78 
84  static tResult GetError();
85 
86  private:
90  static tVoid ClearError();
91 };//class cDynamicLinkage
92 
93 } // namespace A_UTILS_NS
94 
95 #endif // _SYSTEM_CLASS_HEADER_
char tChar
The tChar defines the type for platform character set (platform and compiler dependent type).
void tVoid
The tVoid is always the definition for the void (non-type).
tVoid * tHandle
type definition for a handle value (platform and compiler dependent type).
uint32_t tUInt32
type definition for unsigned integer values (32bit) (platform and compiler independent type).
System or platform specific functions for loading shared libraries.
static tResult err
Current error code - may be retrieved using GetError()
static tResult GetError()
Returns the error code if something has gone wrong.
static cFilename GetLibraryFilename(const tHandle hModule)
Returns the filename of a given library using the libraries handle.
static tVoid ClearError()
Set the last error code to ERR_NOERROR.
static tVoid Unload(tHandle hLibrary)
Unloads a loaded shared library.
static tVoid * GetSymbol(tHandle hLibrary, const tChar *strSymbol)
Returns a pointer to a function in a shared library.
static tHandle Load(const tChar *strFilename, tUInt32 nFlags=0)
Loads a shared library.
File name class.
Definition: filename.h:59
ADTF A_UTIL Namespace - Within adtf this is used as adtf::util or adtf_util.
Definition: d_ptr.h:11