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

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

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

revision 1.7 by cpcp, Tue Feb 18 21:43:31 2003 UTC revision 1.8 by cpcp, Wed Feb 19 21:13:05 2003 UTC
# Line 22  Line 22 
22  #include "IndividualRecord.hh"  #include "IndividualRecord.hh"
23  #include "patterns/SmartPtr.hh"  #include "patterns/SmartPtr.hh"
24  #include "GEDCOMParser/Visitor/GEDCOMVisitor.hh"  #include "GEDCOMParser/Visitor/GEDCOMVisitor.hh"
 #include "GEDCOMParser/IdGenerator.hh"  
25    
26  GEDCOMParser::IndividualRecord::IndividualRecord(bool set_id = false)  GEDCOMParser::IndividualRecord::IndividualRecord(std::string const &id = "")
27  {  {
28    if (set_id == true)    if (id != "")
29      {      {
       std::string id = GEDCOMParser::IdGenerator::getId();  
30        setId(id);        setId(id);
31      }      }
32    return;    return;
# Line 37  GEDCOMParser::IndividualRecord::Individu Line 35  GEDCOMParser::IndividualRecord::Individu
35  void GEDCOMParser::IndividualRecord::setId(std::string const & value)  void GEDCOMParser::IndividualRecord::setId(std::string const & value)
36  {  {
37    _id = value;    _id = value;
   GEDCOMParser::IdGenerator::addUsedId(value);  
38    return;    return;
39  }  }
40    

Legend:
Removed from v.1.7  
changed lines
  Added in v.1.8

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