- Timestamp:
- Sep 6, 2015, 10:25:00 PM (10 years ago)
- Children:
- b303d0
- Parents:
- 5c22be
- git-author:
- Frederik Heber <heber@…> (03/13/15 15:01:16)
- git-committer:
- Frederik Heber <heber@…> (09/06/15 22:25:00)
- Location:
- src/base
- Files:
-
- 2 edited
-
command_list.cpp (modified) (1 diff)
-
command_list.hpp (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
src/base/command_list.cpp
r5c22be rebc866 106 106 } 107 107 108 void CommandList::DeleteCommand(const std::string& _command) 109 { 110 CommandList::iterator iter = commands.begin(); 111 for (;iter != commands.end(); ++iter) 112 if (iter->first == _command) 113 break; 114 assert( iter != commands.end() ); 115 DeleteCommand(iter); 116 } 117 108 118 void CommandList::Print() 109 119 { -
src/base/command_list.hpp
r5c22be rebc866 50 50 51 51 void AddCommand(std::string command, std::string arguments = ""); ///< Add a command to the back of the list. 52 void DeleteCommand(const CommandList::iterator& iter); ///< Remove a command from the list.52 void DeleteCommand(const std::string& command); ///< Remove a command from the list. 53 53 54 54 void Print(); ///< Print all commands in list. 55 55 56 56 void Clear(); ///< Remove all commands from list. 57 58 protected: 59 void DeleteCommand(const CommandList::iterator& iter); ///< Remove a command from the list. 57 60 58 61 private:
Note:
See TracChangeset
for help on using the changeset viewer.
