| 187 |
return; |
return; |
| 188 |
} |
} |
| 189 |
|
|
|
GEDCOMParser::SourceCitation * GEDCOMParser::IndividualRecord::addSourceCitation(GEDCOMParser::SourceCitation * const data = 0) |
|
|
{ |
|
|
GEDCOMParser::SourceCitation * tmp_data = data; |
|
|
if (data == 0) |
|
|
{ |
|
|
GEDCOMParser::GEDCOMFactory * factory = GEDCOMParser::GEDCOMFactoryAccessor::getFactory(); |
|
|
tmp_data = factory->createSourceCitation(); |
|
|
} |
|
|
_citations.push_back(SmartPtr<SourceCitation>(tmp_data)); |
|
|
return _citations.back().getPtr(); |
|
|
} |
|
|
|
|
|
GEDCOMParser::MultimediaLink * GEDCOMParser::IndividualRecord::addMultimediaLink(GEDCOMParser::MultimediaLink * const data = 0) |
|
|
{ |
|
|
GEDCOMParser::MultimediaLink * tmp_data = data; |
|
|
if (data == 0) |
|
|
{ |
|
|
GEDCOMParser::GEDCOMFactory * factory = GEDCOMParser::GEDCOMFactoryAccessor::getFactory(); |
|
|
tmp_data = factory->createMultimediaLink(); |
|
|
} |
|
|
_mm_links.push_back(SmartPtr<MultimediaLink>(tmp_data)); |
|
|
return _mm_links.back().getPtr(); |
|
|
} |
|
|
|
|
|
GEDCOMParser::NoteStructure * GEDCOMParser::IndividualRecord::addNoteStructure(GEDCOMParser::NoteStructure * const data = 0) |
|
|
{ |
|
|
GEDCOMParser::NoteStructure * tmp_data = data; |
|
|
if (data == 0) |
|
|
{ |
|
|
GEDCOMParser::GEDCOMFactory * factory = GEDCOMParser::GEDCOMFactoryAccessor::getFactory(); |
|
|
tmp_data = factory->createNoteStructure(); |
|
|
} |
|
|
_notes.push_back(SmartPtr<NoteStructure>(tmp_data)); |
|
|
return _notes.back().getPtr(); |
|
|
} |
|
|
|
|
| 190 |
void GEDCOMParser::IndividualRecord::setRfn(std::string const & value) |
void GEDCOMParser::IndividualRecord::setRfn(std::string const & value) |
| 191 |
{ |
{ |
| 192 |
_rfn = value; |
_rfn = value; |
| 199 |
return; |
return; |
| 200 |
} |
} |
| 201 |
|
|
|
GEDCOMParser::UserReference * GEDCOMParser::IndividualRecord::addUserReference(GEDCOMParser::UserReference * const data = 0) |
|
|
{ |
|
|
GEDCOMParser::UserReference * tmp_data = data; |
|
|
if (data == 0) |
|
|
{ |
|
|
GEDCOMParser::GEDCOMFactory * factory = GEDCOMParser::GEDCOMFactoryAccessor::getFactory(); |
|
|
tmp_data = factory->createUserReference(); |
|
|
} |
|
|
_user_references.push_back(SmartPtr<UserReference>(tmp_data)); |
|
|
return _user_references.back().getPtr(); |
|
|
} |
|
|
|
|
|
void GEDCOMParser::IndividualRecord::setRin(std::string const & value) |
|
|
{ |
|
|
_rin = value; |
|
|
return; |
|
|
} |
|
|
|
|
|
GEDCOMParser::ChangeDate * GEDCOMParser::IndividualRecord::setChangeDate(GEDCOMParser::ChangeDate * const data = 0) |
|
|
{ |
|
|
GEDCOMParser::ChangeDate * tmp_data = data; |
|
|
if (data == 0) |
|
|
{ |
|
|
GEDCOMParser::GEDCOMFactory * factory = GEDCOMParser::GEDCOMFactoryAccessor::getFactory(); |
|
|
tmp_data = factory->createChangeDate(); |
|
|
} |
|
|
_change_date = SmartPtr<ChangeDate>(tmp_data); |
|
|
return _change_date.getPtr(); |
|
|
} |
|
|
|
|
| 202 |
GEDCOMParser::IndividualRecord::~IndividualRecord (void) |
GEDCOMParser::IndividualRecord::~IndividualRecord (void) |
| 203 |
{ |
{ |
| 204 |
} |
} |
| 283 |
return _associations; |
return _associations; |
| 284 |
} |
} |
| 285 |
|
|
|
GEDCOMParser::SourceCitations_t const &GEDCOMParser::IndividualRecord::getSourceCitations(void) const |
|
|
{ |
|
|
return _citations; |
|
|
} |
|
|
|
|
|
GEDCOMParser::MultimediaLinks_t const & GEDCOMParser::IndividualRecord::getMultimediaLinks(void) const |
|
|
{ |
|
|
return _mm_links; |
|
|
} |
|
|
|
|
|
GEDCOMParser::NoteStructures_t const & GEDCOMParser::IndividualRecord::getNoteStructures(void) const |
|
|
{ |
|
|
return _notes; |
|
|
} |
|
|
|
|
|
GEDCOMParser::UserReferences_t const & GEDCOMParser::IndividualRecord::getUserReferences(void) const |
|
|
{ |
|
|
return _user_references; |
|
|
} |
|
|
|
|
|
SmartPtr<GEDCOMParser::ChangeDate> const & GEDCOMParser::IndividualRecord::getChangeDate(void) const |
|
|
{ |
|
|
return _change_date; |
|
|
} |
|
|
|
|
|
|
|
| 286 |
std::string const &GEDCOMParser::IndividualRecord::getId(void) const |
std::string const &GEDCOMParser::IndividualRecord::getId(void) const |
| 287 |
{ |
{ |
| 288 |
return _id; |
return _id; |
| 310 |
return _afn; |
return _afn; |
| 311 |
} |
} |
| 312 |
|
|
|
std::string const &GEDCOMParser::IndividualRecord::getRin(void) const |
|
|
{ |
|
|
return _rin; |
|
|
} |
|
|
|
|
| 313 |
void GEDCOMParser::IndividualRecord::Accept(GEDCOMParser::GEDCOMVisitor * v) |
void GEDCOMParser::IndividualRecord::Accept(GEDCOMParser::GEDCOMVisitor * v) |
| 314 |
{ |
{ |
| 315 |
v->VisitIndividualRecord(this); |
v->VisitIndividualRecord(this); |