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 
32 
33 void te::se::Description::setTitle(const std::string& title)
34 {
35  m_title = title;
36 }
37 
38 const std::string& te::se::Description::getTitle() const
39 {
40  return m_title;
41 }
42 
43 void te::se::Description::setAbstract(const std::string& a)
44 {
45  m_abstract = a;
46 }
47 
48 const std::string& te::se::Description::getAbstract() const
49 {
50  return m_abstract;
51 }
52 
54 {
55  Description* d = new Description;
56  d->setTitle(m_title);
58 
59  return d;
60 }
A Description gives human-readable descriptive information for the object it is included within...
Definition: Description.h:56
~Description()
Destructor.
void setAbstract(const std::string &a)
Definition: Description.cpp:43
const std::string & getTitle() const
Definition: Description.cpp:38
const std::string & getAbstract() const
Definition: Description.cpp:48
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:53
static te::dt::DateTime d(2010, 8, 9, 15, 58, 39)
void setTitle(const std::string &title)
Definition: Description.cpp:33
Description()
It initializes a new Description.
std::string m_abstract
Abstract. (Optional)
Definition: Description.h:94
std::string m_title
Title. (Optional)
Definition: Description.h:93