/[ghosts]/ghosts/gedcomparser/src/GEDCOMParser/PersonalName.cpp
ViewVC logotype

Diff of /ghosts/gedcomparser/src/GEDCOMParser/PersonalName.cpp

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.2 by cpcp, Mon Sep 23 13:36:56 2002 UTC revision 1.3 by cpcp, Tue Nov 12 21:25:21 2002 UTC
# Line 20  Line 20 
20    
21  */  */
22  #include "PersonalName.hh"  #include "PersonalName.hh"
23    #include "GEDCOMParser/personalnameparser_decl.hh"
24    
25  void GEDCOMParser::PersonalName::setName(std::string const & value)  void GEDCOMParser::PersonalName::setName(std::string const & value)
26  {  {
27    _name = value;    _raw_name = value;
28      personalname_runparse(value);
29      _givn = get_given_name();
30      _surn = get_surname();
31      _name = _givn + " " + _surn;
32    return;    return;
33  }  }
34    
# Line 35  void GEDCOMParser::PersonalName::setNpfx Line 40  void GEDCOMParser::PersonalName::setNpfx
40    
41  void GEDCOMParser::PersonalName::setGivn(std::string const & value)  void GEDCOMParser::PersonalName::setGivn(std::string const & value)
42  {  {
43    _givn = value;    _raw_givn = value;
44    return;    return;
45  }  }
46    
# Line 53  void GEDCOMParser::PersonalName::setSpfx Line 58  void GEDCOMParser::PersonalName::setSpfx
58    
59  void GEDCOMParser::PersonalName::setSurn(std::string const & value)  void GEDCOMParser::PersonalName::setSurn(std::string const & value)
60  {  {
61    _surn = value;    _raw_surn = value;
62    return;    return;
63  }  }
64    
# Line 86  GEDCOMParser::NoteStructures_t const & G Line 91  GEDCOMParser::NoteStructures_t const & G
91    return _notes;    return _notes;
92  }  }
93    
94    std::string const &GEDCOMParser::PersonalName::getName(void) const
   
 std::string const & GEDCOMParser::PersonalName::getName(void) const  
95  {  {
96    return _name;    return _name;
97  }  }
98    
99    std::string const & GEDCOMParser::PersonalName::getRawName(void) const
100    {
101      return _raw_name;
102    }
103    
104  std::string const & GEDCOMParser::PersonalName::getNpfx(void) const  std::string const & GEDCOMParser::PersonalName::getNpfx(void) const
105  {  {
106    return _npfx;    return _npfx;
# Line 103  std::string const & GEDCOMParser::Person Line 111  std::string const & GEDCOMParser::Person
111    return _givn;    return _givn;
112  }  }
113    
114    std::string const & GEDCOMParser::PersonalName::getRawGivn(void) const
115    {
116      return _raw_givn;
117    }
118    
119    
120  std::string const & GEDCOMParser::PersonalName::getNick(void) const  std::string const & GEDCOMParser::PersonalName::getNick(void) const
121  {  {
122    return _nick;    return _nick;
# Line 118  std::string const & GEDCOMParser::Person Line 132  std::string const & GEDCOMParser::Person
132    return _surn;    return _surn;
133  }  }
134    
135    std::string const & GEDCOMParser::PersonalName::getRawSurn(void) const
136    {
137      return _raw_surn;
138    }
139    
140  std::string const & GEDCOMParser::PersonalName::getNsfx(void) const  std::string const & GEDCOMParser::PersonalName::getNsfx(void) const
141  {  {
142    return _nsfx;    return _nsfx;
# Line 125  std::string const & GEDCOMParser::Person Line 144  std::string const & GEDCOMParser::Person
144    
145    
146    
   

Legend:
Removed from v.1.2  
changed lines
  Added in v.1.3

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26