Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Apr 2, 2006, 4:51:19 PM (19 years ago)
Author:
bensch
Message:

shared_lib: compile again

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/shared_lib/src/lib/util/loading/dynamic_loader.h

    r7193 r7264  
    88
    99#include "util/loading/factory.h"
     10#include <ltdl.h>
    1011
    1112#include <string>
    12 
    13 #define DYNAMIC_LINKAGE_FACTORY(CLASS_NAME, CLASS_ID) \
    14           void* DynamicCreator(const TiXmlElement* root) { return new CLASS_NAME(root); };
    1513
    1614// FORWARD DECLARATION
    1715
    1816//! A class for ...
    19 class DynamicLoader : public Factory
     17class DynamicLoader : public BaseObject
    2018{
    2119
     
    2523
    2624  bool loadDynamicLib(const std::string& libName);
    27   virtual BaseObject* fabricateObject(const TiXmlElement* root = NULL) const;
    2825
    2926  static bool loadDyLib(const std::string& libName);
    3027
     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();
     34private:
     35  // will be done automatically when using the this Engine.
     36  static bool initialize();
    3137
    3238private:
    33   void*      handle;
     39  lt_dlhandle      handle;
    3440};
    3541
Note: See TracChangeset for help on using the changeset viewer.