Changeset 9692 in orxonox.OLD for branches/new_class_id/src/lib/shell/shell_command_class.h
- Timestamp:
- Aug 23, 2006, 12:43:25 AM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/new_class_id/src/lib/shell/shell_command_class.h
r8362 r9692 25 25 class ShellCommandClass : public BaseObject 26 26 { 27 NewObjectListDeclaration(ShellCommandClass); 28 27 29 friend class ShellCommand; 28 30 public: 29 31 /** @returns the CommandClassList */ 30 static const CmdClassList& getCommandClassList() { return *ShellCommandClass:: commandClassList; };32 static const CmdClassList& getCommandClassList() { return *ShellCommandClass::_commandClassList; }; 31 33 32 34 static bool getCommandListOfClass(const std::string& className, std::list<std::string>& stringList); … … 34 36 static void unregisterAllCommands(); 35 37 static ShellCommandClass* getCommandClass(const std::string& className); 36 ClassID getClassID();38 NewClassID getClassID(); 37 39 static bool exists(const std::string& className); 38 40 … … 51 53 52 54 private: 53 const std::string className; //!< The Name of the Class. This should match the ClassName of the Commands Class.54 ClassIDclassID; //!< The classID of this Class55 CmdList commandList; //!< A list of Commands from this Class55 const std::string _className; //!< The Name of the Class. This should match the ClassName of the Commands Class. 56 NewClassID _classID; //!< The classID of this Class 57 CmdList _commandList; //!< A list of Commands from this Class 56 58 57 static CmdClassList* commandClassList; //!< A list of Classes59 static CmdClassList* _commandClassList; //!< A list of Classes 58 60 }; 59 61 }
Note: See TracChangeset
for help on using the changeset viewer.