All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
CommandRegistry.h
1 // Copyright eeGeo Ltd (2012-2014), All Rights Reserved
2 
3 #pragma once
4 
5 #include "Types.h"
6 #include <map>
7 #include "Command.h"
8 
9 namespace Eegeo
10 {
11  namespace Debug
12  {
13  namespace Commands
14  {
16  {
17  public:
18  typedef std::map<std::string, const Command*>::const_iterator CommandIter;
19 
20  void RegisterCommand(const Command* command);
21  bool TryGetCommand(const std::string& commandName, const Command*& outCommand) const;
22  void GetCommandList(const std::string& filter, std::vector<std::string>& outCommandList) const;
23  private:
24  std::map<std::string, const Command*> m_commandNameToCommand;
25  };
26  }
27  }
28 }
29