Codemesh Runtime v3 C++ API Reference  3.9.205
xmog_sharedlib.h
1 //
2 // Copyright (c) 1999-2020 by Codemesh, Inc.. ALL RIGHTS RESERVED.
3 //
4 
5 
6 #ifndef xmog_sharedlib_inc
7 #define xmog_sharedlib_inc
8 
9 
10 #include "xmog.h"
11 
12 
18 class XMOG_DECLSPEC xmog_sharedlib
19 {
20 public:
21 
28  static xmog_sharedlib * resolve( const char * file );
29 
34  static xmog_sharedlib * getRuntimeLib();
35 
39  static xmog_sharedlib * getCallingProcess();
40 
44  void * get_handle() const;
45 
49  int open( const char * path, int flags, void * handle );
50 
55 
59  ~xmog_sharedlib();
60 
66  void * resolveSymbol( const char * symbol );
67 
75  void * symbol( const char * symbol, int _ignored );
76 
77 private:
78 
79  xmog_sharedlib( const char * file, void * handle );
80 
81  char * file_;
82 
83  void * handle_;
84 };
85 
86 
87 #endif /* xmog_sharedlib_inc */
xmog_sharedlib
A wrapper around shared libraries.
Definition: xmog_sharedlib.h:18

Copyright (c) 1999-2020 by Codemesh, Inc., ALL RIGHTS RESERVED.