/[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.6 by cpcp, Mon Feb 17 21:19:22 2003 UTC revision 1.7 by cpcp, Tue Feb 18 21:43:31 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"
25    #include "GEDCOMParser/IdGenerator.hh"
26    
27    GEDCOMParser::IndividualRecord::IndividualRecord(bool set_id = false)
28    {
29      if (set_id == true)
30        {
31          std::string id = GEDCOMParser::IdGenerator::getId();
32          setId(id);
33        }
34      return;
35    }
36    
37  void GEDCOMParser::IndividualRecord::setId(std::string const & value)  void GEDCOMParser::IndividualRecord::setId(std::string const & value)
38  {  {
39    _id = value;    _id = value;
40      GEDCOMParser::IdGenerator::addUsedId(value);
41    return;    return;
42  }  }
43    

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

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