Changeset 7221 in orxonox.OLD for trunk/src/lib/shell/shell_command.h
- Timestamp:
- Mar 15, 2006, 3:10:45 PM (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/lib/shell/shell_command.h
r7201 r7221 61 61 friend class ShellCommandClass; 62 62 public: 63 static bool execute (const char*executionString);63 static bool execute (const std::string& executionString); 64 64 65 ShellCommand* describe(const char*description);65 ShellCommand* describe(const std::string& description); 66 66 ShellCommand* setAlias(const char* alias); 67 67 ShellCommand* defaultValues(const MultiType& value0 = MT_NULL, const MultiType& value1 = MT_NULL, … … 89 89 ShellCommandAlias* alias; //!< An Alias for the Class. 90 90 91 const char*description; //!< A description for this commnand. (initially NULL). Assigned with (create)->describe("blablabla");91 std::string description; //!< A description for this commnand. (initially NULL). Assigned with (create)->describe("blablabla"); 92 92 Executor* executor; //!< The Executor, that really executes the Function. 93 93 … … 100 100 public: 101 101 /** @returns the Name of the Alias. */ 102 const char*getName() const { return this->aliasName; };102 const std::string& getName() const { return this->aliasName; }; 103 103 /** @returns the Command, this Alias is asociated with */ 104 104 ShellCommand* getCommand() const { return this->command; }; … … 106 106 private: 107 107 /** @param aliasName the name of the Alias @param command the Command, to associate this alias with */ 108 ShellCommandAlias(const char*aliasName, ShellCommand* command) { this->aliasName = aliasName; this->command = command; };108 ShellCommandAlias(const std::string& aliasName, ShellCommand* command) { this->aliasName = aliasName; this->command = command; }; 109 109 110 110 private: 111 const char*aliasName; //!< the name of the Alias111 std::string aliasName; //!< the name of the Alias 112 112 ShellCommand* command; //!< a pointer to the command, this alias executes. 113 113 };
Note: See TracChangeset
for help on using the changeset viewer.