Go to the documentation of this file.
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(
""));
130 #endif // __TERRALIB_DATAACCESS_INTERNAL_FIELD_H
Field & operator=(const Field &rhs)
Field(const std::string &propertyName, const std::string &alias=std::string(""))
Constructor.
Field(Expression *e, std::string *alias=0)
Constructor.
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.
#define TEDATAACCESSEXPORT
You can use this macro in order to export/import classes and functions from this module.
This is an abstract class that models a query expression.
Field(const Field &rhs)
Copy constructor.
void setAlias(std::string *alias)
As you know, sometimes is better to give an alias to an output expression.
The Field class can be used to model an expression that takes part of the output items of a SELECT.
Field(const Expression &e, const std::string &alias=std::string(""))
Constructor.
std::unique_ptr< Expression > m_field
A valid expression.
void setExpression(Expression *e)
It sets the an expression that can be used in a Select query.