Changeset 5639 in orxonox.OLD for trunk/src/lib/shell/shell_command.h
- Timestamp:
- Nov 18, 2005, 7:21:32 PM (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/lib/shell/shell_command.h
r5637 r5639 22 22 // FORWARD DECLARATION 23 23 template<class T> class tList; 24 class ShellCommandClass; 25 class ShellCommandAlias; 24 26 25 27 /** … … 63 65 ShellCommand_Static = 2, 64 66 } ShellCommand_Type; 65 66 ////////////////67 // BASE CLASS //68 ////////////////69 class ShellCommand;70 class ShellCommandAlias;71 72 //! A class to hold all Classes that have (once) registered Commands.73 class ShellCommandClass : public BaseObject74 {75 friend class ShellCommand;76 77 public:78 /** @returns the CommandClassList */79 static const tList<ShellCommandClass>* getCommandClassList() { return ShellCommandClass::commandClassList; };80 static bool getCommandListOfClass(const char* className, tList<const char>* stringList);81 static bool getCommandListOfAlias(tList<const char>* aliasList);82 83 static ShellCommandClass* getCommandClass(const char* className);84 static void unregisterAllCommands();85 86 static void help (const char* className);87 88 private:89 ShellCommandClass(const char* className);90 ~ShellCommandClass();91 92 static const ShellCommandClass* isRegistered(const char* className);93 static void initCommandClassList();94 95 private:96 const char* className; //!< The Name of the Class. This should match the ClassName of the Commands Class.97 long classID; //!< The classID of this Class98 tList<ShellCommand>* commandList; //!< A list of Commands from this Class99 static tList<ShellCommandClass>* commandClassList; //!< A list of Classes100 static tList<ShellCommandAlias>* aliasList; //!< An Alias to A Command. (only for classes with one Instance)101 };102 103 67 104 68 //! a baseClass for all possible ShellCommands
Note: See TracChangeset
for help on using the changeset viewer.