It represents the SQL query dialect accepted by a given data source. More...
#include <SQLDialect.h>
Public Member Functions | |
const SQLFunctionEncoder * | find (const std::string &funcName) const |
It searches for an encoder for the given function. More... | |
std::vector< std::string > | getRegisteredNames () const |
It gets the all registered names from registed functions. More... | |
void | insert (const std::string &funcName, SQLFunctionEncoder *encoder) |
It adds a new encoder for a given function. More... | |
SQLDialect () | |
Default constructor. More... | |
~SQLDialect () | |
Destructor. More... | |
Private Attributes | |
std::map< std::string, SQLFunctionEncoder * > | m_regFunctions |
A map from the TerraLib general name to a given SQL formatter. More... | |
It represents the SQL query dialect accepted by a given data source.
This class is target for the portability of TerraLib...
Definition at line 55 of file SQLDialect.h.
|
inline |
Default constructor.
Definition at line 60 of file SQLDialect.h.
te::da::SQLDialect::~SQLDialect | ( | ) |
Destructor.
const SQLFunctionEncoder* te::da::SQLDialect::find | ( | const std::string & | funcName | ) | const |
It searches for an encoder for the given function.
funcName | The function name. |
std::vector<std::string> te::da::SQLDialect::getRegisteredNames | ( | ) | const |
It gets the all registered names from registed functions.
void te::da::SQLDialect::insert | ( | const std::string & | funcName, |
SQLFunctionEncoder * | encoder | ||
) |
It adds a new encoder for a given function.
funcName | The function name. |
encoder | The SQL dialect encoder for the given function. |
Exception | It thorws an exception if a given function is already registered. |
|
private |
A map from the TerraLib general name to a given SQL formatter.
Definition at line 96 of file SQLDialect.h.