Changeset 4217 in orxonox.OLD for orxonox/branches/movie_player/src/factory.h
- Timestamp:
- May 18, 2005, 11:27:40 AM (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
orxonox/branches/movie_player/src/factory.h
r4010 r4217 10 10 11 11 #include "xmlparser/tinyxml.h" 12 #include "debug.h" 12 13 13 14 /** … … 33 34 void initialize(); 34 35 void registerFactory( Factory* factory); 35 void set Classname(const char* name);36 const char* get Classname() {return classname;};36 void setFactoryName(const char* name); 37 const char* getFactoryName() {return factoryName;}; 37 38 void setNext( Factory* factory) {next = factory;} 38 39 Factory* getNext() {return next;} 39 40 40 41 private: 41 char* classname;42 char* factoryName; 42 43 43 44 Factory* next; … … 57 58 tFactory<T>::tFactory(const char* name) : Factory(name) 58 59 { 59 printf("fileName: %s\n", name);60 PRINTF(5)("fileName: %s\n", name); 60 61 } 61 62 … … 68 69 BaseObject* tFactory<T>::fabricate( TiXmlElement* root) 69 70 { 70 if(!strcmp(root->Value(), get Classname()))71 if(!strcmp(root->Value(), getFactoryName())) 71 72 return new T ( root); 72 73 else if( getNext() != NULL) … … 80 81 const char* grabParameter( TiXmlElement* root, const char* name); 81 82 82 83 84 85 83 #endif /* _FACTORY_H */ 86 84
Note: See TracChangeset
for help on using the changeset viewer.