26 #ifndef __TERRALIB_DATAACCESS_INTERNAL_FIELD_H
27 #define __TERRALIB_DATAACCESS_INTERNAL_FIELD_H
30 #include "../Config.h"
78 Field(
const std::string& propertyName,
const std::string& alias = std::string(
""));
This is an abstract class that models a query expression.
The Field class can be used to model an expression that takes part of the output items of a SELECT.
Field & operator=(const Field &rhs)
std::unique_ptr< Expression > m_field
A valid expression.
std::unique_ptr< std::string > m_alias
An alias for the output name.
Expression * getExpression() const
It returns the expression set for an output select query.
std::string * getAlias() const
It returns the alias for the outout expression.
Field(const Field &rhs)
Copy constructor.
Field(const Expression &e, const std::string &alias=std::string(""))
Constructor.
void setExpression(Expression *e)
It sets the an expression that can be used in a Select query.
Field(const std::string &propertyName, const std::string &alias=std::string(""))
Constructor.
Field(Expression *e, std::string *alias=0)
Constructor.
void setAlias(std::string *alias)
As you know, sometimes is better to give an alias to an output expression.
#define TEDATAACCESSEXPORT
You can use this macro in order to export/import classes and functions from this module.