- 01
- 02
- 03
- 04
- 05
- 06
- 07
- 08
- 09
- 10
- 11
- 12
- 13
- 14
- 15
- 16
- 17
- 18
- 19
namespace NFlash
{
class TCommandMap
{
public:
typedef std::pair<NProtocolConsts::SCommands::E, pChar> TPair;
private:
std::vector<TPair> _commandMap;
public:
TCommandMap(void);
void appendCommand(TPair & Command);
void appendCommand(NProtocolConsts::SCommands::E, abstractString & Name);
const std::vector<TPair> & Names(void) const;
byte MaxCommandNameLength(void) const;
NProtocolConsts::SCommands::E GetCommandIndex(PChar Name) const;
};
void initCommandMaps(void);
}