#include <QueryParser.h>
|
std::unique_ptr< tao::pegtl::parse_error > | lastError |
|
The QueryParser is responsible for parsing queries from textual representation into the internal Query class.
◆ checkLanguage()
const size_t joda::queryparsing::QueryParser::checkLanguage |
( |
| ) |
|
|
static |
Analyzes the underlying query grammar. Used during testing.
- Returns
- A error code describing issues with the grammar.
◆ getFunctionNames()
std::string joda::queryparsing::QueryParser::getFunctionNames |
( |
| ) |
|
|
static |
Returns a string containing a space seperated list of functions supported by the system.
- Returns
◆ getLastError()
const std::string joda::queryparsing::QueryParser::getLastError |
( |
| ) |
const |
Returns the current error message, if parsing did not succeed. An empty string is returned of no error happened
- Returns
◆ getLastErrorColor()
const std::string joda::queryparsing::QueryParser::getLastErrorColor |
( |
| ) |
const |
Returns the current error message with UNIX terminal color codes embedded, if parsing did not succeed. An empty string is returned of no error happened
- Returns
◆ parse()
std::shared_ptr< joda::query::Query > joda::queryparsing::QueryParser::parse |
( |
const std::string & |
str | ) |
|
Parses the given input string into a Query. If an error occurs, it is logged, stored and a nullpointer is returned.
- Parameters
-
str | the input textual representation |
- Returns
- A Query if the input was a valid JODA query, nullpointer if not.
◆ parseMultiple()
std::vector< std::shared_ptr< joda::query::Query > > joda::queryparsing::QueryParser::parseMultiple |
( |
const std::string & |
str | ) |
|
Parses the given input string into one or multiple Query objects. If an error occurs, it is logged, stored, and a empty list is returned.
- Parameters
-
str | the input textual representation |
- Returns
- A list of Query pointers if the input was valid, empty list if not.
◆ lastError
std::unique_ptr<tao::pegtl::parse_error> joda::queryparsing::QueryParser::lastError |
|
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/queryparsing/include/joda/queryparsing/QueryParser.h
- /home/nico/joda_tmp/tmp-joda-dirs/JODA-gh/libs/joda/core/modules/queryparsing/src/QueryParser.cpp