Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 4020 in orxonox.OLD for orxonox/trunk/src/factory.h


Ignore:
Timestamp:
May 3, 2005, 12:48:25 AM (19 years ago)
Author:
bensch
Message:

orxonox/trunk: renaming from factory→className → factory→factoryName

File:
1 edited

Legend:

Unmodified
Added
Removed
  • orxonox/trunk/src/factory.h

    r4010 r4020  
    3333  void initialize();
    3434  void registerFactory( Factory* factory);
    35   void setClassname(const char* name);
    36   const char* getClassname() {return classname;};
     35  void setFactoryName(const char* name);
     36  const char* getFactoryName() {return factoryName;};
    3737  void setNext( Factory* factory) {next = factory;}
    3838  Factory* getNext() {return next;}
    3939       
    4040 private:
    41   char* classname;
     41  char* factoryName;
    4242       
    4343  Factory* next;
     
    6868BaseObject* tFactory<T>::fabricate( TiXmlElement* root)
    6969{
    70   if(!strcmp(root->Value(), getClassname()))
     70  if(!strcmp(root->Value(), getFactoryName()))
    7171    return new T ( root);
    7272  else if( getNext() != NULL)
Note: See TracChangeset for help on using the changeset viewer.