42 |
return; |
return; |
43 |
} |
} |
44 |
|
|
|
GEDCOMParser::NoteStructure * GEDCOMParser::Association::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::SourceCitation * GEDCOMParser::Association::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(); |
|
|
} |
|
|
|
|
45 |
GEDCOMParser::IndiXrefs_t const &GEDCOMParser::Association::getIndiXrefs(void) const |
GEDCOMParser::IndiXrefs_t const &GEDCOMParser::Association::getIndiXrefs(void) const |
46 |
{ |
{ |
47 |
return _indi_xrefs; |
return _indi_xrefs; |
48 |
} |
} |
49 |
|
|
|
GEDCOMParser::NoteStructures_t const &GEDCOMParser::Association::getNoteStructures(void) const |
|
|
{ |
|
|
return _notes; |
|
|
} |
|
|
|
|
|
GEDCOMParser::SourceCitations_t const &GEDCOMParser::Association::getSourceCitations(void) const |
|
|
{ |
|
|
return _citations; |
|
|
} |
|
|
|
|
50 |
std::string const &GEDCOMParser::Association::getType(void) const |
std::string const &GEDCOMParser::Association::getType(void) const |
51 |
{ |
{ |
52 |
return _type; |
return _type; |