All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
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 {
38 }
39 
41 {
42  te::md::CI_ResponsibleParty* nrp = new te::md::CI_ResponsibleParty(m_individualName,m_organizationName, m_positionName, m_roleCode);
43  return nrp;
44 }
45 
46 void
48 {
49  assert(!name.empty());
50 
51  m_individualName = name;
52 }
53 
54 const std::string&
56 {
57  return m_individualName;
58 }
59 
60 void
62 {
63  assert(!name.empty());
64 
65  m_organizationName = name;
66 }
67 
68 const std::string&
70 {
71  return m_organizationName;
72 }
73 
74 void
76 {
77  assert(!name.empty());
78 
79  m_positionName = name;
80 }
81 
82 const std::string&
84 {
85  return m_positionName;
86 }
87 
90 {
91  return m_roleCode;
92 }
void setPositionName(const std::string &name)
Sets the position name.
const std::string & getOrganizationName() const
Returns the individual name.
CI_ResponsibleParty * clone() const
void setIndividualName(const std::string &name)
Set the individual name.
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.
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.
CI_RoleCode
Function performed by the responsible party.
Definition: CodeList.h:56
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...