Command interpreter for ht_thriftbroker.
More...
#include <CommandInterpreter.h>
Command interpreter for ht_thriftbroker.
Definition at line 50 of file CommandInterpreter.h.
Tools::client::thriftbroker::CommandInterpreter::CommandInterpreter |
( |
Thrift::ClientPtr & |
client, |
|
|
bool |
nowait = false |
|
) |
| |
|
inline |
Constructor.
Initializes m_client with client
and #m_nowait with nowait
. Also loads help text with a call to load_help_text().
- Parameters
-
client | ThriftBroker client |
nowait | No wait flag |
Definition at line 59 of file CommandInterpreter.h.
void thriftbroker::CommandInterpreter::display_help_text |
( |
const std::string & |
command | ) |
const |
|
private |
Displays help text for command.
Searches m_help_text for help text for command
and displays it if found.
- Parameters
-
command | Command for which to display help text |
Definition at line 219 of file CommandInterpreter.cc.
void thriftbroker::CommandInterpreter::display_usage |
( |
const std::string & |
command | ) |
const |
|
private |
Displays usage for command.
Searches m_help_text for help text for command
and displays the first line, which is the command usage.
- Parameters
-
command | Command for which to display help text |
Definition at line 234 of file CommandInterpreter.cc.
int thriftbroker::CommandInterpreter::execute_line |
( |
const String & |
line | ) |
|
|
overridevirtual |
void thriftbroker::CommandInterpreter::load_help_text |
( |
| ) |
|
|
private |
void thriftbroker::CommandInterpreter::parse_error |
( |
const std::string & |
command | ) |
const |
|
private |
void thriftbroker::CommandInterpreter::parse_line |
( |
const String & |
line, |
|
|
ParseResult & |
result |
|
) |
| const |
|
private |
Parses a single command.
- Parameters
-
line | String containing command to parse |
result | Reference to variable to hold parse result |
Definition at line 125 of file CommandInterpreter.cc.
std::unordered_map<std::string, const char **> Tools::client::thriftbroker::CommandInterpreter::m_help_text |
|
private |
The documentation for this class was generated from the following files: