OmniSciDB
a5dc49c757
|
#include <ExpressionParser.h>
Classes | |
struct | ParserDeleter |
Public Member Functions | |
ExpressionParser () | |
void | setExpression (const std::string &expression) |
void | setStringConstant (const std::string &name, const std::string &value) |
void | setIntConstant (const std::string &name, const int value) |
std::string | evalAsString () |
int | evalAsInt () |
double | evalAsDouble () |
bool | evalAsBool () |
Private Attributes | |
std::unique_ptr< mup::ParserX, ParserDeleter > | parser_ |
Definition at line 34 of file ExpressionParser.h.
import_export::ExpressionParser::ExpressionParser | ( | ) |
Definition at line 357 of file ExpressionParser.cpp.
bool import_export::ExpressionParser::evalAsBool | ( | ) |
Definition at line 409 of file ExpressionParser.cpp.
References import_export::anonymous_namespace{ExpressionParser.cpp}::evaluate(), parser_, and run_benchmark_import::result.
double import_export::ExpressionParser::evalAsDouble | ( | ) |
Definition at line 401 of file ExpressionParser.cpp.
References import_export::anonymous_namespace{ExpressionParser.cpp}::evaluate(), parser_, and run_benchmark_import::result.
int import_export::ExpressionParser::evalAsInt | ( | ) |
Definition at line 393 of file ExpressionParser.cpp.
References import_export::anonymous_namespace{ExpressionParser.cpp}::evaluate(), parser_, and run_benchmark_import::result.
std::string import_export::ExpressionParser::evalAsString | ( | ) |
Definition at line 385 of file ExpressionParser.cpp.
References import_export::anonymous_namespace{ExpressionParser.cpp}::evaluate(), import_export::anonymous_namespace{ExpressionParser.cpp}::ms_to_ss(), parser_, and run_benchmark_import::result.
Referenced by import_export::parse_add_metadata_columns().
void import_export::ExpressionParser::setExpression | ( | const std::string & | expression | ) |
Definition at line 381 of file ExpressionParser.cpp.
References parser_, and import_export::anonymous_namespace{ExpressionParser.cpp}::ss_to_ms().
Referenced by import_export::parse_add_metadata_columns().
void import_export::ExpressionParser::setIntConstant | ( | const std::string & | name, |
const int | value | ||
) |
Definition at line 377 of file ExpressionParser.cpp.
References parser_, and import_export::anonymous_namespace{ExpressionParser.cpp}::ss_to_ms().
void import_export::ExpressionParser::setStringConstant | ( | const std::string & | name, |
const std::string & | value | ||
) |
Definition at line 372 of file ExpressionParser.cpp.
References parser_, and import_export::anonymous_namespace{ExpressionParser.cpp}::ss_to_ms().
Referenced by import_export::parse_add_metadata_columns().
|
private |
Definition at line 52 of file ExpressionParser.h.
Referenced by evalAsBool(), evalAsDouble(), evalAsInt(), evalAsString(), setExpression(), setIntConstant(), and setStringConstant().