All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
te::da::DataSetName Class Referenceabstract

A class that models the name of a dataset used in a From clause. More...

#include <DataSetName.h>

Inheritance diagram for te::da::DataSetName:
te::da::FromItem te::common::BaseVisitable< QueryVisitor >

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...
 
FromItemclone () const
 It creates a new copy of this FromItem. More...
 
TE_DEFINE_VISITABLE DataSetName (const std::string &name, const std::string &alias="")
 Constructor. More...
 
 DataSetName (const DataSetName &rhs)
 Copy constructor. More...
 
const std::string & getAlias () const
 It returns the alias associated to the source item. More...
 
const std::string & getName () const
 It returns the dataset name. More...
 
DataSetNameoperator= (const DataSetName &rhs)
 
void setAlias (const std::string &alias)
 It sets the alias for a from source item. More...
 
void setName (const std::string &name)
 It sets the dataset name. More...
 
 ~DataSetName ()
 Destructor. More...
 

Protected Attributes

std::string m_alias
 An alias for the output name. More...
 

Private Attributes

std::string m_name
 The dataset name. More...
 

Detailed Description

A class that models the name of a dataset used in a From clause.

See also
FromItem, SubSelect, FromFunctionCall, Join

Definition at line 43 of file DataSetName.h.

Member Typedef Documentation

typedef R te::common::BaseVisitable< QueryVisitor , R >::ReturnType
inherited

Definition at line 58 of file BaseVisitable.h.

Definition at line 57 of file BaseVisitable.h.

Constructor & Destructor Documentation

te::da::DataSetName::DataSetName ( const std::string &  name,
const std::string &  alias = "" 
)

Constructor.

Parameters
nameThe dataset name.
aliasAn alias to the dataset.

Definition at line 29 of file DataSetName.cpp.

te::da::DataSetName::DataSetName ( const DataSetName rhs)

Copy constructor.

Definition at line 35 of file DataSetName.cpp.

te::da::DataSetName::~DataSetName ( )
inline

Destructor.

Definition at line 61 of file DataSetName.h.

Member Function Documentation

virtual ReturnType te::common::BaseVisitable< QueryVisitor , R >::accept ( VisitorType guest) const
pure virtualinherited

It call the visit method from the guest object.

Parameters
guestThe guest or visitor.
Returns
Any valid value define by the template type R.
te::da::FromItem * te::da::DataSetName::clone ( ) const
virtual

It creates a new copy of this FromItem.

Implements te::da::FromItem.

Definition at line 52 of file DataSetName.cpp.

const std::string & te::da::FromItem::getAlias ( ) const
inherited

It returns the alias associated to the source item.

Returns
The alias for 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().

const std::string & te::da::DataSetName::getName ( ) const
te::da::DataSetName & te::da::DataSetName::operator= ( const DataSetName rhs)

Assignment operator.

Definition at line 41 of file DataSetName.cpp.

References m_name, and te::da::FromItem::operator=().

void te::da::FromItem::setAlias ( const std::string &  alias)
inherited

It sets the alias for a from source item.

Parameters
aliasThe alias for a from source item.
Note
The FromItem will take the ownership of the given alias.

Definition at line 42 of file FromItem.cpp.

void te::da::DataSetName::setName ( const std::string &  name)

It sets the dataset name.

Parameters
nameThe dataset name.

Definition at line 62 of file DataSetName.cpp.

Member Data Documentation

std::string te::da::FromItem::m_alias
protectedinherited

An alias for the output name.

Definition at line 93 of file FromItem.h.

Referenced by te::da::FromItem::operator=().

std::string te::da::DataSetName::m_name
private

The dataset name.

Definition at line 85 of file DataSetName.h.

Referenced by operator=().


The documentation for this class was generated from the following files: