35 m_alias.reset(alias.empty() ? 0 :
new std::string(alias));
49 m_alias.reset(alias.empty() ? 0 :
new std::string(alias));
69 m_alias.reset(rhs.
m_alias.get() ?
new std::string(*rhs.
m_alias) : 0);
The Field class can be used to model an expression that takes part of the output items of a SELECT...
A class that models the name of any property of an object.
A class that models the name of any property of an object.
Expression * getExpression() const
It returns the expression set for an output select query.
This is an abstract class that models a query expression.
Field(const Expression &e, const std::string &alias=std::string(""))
Constructor.
The Field class can be used to model an expression that takes part of the output items of a SELECT...
std::string * getAlias() const
It returns the alias for the outout expression.
This is an abstract class that models a query expression.
void setAlias(std::string *alias)
As you know, sometimes is better to give an alias to an output expression.
std::auto_ptr< Expression > m_field
A valid expression.
std::auto_ptr< std::string > m_alias
An alias for the output name.
void setExpression(Expression *e)
It sets the an expression that can be used in a Select query.
Field & operator=(const Field &rhs)