|
mbsimcontrol
3.2.0
|
00001 #ifndef _MBSIMCONTROL_OBJECTFACTORY_H_ 00002 #define _MBSIMCONTROL_OBJECTFACTORY_H_ 00003 00004 #include "mbsim/objectfactory.h" 00005 #include "mbxmlutilstinyxml/tinyxml.h" 00006 00007 #define MBSIMCONTROLNS_ "http://mbsim.berlios.de/MBSimControl" 00008 #define MBSIMCONTROLNS "{"MBSIMCONTROLNS_"}" 00009 00010 namespace MBSim { 00011 class ExtraDynamic; 00012 class Link; 00013 } 00014 00015 namespace MBSimControl { 00016 00017 class ObjectFactory : protected MBSim::ObjectFactoryBase { 00018 private: 00019 static ObjectFactory *instance; 00020 ObjectFactory() {} 00021 public: 00022 // This static function must be called before the ObjectFactory is used to create 00023 // objects from MBSimObjectFactory 00024 static void initialize(); 00025 protected: 00026 MBSim::ExtraDynamic * createExtraDynamic(MBXMLUtils::TiXmlElement *element); 00027 MBSim::Link* createLink(MBXMLUtils::TiXmlElement *element); 00028 MBSim::ObjectFactoryBase::MM_PRINSPRE& getPriorityNamespacePrefix(); 00029 }; 00030 00031 } 00032 00033 #endif
1.8.0