The Field class can be used to model an expression that takes part of the output items of a SELECT. More...
#include <Field.h>
Public Member Functions | |
Field (const Expression &e, const std::string &alias=std::string("")) | |
Constructor. More... | |
Field (Expression *e, std::string *alias=0) | |
Constructor. More... | |
Field (const std::string &propertyName, const std::string &alias=std::string("")) | |
Constructor. More... | |
Field (const Field &rhs) | |
Copy constructor. More... | |
std::string * | getAlias () const |
It returns the alias for the outout expression. More... | |
Expression * | getExpression () const |
It returns the expression set for an output select query. More... | |
Field & | operator= (const Field &rhs) |
void | setAlias (std::string *alias) |
As you know, sometimes is better to give an alias to an output expression. More... | |
void | setExpression (Expression *e) |
It sets the an expression that can be used in a Select query. More... | |
~Field () | |
Destructor. More... | |
Private Attributes | |
std::auto_ptr< std::string > | m_alias |
An alias for the output name. More... | |
std::auto_ptr< Expression > | m_field |
A valid expression. More... | |
The Field class can be used to model an expression that takes part of the output items of a SELECT.
te::da::Field::Field | ( | const Expression & | e, |
const std::string & | alias = std::string("") |
||
) |
te::da::Field::Field | ( | Expression * | e, |
std::string * | alias = 0 |
||
) |
Constructor.
e | The output expression to be used in a Select clause. |
alias | An alias to the output expression. |
te::da::Field::Field | ( | const std::string & | propertyName, |
const std::string & | alias = std::string("") |
||
) |
te::da::Field::Field | ( | const Field & | rhs | ) |
std::string * te::da::Field::getAlias | ( | ) | const |
It returns the alias for the outout expression.
Definition at line 90 of file Field.cpp.
Referenced by te::serialize::xml::Save().
te::da::Expression * te::da::Field::getExpression | ( | ) | const |
It returns the expression set for an output select query.
Definition at line 80 of file Field.cpp.
Referenced by te::graph::QueryIterator::getFirstEdge(), te::graph::BoxIterator::getFirstEdge(), te::graph::SequenceIterator::getFirstVertex(), te::graph::BoxIterator::getFirstVertex(), te::map::QueryLayer::getSchema(), te::graph::SequenceLoaderStrategy::loadDataByEdgeId(), te::graph::BoxLoaderStrategy::loadDataByEdgeId(), te::graph::SequenceLoaderStrategy::loadDataByVertexId(), te::graph::BoxLoaderStrategy::loadDataByVertexId(), te::serialize::xml::Save(), te::da::ObjectIdSet::setExpressionByIntersection(), and te::qt::widgets::FieldsWizardPage::setFields().
te::da::Field & te::da::Field::operator= | ( | const Field & | rhs | ) |
void te::da::Field::setAlias | ( | std::string * | alias | ) |
void te::da::Field::setExpression | ( | Expression * | e | ) |
|
private |
An alias for the output name.
Definition at line 124 of file Field.h.
Referenced by Field(), and operator=().
|
private |