Changeset 5163 in orxonox.OLD for trunk/src/lib/shell
- Timestamp:
- Sep 5, 2005, 10:37:45 PM (19 years ago)
- Location:
- trunk/src/lib/shell
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/lib/shell/shell_command.cc
r5161 r5163 35 35 // this->classID = classID; 36 36 this->className = className; //ClassList::IDToString(classID); 37 38 /* if (classID & CL_MASK_SINGLETON == CL_MASK_SINGLETON)39 this->isSingleton = true;40 else*/41 this->isSingleton = true;42 37 43 38 // handling parameters, and storing them: … … 149 144 PRINTF(4)("Class %s matches\n", elem->className); 150 145 BaseObject* objectPointer = NULL; 151 if ( elem->isSingleton)146 if (ClassList::StringToID(elem->className) & CL_MASK_SINGLETON == CL_MASK_SINGLETON) 152 147 { 153 148 while(*commandBegin == ' ') -
trunk/src/lib/shell/shell_command.h
r5162 r5163 54 54 55 55 protected: 56 void* functionPointer; //!< The pointeer to the function of the Class (or static pointer if ClassID == CL_NULL ) 57 unsigned int paramCount; //!< the count of parameters 58 unsigned int* parameters; //!< Parameters 59 bool isSingleton; //!< if the Class is Singleton @todo autocheck 56 void* functionPointer; //!< The pointeer to the function of the Class (or static pointer if ClassID == CL_NULL ) 57 unsigned int paramCount; //!< the count of parameters 58 unsigned int* parameters; //!< Parameters 60 59 char* defaultStrings[FUNCTOR_MAX_ARGUMENTS]; 61 60 int defaultInts[FUNCTOR_MAX_ARGUMENTS]; … … 65 64 private: 66 65 // long classID; //!< The ID of the Class associated to this Command 67 const char* className; //!< The Name of the Class associated to this Command66 const char* className; //!< The Name of the Class associated to this Command 68 67 69 68 // STATIC MEMBERS 70 static tList<ShellCommandBase>* commandList; //!< A list of availiable commands.69 static tList<ShellCommandBase>* commandList; //!< A list of availiable commands. 71 70 }; 72 71
Note: See TracChangeset
for help on using the changeset viewer.