An abstract class that models a source of data in a query. More...
#include <FromItem.h>
Public Types | |
typedef R | ReturnType |
typedef QueryVisitor | VisitorType |
Public Member Functions | |
virtual ReturnType | accept (VisitorType &guest) const =0 |
It call the visit method from the guest object. More... | |
virtual FromItem * | clone () const =0 |
It creates a new copy of this FromItem. More... | |
TE_DEFINE_VISITABLE | FromItem (const std::string &alias) |
Constructor. More... | |
FromItem (const FromItem &rhs) | |
Copy constructor. More... | |
const std::string & | getAlias () const |
It returns the alias associated to the source item. More... | |
FromItem & | operator= (const FromItem &rhs) |
void | setAlias (const std::string &alias) |
It sets the alias for a from source item. More... | |
virtual | ~FromItem () |
Virtual destructor. More... | |
Protected Attributes | |
std::string | m_alias |
An alias for the output name. More... | |
An abstract class that models a source of data in a query.
Definition at line 50 of file FromItem.h.
|
inherited |
Definition at line 58 of file BaseVisitable.h.
|
inherited |
Definition at line 57 of file BaseVisitable.h.
|
inline |
Constructor.
alias | An alias to the source data item. |
Definition at line 61 of file FromItem.h.
te::da::FromItem::FromItem | ( | const FromItem & | rhs | ) |
Copy constructor.
Definition at line 29 of file FromItem.cpp.
|
inlinevirtual |
Virtual destructor.
Definition at line 67 of file FromItem.h.
|
pure virtualinherited |
It call the visit method from the guest object.
guest | The guest or visitor. |
|
pure virtual |
It creates a new copy of this FromItem.
Implemented in te::da::Join, te::da::FromFunctionCall, te::da::SubSelect, and te::da::DataSetName.
Referenced by te::da::Select::from(), te::da::Join::Join(), and te::da::new_clone().
const std::string & te::da::FromItem::getAlias | ( | ) | const |
It returns the alias associated to the source item.
Definition at line 47 of file FromItem.cpp.
Referenced by te::map::QueryLayer::getSchema(), te::serialize::xml::Save(), te::qt::widgets::DataSetWidget::setFrom(), and te::da::SQLVisitor::visit().
te::da::FromItem & te::da::FromItem::operator= | ( | const FromItem & | rhs | ) |
Assignment operator.
Definition at line 34 of file FromItem.cpp.
References m_alias.
Referenced by te::da::DataSetName::operator=(), te::da::SubSelect::operator=(), te::da::FromFunctionCall::operator=(), and te::da::Join::operator=().
void te::da::FromItem::setAlias | ( | const std::string & | alias | ) |
It sets the alias for a from source item.
alias | The alias for a from source item. |
Definition at line 42 of file FromItem.cpp.
|
protected |