| 49 | } |
| 50 | |
| 51 | bool execute( const std::string& command ) { |
| 52 | auto cmdIt = mCommands.find( command ); |
| 53 | if ( cmdIt != mCommands.end() ) { |
| 54 | cmdIt->second(); |
| 55 | return true; |
| 56 | } |
| 57 | return false; |
| 58 | } |
| 59 | |
| 60 | size_t commandCount() const { return mCommands.size(); } |
| 61 |
no test coverage detected