CI_ResponsibleParty.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 // TerraLib
21 #include "CI_ResponsibleParty.h"
22 
23 // STL
24 #include <cassert>
25 
27  const std::string& orgname,
28  const std::string& posname,
29  CI_RoleCode code):
30  m_individualName(indname),
31  m_organizationName(orgname),
32  m_positionName(posname),
33  m_roleCode(code)
34 {}
35 
37 
39 {
41  return nrp;
42 }
43 
44 void
46 {
47  assert(!name.empty());
48 
49  m_individualName = name;
50 }
51 
52 const std::string&
54 {
55  return m_individualName;
56 }
57 
58 void
60 {
61  assert(!name.empty());
62 
63  m_organizationName = name;
64 }
65 
66 const std::string&
68 {
69  return m_organizationName;
70 }
71 
72 void
74 {
75  assert(!name.empty());
76 
77  m_positionName = name;
78 }
79 
80 const std::string&
82 {
83  return m_positionName;
84 }
85 
88 {
89  return m_roleCode;
90 }
void setPositionName(const std::string &name)
Sets the position name.
const std::string & getOrganizationName() const
Returns the individual name.
CI_ResponsibleParty * clone() const
std::string m_individualName
Name of the responsible individual.
void setIndividualName(const std::string &name)
Set the individual name.
~CI_ResponsibleParty()
Destructor.
const std::string & getPositionName() const
Returns the position name.
const std::string & getIndividualName() const
Returns the individual name.
CI_RoleCode getRoleCode() const
Returns the responsible party role.
std::string m_organizationName
Name of the responsible organisation.
CI_ResponsibleParty(const std::string &indname=std::string(""), const std::string &orgname=std::string(""), const std::string &posname=std::string(""), CI_RoleCode code=CI_resourceProvider)
Constructor.
std::string m_positionName
Position of the responsible person.
CI_RoleCode
Function performed by the responsible party.
Definition: CodeList.h:56
CI_RoleCode m_roleCode
Function performed by the responsible party.
void setOrganizationName(const std::string &name)
Sets the organization name.
Contains the identify of person(s), and/or position, and/or organization(s) associated with the resou...