Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 7167 in orxonox.OLD for trunk/src/util/loading/factory.h


Ignore:
Timestamp:
Feb 19, 2006, 3:18:08 PM (18 years ago)
Author:
bensch
Message:

trunk: dynamic library loading test

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/util/loading/factory.h

    r6341 r7167  
    3838    tFactory<CLASS_NAME>* global_##CLASS_NAME##_Factory = new tFactory<CLASS_NAME>(#CLASS_NAME, CLASS_ID)
    3939
     40// #define CREATE_DYNAMIC_FACTORY(CLASS_NAME, CLASS_ID) \
     41//     tFactory<CLASS_NAME>* global_##CLASS_NAME##_Dynamic_Factory = new DynamicLoader<CLASS_NAME>(#CLASS_NAME, CLASS_ID)
     42
    4043//! The Factory is a loadable object handler
    4144class Factory : public BaseObject {
    4245
    4346 public:
    44   Factory (const char* factoryName, ClassID classID);
    4547  virtual ~Factory ();
    4648
     
    5658
    5759  protected:
     60    Factory (const char* factoryName, ClassID classID);
    5861    virtual BaseObject* fabricateObject(const TiXmlElement* root = NULL) const = 0;
    5962
Note: See TracChangeset for help on using the changeset viewer.