| 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 |
|
|