All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
Description.cpp
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/se/Description.cpp
22 
23  \brief A Description gives human-readable descriptive information for the object it is included within.
24 */
25 
26 // TerraLib
27 #include "Description.h"
28 
30 {
31 }
32 
34 {
35 }
36 
37 void te::se::Description::setTitle(const std::string& title)
38 {
39  m_title = title;
40 }
41 
42 const std::string& te::se::Description::getTitle() const
43 {
44  return m_title;
45 }
46 
47 void te::se::Description::setAbstract(const std::string& a)
48 {
49  m_abstract = a;
50 }
51 
52 const std::string& te::se::Description::getAbstract() const
53 {
54  return m_abstract;
55 }
56 
58 {
59  Description* d = new Description;
60  d->setTitle(m_title);
61  d->setAbstract(m_abstract);
62 
63  return d;
64 }
A Description gives human-readable descriptive information for the object it is included within...
Definition: Description.h:56
~Description()
Destructor.
Definition: Description.cpp:33
void setAbstract(const std::string &a)
Definition: Description.cpp:47
const std::string & getTitle() const
Definition: Description.cpp:42
const std::string & getAbstract() const
Definition: Description.cpp:52
A Description gives human-readable descriptive information for the object it is included within...
Description * clone() const
It creates a new copy of this object.
Definition: Description.cpp:57
void setTitle(const std::string &title)
Definition: Description.cpp:37
Description()
It initializes a new Description.
Definition: Description.cpp:29