Changeset 9727 in orxonox.OLD for branches/new_class_id/src/lib/shell
- Timestamp:
- Sep 14, 2006, 5:24:31 PM (18 years ago)
- Location:
- branches/new_class_id/src/lib/shell
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/new_class_id/src/lib/shell/shell_command.cc
r9715 r9727 36 36 * @param paramCount the count of parameters this command takes 37 37 */ 38 ShellCommand::ShellCommand(const std::string& commandName, const std::string& className, Executor * executor)38 ShellCommand::ShellCommand(const std::string& commandName, const std::string& className, Executor<const SubString>* executor) 39 39 { 40 40 this->registerObject(this, ShellCommand::_objectList); … … 75 75 * @brief registers a new ShellCommand 76 76 */ 77 ShellCommand* ShellCommand::registerCommand(const std::string& commandName, const std::string& className, Executor * executor)77 ShellCommand* ShellCommand::registerCommand(const std::string& commandName, const std::string& className, Executor<const SubString>* executor) 78 78 { 79 79 if (ShellCommand::exists(commandName, className)) -
branches/new_class_id/src/lib/shell/shell_command.h
r9715 r9727 71 71 ShellCommand* completionPlugin(unsigned int parameter, const CompletorPlugin& completorPlugin); 72 72 73 static ShellCommand* registerCommand(const std::string& commandName, const std::string& className, Executor * executor);73 static ShellCommand* registerCommand(const std::string& commandName, const std::string& className, Executor<const SubString>* executor); 74 74 static void unregisterCommand(const std::string& commandName, const std::string& className); 75 75 static const ShellCommand* const getCommand(const std::string& commandName, const std::string& className); … … 87 87 88 88 protected: 89 ShellCommand(const std::string& commandName, const std::string& className, Executor * executor);89 ShellCommand(const std::string& commandName, const std::string& className, Executor<const SubString>* executor); 90 90 virtual ~ShellCommand(); 91 91 … … 99 99 std::string description; //!< A description for this commnand. (initially ""). Assigned with (create)->describe("blablabla"); 100 100 std::vector<CompletorPlugin*> completors; //!< Completors for the Parameters 101 Executor *executor; //!< The Executor, that really executes the Function.101 Executor<const SubString>* executor; //!< The Executor, that really executes the Function. 102 102 }; 103 103
Note: See TracChangeset
for help on using the changeset viewer.