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 const
39 std::string& te::md::CI_Citation::getTitle() const
40 {
41  return m_title;
42 }
43 
44 const
45 boost::gregorian::date& te::md::CI_Citation::getDate() const
46 {
47  return m_date;
48 }
49 
52 {
53  return m_dateType;
54 }
55 
57 {
59 }
const boost::gregorian::date & getDate() const
Returns the citation date.
Definition: CI_Citation.cpp:45
CI_DateTypeCode m_dateType
Identification of the event used for the temporal aspects in the resource.
Definition: CI_Citation.h:92
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:39
CI_DateTypeCode
Identification of when a given event occurred.
Definition: CodeList.h:44
To support the bibliographic information to reference the resource.
boost::gregorian::date m_date
Reference date for the cited resource.
Definition: CI_Citation.h:91
CI_DateTypeCode getDateType() const
Returns the citation date type.
Definition: CI_Citation.cpp:51
CI_Citation * clone() const
Creates a new copy of this object.
Definition: CI_Citation.cpp:56
CI_Citation(const std::string &title, boost::gregorian::date date, CI_DateTypeCode dateype)
Definition: CI_Citation.cpp:30
std::string m_title
Name by which the cited resource is known.
Definition: CI_Citation.h:90