/[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.1.2.1 by cpcp, Sun Aug 18 19:49:21 2002 UTC revision 1.1.2.2 by cpcp, Wed Oct 16 17:33:11 2002 UTC
# Line 20  Line 20 
20    
21  */  */
22  #include "PersonalName.hh"  #include "PersonalName.hh"
23    #include "GEDCOMParser/personalnameparser_decl.hh"
24    #include "GEDCOMParser/personalnameparser.h"
25    #include <iostream>
26    
27  void GEDCOMParser::PersonalName::setName(std::string const & value)  void GEDCOMParser::PersonalName::setName(std::string const & value)
28  {  {
29    _name = value;    _name = value;
30      personalname_runparse(value);
31      _givn = get_given_name();
32      _surn = get_surname();
33      std::cerr << "GIVEN NAME : " << getGivn() << std::endl;
34      std::cerr << "SURNAME : " << getSurn() << std::endl;
35    return;    return;
36  }  }
37    
# Line 35  void GEDCOMParser::PersonalName::setNpfx Line 43  void GEDCOMParser::PersonalName::setNpfx
43    
44  void GEDCOMParser::PersonalName::setGivn(std::string const & value)  void GEDCOMParser::PersonalName::setGivn(std::string const & value)
45  {  {
46    _givn = value;    _raw_givn = value;
47    return;    return;
48  }  }
49    
# Line 53  void GEDCOMParser::PersonalName::setSpfx Line 61  void GEDCOMParser::PersonalName::setSpfx
61    
62  void GEDCOMParser::PersonalName::setSurn(std::string const & value)  void GEDCOMParser::PersonalName::setSurn(std::string const & value)
63  {  {
64    _surn = value;    _raw_surn = value;
65    return;    return;
66  }  }
67    
# 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.1.2.1  
changed lines
  Added in v.1.1.2.2

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