#include <command_line.h>
Public Member Functions | |
| CommandLine (const char *_history_file) | |
| Constructor. | |
| CommandLine (std::string _history_file) | |
| Constructor. | |
| ~CommandLine () | |
| std::string | GetLine (std::string prompt) |
| Read a line from the command line. | |
Command Line prompt This class provides a command line prompt with history support (when compiled with readline support)
Definition at line 10 of file command_line.h.
| CommandLine::CommandLine | ( | const char * | _history_file | ) | [inline] |
Constructor.
| _history_file | Path to the history file (when compiled with readline support) |
Definition at line 19 of file command_line.h.
| CommandLine::CommandLine | ( | std::string | _history_file | ) | [inline] |
Constructor.
| _history_file | Path to the history file (when compiled with readline support) |
Definition at line 23 of file command_line.h.
| CommandLine::~CommandLine | ( | ) |
Definition at line 20 of file command_line.cpp.
| std::string CommandLine::GetLine | ( | std::string | prompt | ) |
Read a line from the command line.
| prompt | The prompt to display |
Definition at line 31 of file command_line.cpp.
1.5.8