Changeset 7264 in orxonox.OLD for branches/shared_lib/src/lib/util/loading/dynamic_loader.h
- Timestamp:
- Apr 2, 2006, 4:51:19 PM (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/shared_lib/src/lib/util/loading/dynamic_loader.h
r7193 r7264 8 8 9 9 #include "util/loading/factory.h" 10 #include <ltdl.h> 10 11 11 12 #include <string> 12 13 #define DYNAMIC_LINKAGE_FACTORY(CLASS_NAME, CLASS_ID) \14 void* DynamicCreator(const TiXmlElement* root) { return new CLASS_NAME(root); };15 13 16 14 // FORWARD DECLARATION 17 15 18 16 //! A class for ... 19 class DynamicLoader : public Factory17 class DynamicLoader : public BaseObject 20 18 { 21 19 … … 25 23 26 24 bool loadDynamicLib(const std::string& libName); 27 virtual BaseObject* fabricateObject(const TiXmlElement* root = NULL) const;28 25 29 26 static bool loadDyLib(const std::string& libName); 30 27 28 static void addSearchDir(const std::string& searchDir); 29 static bool addSearchDirRelative(const std::string& relSearchDir); 30 static bool addSearchDirInLibDir(const std::string& relSearchDir); 31 static const char* getSearchDir(); 32 33 static void unload(); 34 private: 35 // will be done automatically when using the this Engine. 36 static bool initialize(); 31 37 32 38 private: 33 void*handle;39 lt_dlhandle handle; 34 40 }; 35 41
Note: See TracChangeset
for help on using the changeset viewer.