An abstract class that models a source of data in a query. More...
#include <FromItem.h>
Public Types | |
| typedef void | ReturnType |
| typedef QueryVisitor | VisitorType |
Public Member Functions | |
| virtual ReturnType | accept (VisitorType &guest) const=0 |
| It call the visit method from the guest object. | |
| virtual FromItem * | clone () const =0 |
| It creates a new copy of this FromItem. | |
| FromItem (const FromItem &rhs) | |
| Copy constructor. | |
| TE_DEFINE_VISITABLE | FromItem (const std::string &alias) |
| Constructor. | |
| const std::string & | getAlias () const |
| It returns the alias associated to the source item. | |
| FromItem & | operator= (const FromItem &rhs) |
| void | setAlias (const std::string &alias) |
| It sets the alias for a from source item. | |
| virtual | ~FromItem () |
| Virtual destructor. | |
Protected Attributes | |
| std::string | m_alias |
| An alias for the output name. | |
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.
References m_alias.
Referenced by te::da::DataSetName::clone(), te::da::FromFunctionCall::clone(), clone(), te::da::Join::clone(), te::da::SubSelect::clone(), FromItem(), te::da::Join::getFirst(), te::da::Join::getSecond(), te::da::Join::Join(), te::da::Join::Join(), operator=(), te::da::Join::setFirst(), and te::da::Join::setSecond().
| te::da::FromItem::FromItem | ( | const FromItem & | rhs | ) |
Copy constructor.
References FromItem().
|
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::DataSetName, te::da::FromFunctionCall, te::da::Join, and te::da::SubSelect.
References FromItem().
Referenced by te::da::new_clone().
| const std::string & te::da::FromItem::getAlias | ( | ) | const |
It returns the alias associated to the source item.
Assignment operator.
References FromItem().
| 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. |
|
protected |