#include <CLI.h>
This class is responsible for the main CLI loop
◆ CLI()
◆ benchmarkQuery() [1/2]
void joda::cli::CLI::benchmarkQuery |
( |
const std::shared_ptr< query::Query > & |
q, |
|
|
const std::string & |
name |
|
) |
| |
|
protected |
◆ benchmarkQuery() [2/2]
void joda::cli::CLI::benchmarkQuery |
( |
std::vector< std::shared_ptr< query::Query >> |
qs, |
|
|
const std::string & |
name |
|
) |
| |
|
protected |
◆ checkResult()
std::shared_ptr< JSONStorage > joda::cli::CLI::checkResult |
( |
unsigned long |
resultId | ) |
|
|
protected |
◆ checkTerminal()
void joda::cli::CLI::checkTerminal |
( |
| ) |
|
|
protected |
◆ dumpConfig()
void joda::cli::CLI::dumpConfig |
( |
| ) |
|
|
protected |
◆ executeNonInteractiveQuery()
void joda::cli::CLI::executeNonInteractiveQuery |
( |
std::shared_ptr< query::Query > & |
query, |
|
|
bool |
printResult = true |
|
) |
| |
|
protected |
◆ executeQuery()
void joda::cli::CLI::executeQuery |
( |
std::shared_ptr< query::Query > & |
query, |
|
|
bool |
printResult = true |
|
) |
| |
|
protected |
◆ getCommands()
std::vector< std::pair< std::string, std::function< void(const std::string &)> > > joda::cli::CLI::getCommands |
( |
| ) |
|
|
protected |
◆ help()
void joda::cli::CLI::help |
( |
| ) |
|
|
protected |
◆ listResults()
void joda::cli::CLI::listResults |
( |
| ) |
|
|
protected |
◆ listSources()
void joda::cli::CLI::listSources |
( |
| ) |
|
|
protected |
◆ logo()
void joda::cli::CLI::logo |
( |
| ) |
|
|
protected |
◆ ltrim()
std::string & joda::cli::CLI::ltrim |
( |
std::string & |
str | ) |
|
|
protected |
◆ parseCommand()
void joda::cli::CLI::parseCommand |
( |
| ) |
|
|
protected |
◆ print()
void joda::cli::CLI::print |
( |
const std::string & |
toprint | ) |
|
|
protected |
◆ query()
void joda::cli::CLI::query |
( |
std::string & |
query | ) |
|
|
protected |
◆ quit()
void joda::cli::CLI::quit |
( |
| ) |
|
|
protected |
◆ rtrim()
std::string & joda::cli::CLI::rtrim |
( |
std::string & |
str | ) |
|
|
protected |
◆ setSimpleMode()
void joda::cli::CLI::setSimpleMode |
( |
bool |
simpleMode | ) |
|
Changes interactivity of the CLI. In interactive mode, the program will use ncurses to show query progress and display result documents. In noninteractive mode only three sample documents will be shown in the CLI.
- Parameters
-
simpleMode | If true, the CLI will be interactive, if false not |
◆ start()
void joda::cli::CLI::start |
( |
const std::vector< std::string > & |
onceQueries | ) |
|
Starts the CLI and reacts to user-input
- Parameters
-
onceQueries | Optional queries to be executed once with a following shutdown of the system |
◆ toggleCache()
void joda::cli::CLI::toggleCache |
( |
| ) |
|
|
protected |
◆ unknownCommand()
void joda::cli::CLI::unknownCommand |
( |
| ) |
|
|
protected |
◆ bench
◆ execute
bool joda::cli::CLI::execute = true |
|
protected |
◆ simpleMode
bool joda::cli::CLI::simpleMode = false |
|
protected |
The documentation for this class was generated from the following files:
- /home/nico/joda_tmp/tmp-joda-dirs/JODA-gh/libs/joda/core/modules/cli/include/joda/cli/CLI.h
- /home/nico/joda_tmp/tmp-joda-dirs/JODA-gh/libs/joda/core/modules/cli/src/CLI.cpp