/[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.4 by cpcp, Sun Jan 26 21:15:21 2003 UTC revision 1.5 by cpcp, Sun Feb 9 19:58:07 2003 UTC
# Line 23  Line 23 
23  #include "GEDCOMParser/personalnameparser_decl.hh"  #include "GEDCOMParser/personalnameparser_decl.hh"
24  #include "GEDCOMParser/Visitor/GEDCOMVisitor.hh"  #include "GEDCOMParser/Visitor/GEDCOMVisitor.hh"
25    
26    #define PERSONALNAME_SEPARATOR "/"
27    
28  void GEDCOMParser::PersonalName::setName(std::string const & value)  void GEDCOMParser::PersonalName::setName(std::string const & value)
29  {  {
30    _raw_name = value;    _raw_name = value;
# Line 42  void GEDCOMParser::PersonalName::setNpfx Line 44  void GEDCOMParser::PersonalName::setNpfx
44  void GEDCOMParser::PersonalName::setGivn(std::string const & value)  void GEDCOMParser::PersonalName::setGivn(std::string const & value)
45  {  {
46    _raw_givn = value;    _raw_givn = value;
47      setName(_raw_givn + PERSONALNAME_SEPARATOR + _surn + PERSONALNAME_SEPARATOR);
48    return;    return;
49  }  }
50    
# Line 60  void GEDCOMParser::PersonalName::setSpfx Line 63  void GEDCOMParser::PersonalName::setSpfx
63  void GEDCOMParser::PersonalName::setSurn(std::string const & value)  void GEDCOMParser::PersonalName::setSurn(std::string const & value)
64  {  {
65    _raw_surn = value;    _raw_surn = value;
66      setName(_givn + PERSONALNAME_SEPARATOR + _raw_surn  + PERSONALNAME_SEPARATOR);
67    return;    return;
68  }  }
69    

Legend:
Removed from v.1.4  
changed lines
  Added in v.1.5

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