| 165 |
return _lds_spouse_sealings.back().getPtr(); |
return _lds_spouse_sealings.back().getPtr(); |
| 166 |
} |
} |
| 167 |
|
|
|
GEDCOMParser::SourceCitation * GEDCOMParser::FamilyRecord::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::FamilyRecord::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::FamilyRecord::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(); |
|
|
} |
|
|
|
|
|
GEDCOMParser::UserReference * GEDCOMParser::FamilyRecord::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::FamilyRecord::setRin(std::string const & value) |
|
|
{ |
|
|
_rin = value; |
|
|
return; |
|
|
} |
|
|
|
|
|
GEDCOMParser::ChangeDate * GEDCOMParser::FamilyRecord::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(); |
|
|
} |
|
|
|
|
| 168 |
GEDCOMParser::FamilyRecord::~FamilyRecord(void) |
GEDCOMParser::FamilyRecord::~FamilyRecord(void) |
| 169 |
{ |
{ |
| 170 |
} |
} |
| 184 |
return _lds_spouse_sealings; |
return _lds_spouse_sealings; |
| 185 |
} |
} |
| 186 |
|
|
|
GEDCOMParser::SourceCitations_t const &GEDCOMParser::FamilyRecord::getSourceCitations(void) const |
|
|
{ |
|
|
return _citations; |
|
|
} |
|
|
|
|
|
GEDCOMParser::MultimediaLinks_t const & GEDCOMParser::FamilyRecord::getMultimediaLinks(void) const |
|
|
{ |
|
|
return _mm_links; |
|
|
} |
|
|
|
|
|
GEDCOMParser::NoteStructures_t const & GEDCOMParser::FamilyRecord::getNoteStructures(void) const |
|
|
{ |
|
|
return _notes; |
|
|
} |
|
|
|
|
|
GEDCOMParser::UserReferences_t const & GEDCOMParser::FamilyRecord::getUserReferences(void) const |
|
|
{ |
|
|
return _user_references; |
|
|
} |
|
|
|
|
|
|
|
|
SmartPtr<GEDCOMParser::ChangeDate> const & GEDCOMParser::FamilyRecord::getChangeDate(void) const |
|
|
{ |
|
|
return _change_date; |
|
|
} |
|
|
|
|
| 187 |
std::string const &GEDCOMParser::FamilyRecord::getId(void) const |
std::string const &GEDCOMParser::FamilyRecord::getId(void) const |
| 188 |
{ |
{ |
| 189 |
return _id; |
return _id; |
| 209 |
return _subm; |
return _subm; |
| 210 |
} |
} |
| 211 |
|
|
|
std::string const &GEDCOMParser::FamilyRecord::getRin(void) const |
|
|
{ |
|
|
return _rin; |
|
|
} |
|
|
|
|
| 212 |
void GEDCOMParser::FamilyRecord::Accept(GEDCOMParser::GEDCOMVisitor * v) |
void GEDCOMParser::FamilyRecord::Accept(GEDCOMParser::GEDCOMVisitor * v) |
| 213 |
{ |
{ |
| 214 |
v->VisitFamilyRecord(this); |
v->VisitFamilyRecord(this); |