A base class for encoders of SQL function expressions. More...
#include <SQLFunctionEncoder.h>
Public Member Functions | |
SQLFunctionEncoder (const std::string &name) | |
Constructor. More... | |
virtual void | toSQL (const Function &f, std::string &buff, SQLVisitor &v) const =0 |
It encodes the function to a SQL notation. More... | |
virtual | ~SQLFunctionEncoder () |
Virtual Destructor. More... | |
Protected Attributes | |
std::string | m_name |
The alias to the function. More... | |
A base class for encoders of SQL function expressions.
A Function is a named procedure that performs a distinct computation.
Definition at line 55 of file SQLFunctionEncoder.h.
|
inline |
|
inlinevirtual |
Virtual Destructor.
Definition at line 67 of file SQLFunctionEncoder.h.
|
pure virtual |
It encodes the function to a SQL notation.
Subclasses must provide implementations for the many ways a function can be called in a database native language. For example, the '+' operator is called A + B, while the ST_Intersects function is called ST_Intersects(A, B).
Notice that this method will visit the expression arguments of a function.
f | The function to be translated to a SQL notation. |
buff | The destination string buffer where the translation will be written. |
v | The SQL visitor that will be used to visit the arguments expression. |
Implemented in te::da::TemplateEncoder, te::da::FunctionEncoder, te::da::BinaryOpEncoder, te::da::UnaryOpEncoder, and te::da::FunctionNoArgsEncoder.
|
protected |
The alias to the function.
Definition at line 88 of file SQLFunctionEncoder.h.