Loading...
Searching...
No Matches
DataSetName.h
Go to the documentation of this file.
1/* Copyright (C) 2008 National Institute For Space Research (INPE) - Brazil.
2
3 This file is part of the TerraLib - a Framework for building GIS enabled applications.
4
5 TerraLib is free software: you can redistribute it and/or modify
6 it under the terms of the GNU Lesser General Public License as published by
7 the Free Software Foundation, either version 3 of the License,
8 or (at your option) any later version.
9
10 TerraLib is distributed in the hope that it will be useful,
11 but WITHOUT ANY WARRANTY; without even the implied warranty of
12 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 GNU Lesser General Public License for more details.
14
15 You should have received a copy of the GNU Lesser General Public License
16 along with TerraLib. See COPYING. If not, write to
17 TerraLib Team at <terralib-team@terralib.org>.
18 */
19
20/*!
21 \file terralib/dataaccess/query/DataSetName.h
22
23 \brief A class that models the name of a dataset used in a From clause.
24*/
25
26#ifndef __TERRALIB_DATAACCESS_INTERNAL_DATASETNAME_H
27#define __TERRALIB_DATAACCESS_INTERNAL_DATASETNAME_H
28
29// TerraLib
30#include "FromItem.h"
31
32namespace te
33{
34 namespace da
35 {
36 /*!
37 \class DataSetName
38
39 \brief A class that models the name of a dataset used in a From clause.
40
41 \sa FromItem, SubSelect, FromFunctionCall, Join
42 */
44 {
45 public:
46
48
49 /*!
50 \brief Constructor.
51
52 \param name The dataset name.
53 \param alias An alias to the dataset.
54 */
55 DataSetName(const std::string& name, const std::string& alias = "");
56
57 /*! \brief Copy constructor. */
59
60 /*! \brief Destructor. */
62
63 /*! Assignment operator. */
65
66 /*! \brief It creates a new copy of this FromItem. */
67 FromItem* clone() const;
68
69 /*!
70 \brief It returns the dataset name.
71
72 \return The dataset name.
73 */
74 const std::string& getName() const;
75
76 /*!
77 \brief It sets the dataset name.
78
79 \param name The dataset name.
80 */
81 void setName(const std::string& name);
82
83 private:
84
85 std::string m_name; //!< The dataset name.
86 };
87
88 } // end namespace da
89} // end namespace te
90
91#endif // __TERRALIB_DATAACCESS_INTERNAL_DATASETNAME_H
92
#define TE_DEFINE_VISITABLE
Definition: BaseVisitable.h:75
An abstract class that models a source of data in a query.
A class that models the name of a dataset used in a From clause.
Definition: DataSetName.h:44
const std::string & getName() const
It returns the dataset name.
DataSetName & operator=(const DataSetName &rhs)
void setName(const std::string &name)
It sets the dataset name.
std::string m_name
The dataset name.
Definition: DataSetName.h:85
~DataSetName()
Destructor.
Definition: DataSetName.h:61
DataSetName(const DataSetName &rhs)
Copy constructor.
FromItem * clone() const
It creates a new copy of this FromItem.
TE_DEFINE_VISITABLE DataSetName(const std::string &name, const std::string &alias="")
Constructor.
An abstract class that models a source of data in a query.
Definition: FromItem.h:51
TerraLib.
#define TEDATAACCESSEXPORT
You can use this macro in order to export/import classes and functions from this module.
Definition: Config.h:97