Column-oriented GPU-accelerated Database Management System
CoGaDB
|
#include <commandline_interpreter.hpp>
Public Member Functions | |
CommandLineInterpreter () | |
bool | execute (const std::string &command) |
bool | getline (const std::string &prompt, std::string &result) |
Private Types | |
typedef bool(* | SimpleCommandHandlerPtr )() |
typedef bool(* | ParameterizedCommandHandlerPtr )(const std::string &) |
typedef std::map< std::string, SimpleCommandHandlerPtr > | SimpleCommandMap |
typedef std::map< std::string, ParameterizedCommandHandlerPtr > | ParameterizedCommandMap |
Private Attributes | |
SimpleCommandMap | simple_command_map_ |
ParameterizedCommandMap | command_map_ |
std::string | prompt_ |
typedef bool(* CoGaDB::CommandLineInterpreter::ParameterizedCommandHandlerPtr)(const std::string &) [private] |
typedef std::map<std::string, ParameterizedCommandHandlerPtr> CoGaDB::CommandLineInterpreter::ParameterizedCommandMap [private] |
typedef bool(* CoGaDB::CommandLineInterpreter::SimpleCommandHandlerPtr)() [private] |
typedef std::map<std::string, SimpleCommandHandlerPtr> CoGaDB::CommandLineInterpreter::SimpleCommandMap [private] |
References command_map_, CoGaDB::SQL::commandlineExec(), CoGaDB::unit_tests::executeUnitTests(), CoGaDB::help(), CoGaDB::loadTables(), CoGaDB::printDatabaseSchema(), CoGaDB::printStatusOfGPUCache(), CoGaDB::printVariableValue(), CoGaDB::setDefaultDevice(), CoGaDB::setDefaultParallelizationModeTwoPhasePhysicalOptimization(), CoGaDB::setVariable(), simple_command_map_, CoGaDB::simple_SSB_Queries(), CoGaDB::SSB_Q11(), CoGaDB::SSB_Q12(), CoGaDB::SSB_Q13(), CoGaDB::SSB_Q21(), CoGaDB::SSB_Q22(), CoGaDB::SSB_Q23(), CoGaDB::SSB_Q31(), CoGaDB::SSB_Q32(), CoGaDB::SSB_Q33(), CoGaDB::SSB_Q34(), CoGaDB::SSB_Q41(), CoGaDB::SSB_Q42(), CoGaDB::SSB_Q43(), CoGaDB::toggleQueryChopping(), CoGaDB::Unittest_Create_Star_Schema_Benchmark_Database(), and CoGaDB::Unittest_Create_TPCH_Database().
bool CoGaDB::CommandLineInterpreter::execute | ( | const std::string & | command | ) |
References command_map_, and simple_command_map_.
Referenced by main().
bool CoGaDB::CommandLineInterpreter::getline | ( | const std::string & | prompt, |
std::string & | result | ||
) |
Referenced by CommandLineInterpreter(), and execute().
std::string CoGaDB::CommandLineInterpreter::prompt_ [private] |
Referenced by CommandLineInterpreter(), and execute().