7 #include <readline/history.h>
8 #include <readline/readline.h>
15 #ifdef JODA_ENABLE_PROFILING
16 #include "gperftools/profiler.h"
31 void start(
const std::vector<std::string> &onceQueries);
48 std::string &
ltrim(std::string &str);
49 std::string &
rtrim(std::string &str);
51 void print(
const std::string &toprint);
56 std::vector<std::pair<std::string, std::function<void(
const std::string &)>>>
67 bool printResult =
true);
69 bool printResult =
true);
71 #ifdef JODA_ENABLE_PROFILING
72 void profileStart(
const std::string &name);
74 bool profileRunning =
false;
82 const std::string &name);
84 const std::string &name);
91 std::shared_ptr<JSONStorage>
checkResult(
unsigned long resultId);
Definition: Benchmark.h:27
void logo()
Definition: CLI.cpp:426
void unknownCommand()
Definition: CLI.cpp:424
void executeQuery(std::shared_ptr< query::Query > &query, bool printResult=true)
Definition: CLI.cpp:300
void print(const std::string &toprint)
Definition: CLI.cpp:177
bool simpleMode
Definition: CLI.h:43
void dumpConfig()
Definition: CLI.cpp:485
std::string & rtrim(std::string &str)
Definition: CLI.cpp:73
Benchmark bench
Definition: CLI.h:90
void quit()
Definition: CLI.cpp:181
void executeNonInteractiveQuery(std::shared_ptr< query::Query > &query, bool printResult=true)
Definition: CLI.cpp:231
bool execute
Definition: CLI.h:89
void setSimpleMode(bool simpleMode)
Definition: CLI.cpp:492
void benchmarkQuery(const std::shared_ptr< query::Query > &q, const std::string &name)
Definition: CLI.cpp:402
void start(const std::vector< std::string > &onceQueries)
Definition: CLI.cpp:114
void checkTerminal()
Definition: CLI.cpp:500
void listResults()
Definition: CLI.cpp:205
std::shared_ptr< JSONStorage > checkResult(unsigned long resultId)
Definition: CLI.cpp:273
void help()
Definition: CLI.cpp:468
std::string & ltrim(std::string &str)
Definition: CLI.cpp:65
void query(std::string &query)
Definition: CLI.cpp:219
std::vector< std::pair< std::string, std::function< void(const std::string &)> > > getCommands()
Definition: CLI.cpp:451
void listSources()
Definition: CLI.cpp:192
void toggleCache()
Definition: CLI.cpp:186
CLI()
Definition: CLI.cpp:400
void parseCommand()
Definition: CLI.cpp:81