All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
CI_Citation.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 CI_Citation.cpp
22 */
23 
24 // TerraLib
25 #include "CI_Citation.h"
26 
27 // STL
28 #include <cassert>
29 
30 te::md::CI_Citation::CI_Citation(const std::string& title, boost::gregorian::date date, CI_DateTypeCode dType):
31  m_title(title),
32  m_date(date),
33  m_dateType(dType)
34 {}
35 
37 {}
38 
39 const
40 std::string& te::md::CI_Citation::getTitle() const
41 {
42  return m_title;
43 }
44 
45 const
46 boost::gregorian::date& te::md::CI_Citation::getDate() const
47 {
48  return m_date;
49 }
50 
53 {
54  return m_dateType;
55 }
56 
58 {
59  return new te::md::CI_Citation(m_title, m_date, m_dateType);
60 }
const boost::gregorian::date & getDate() const
Returns the citation date.
Definition: CI_Citation.cpp:46
Provides a standardized method for citing a resource (dataset, feature, source, publication, etc.)
Definition: CI_Citation.h:53
const std::string & getTitle() const
Returns the citation title.
Definition: CI_Citation.cpp:40
CI_DateTypeCode
Identification of when a given event occurred.
Definition: CodeList.h:44
To support the bibliographic information to reference the resource.
CI_DateTypeCode getDateType() const
Returns the citation date type.
Definition: CI_Citation.cpp:52
CI_Citation * clone() const
Creates a new copy of this object.
Definition: CI_Citation.cpp:57
CI_Citation(const std::string &title, boost::gregorian::date date, CI_DateTypeCode dateype)
Definition: CI_Citation.cpp:30