CHashTable 1
Loading...
Searching...
No Matches
argument_parser_internal.h File Reference

Argument parser internal API exposed for testing. More...

Include dependency graph for argument_parser_internal.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  CommandMap
 Maps command string to enum. More...
 

Variables

constexpr size_t MAX_CMD_LEN = 128
 
constexpr char DELIMITERS [] = " \t\r\n"
 
constexpr size_t CMD_COUNT = 8
 
constexpr CommandMap command_table [CMD_COUNT]
 Maps command string to enum.
 

Detailed Description

Argument parser internal API exposed for testing.

Variable Documentation

◆ command_table

constexpr CommandMap command_table[CMD_COUNT]
constexpr
Initial value:
= {
{"add", CMD_ADD},
{"get", CMD_GET},
{"del", CMD_DEL},
{"save", CMD_SAVE},
{"load", CMD_LOAD},
{"print", CMD_PRINT},
{"exit", CMD_EXIT},
{"help", CMD_HELP}
}

Maps command string to enum.