Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 4217 in orxonox.OLD for orxonox/branches/movie_player/src/factory.h


Ignore:
Timestamp:
May 18, 2005, 11:27:40 AM (19 years ago)
Author:
bensch
Message:

orxonox/branches/movie_player: merged the trunk back into the movie_player
merged with command:
svn merge -r 4014:HEAD ../trunk/ movie_player/
no conflicts

File:
1 edited

Legend:

Unmodified
Added
Removed
  • orxonox/branches/movie_player/src/factory.h

    r4010 r4217  
    1010
    1111#include "xmlparser/tinyxml.h"
     12#include "debug.h"
    1213
    1314/**
     
    3334  void initialize();
    3435  void registerFactory( Factory* factory);
    35   void setClassname(const char* name);
    36   const char* getClassname() {return classname;};
     36  void setFactoryName(const char* name);
     37  const char* getFactoryName() {return factoryName;};
    3738  void setNext( Factory* factory) {next = factory;}
    3839  Factory* getNext() {return next;}
    3940       
    4041 private:
    41   char* classname;
     42  char* factoryName;
    4243       
    4344  Factory* next;
     
    5758tFactory<T>::tFactory(const char* name) : Factory(name)
    5859{
    59   printf("fileName: %s\n", name);
     60  PRINTF(5)("fileName: %s\n", name);
    6061}
    6162 
     
    6869BaseObject* tFactory<T>::fabricate( TiXmlElement* root)
    6970{
    70   if(!strcmp(root->Value(), getClassname()))
     71  if(!strcmp(root->Value(), getFactoryName()))
    7172    return new T ( root);
    7273  else if( getNext() != NULL)
     
    8081const char* grabParameter( TiXmlElement* root, const char* name);
    8182
    82 
    83 
    84 
    8583#endif /* _FACTORY_H */
    8684
Note: See TracChangeset for help on using the changeset viewer.