mbsimcontrol  3.0.0
objectfactory.h
1 #ifndef _MBSIMCONTROL_OBJECTFACTORY_H_
2 #define _MBSIMCONTROL_OBJECTFACTORY_H_
3 
4 #include "mbsim/objectfactory.h"
5 #include "mbsimtinyxml/tinyxml-src/tinyxml.h"
6 
7 #define MBSIMCONTROLNS "{http://mbsim.berlios.de/MBSimControl}"
8 
9 namespace MBSim {
10  class ExtraDynamic;
11  class Link;
12 }
13 
14 namespace MBSimControl {
15 
16  class ObjectFactory : protected MBSim::ObjectFactoryBase {
17  private:
18  static ObjectFactory *instance;
19  ObjectFactory() {}
20  public:
21  // This static function must be called before the ObjectFactory is used to create
22  // objects from MBSimObjectFactory
23  static void initialize();
24  protected:
25  MBSim::ExtraDynamic * createExtraDynamic(TiXmlElement *element);
26  MBSim::Link* createLink(TiXmlElement *element);
27  };
28 
29 }
30 
31 #endif