Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

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

Last change on this file since 7188 was 7188, checked in by bensch, 18 years ago

compiles on windows

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