Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

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


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.cc

    r4019 r4020  
    2828   \brief constructor
    2929   
    30    set everything to zero and define classname
     30   set everything to zero and define factoryName
    3131*/
    3232Factory::Factory (const char* name)
    3333{
    34   this->classname = NULL;
    35   this->setClassname(name);
     34  this->factoryName = NULL;
     35  this->setFactoryName(name);
    3636  next = NULL;
    3737 
     
    4646Factory::~Factory ()
    4747{
    48   //  printf("%s\n", this->classname);
     48  //  printf("%s\n", this->factoryName);
    4949  //  Factory* tmpDel = this->next;
    5050  //  this->next = NULL;
     
    5353}
    5454
    55 void Factory::setClassname(const char* name)
     55void Factory::setFactoryName(const char* name)
    5656{
    57   if (classname)
    58     delete classname;
    59   classname = new char[strlen(name)+1];
    60   strcpy(classname, name);
     57  if (factoryName)
     58    delete factoryName;
     59  factoryName = new char[strlen(name)+1];
     60  strcpy(factoryName, name);
    6161}
    6262
Note: See TracChangeset for help on using the changeset viewer.