Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: orxonox.OLD/branches/shared_lib/src/util/loading/dynamic_loader.h @ 7174

Last change on this file since 7174 was 7174, checked in by bensch, 19 years ago

orxonox/dylib: now the dylibLoader should work

File size: 810 bytes
Line 
1/*!
2 * @file dynamic_loader.h
3 * @brief Definition of The Dynamic Loader Factory.
4*/
5
6#ifndef _DYNAMIC_LOADER_H
7#define _DYNAMIC_LOADER_H
8
9#include "factory.h"
10#include <ltdl.h>
11
12#include <string>
13
14// FORWARD DECLARATION
15
16//! A class for ...
17class DynamicLoader : public BaseObject
18{
19
20public:
21  DynamicLoader(const std::string& libName);
22  virtual ~DynamicLoader();
23
24  bool loadDynamicLib(const std::string& libName);
25
26  static bool loadDyLib(const char* libName);
27
28  static void addSearchDir(const char* searchDir);
29  static bool addSearchDirRelative(const char* relSearchDir);
30  static const char* getSearchDir();
31
32  static void unload();
33private:
34  // will be done automatically when using the this Engine.
35  static bool initialize();
36
37private:
38  lt_dlhandle      handle;
39};
40
41#endif /* _DYNAMIC_LOADER_H */
Note: See TracBrowser for help on using the repository browser.