|
CHashTable 1
|
Argument parser API for interactive mode. More...
#include "../fprintf_color/fprintf_color.h"Go to the source code of this file.
Data Structures | |
| struct | ParsedInput |
| Interactive mode command line input. More... | |
Enumerations | |
| enum | Command { CMD_INVALID , CMD_ADD , CMD_GET , CMD_DEL , CMD_SAVE , CMD_LOAD , CMD_PRINT , CMD_EXIT , CMD_HELP } |
| Interactive mode commands. | |
Functions | |
| ParsedInput | get_input (FILE *input_stream, FILE *output_stream) |
| Prompts user for interactive mode command and arguments. | |
Variables | |
| constexpr ColorCode | PROMPT_COLOR = COLOR_BLUE |
| Default interactive mode prompt color. | |
| constexpr ColorCode | OUTPUT_COLOR = COLOR_GREEN |
| Default interactive mode output color. | |
| constexpr ColorCode | ERROR_COLOR = COLOR_BOLD_RED |
| Default interactive mode error color. | |
Argument parser API for interactive mode.
| ParsedInput get_input | ( | FILE * | input_stream, |
| FILE * | output_stream | ||
| ) |
Prompts user for interactive mode command and arguments.
| input_stream | Stream to get the input from |
| output_stream | Stream to print to |