| 37 |
return; |
return; |
| 38 |
} |
} |
| 39 |
|
|
|
GEDCOMParser::SourceCitation * GEDCOMParser::Place::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::NoteStructure * GEDCOMParser::Place::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::SourceCitations_t const & GEDCOMParser::Place::getSourceCitations(void) const |
|
|
{ |
|
|
return _citations; |
|
|
} |
|
|
|
|
|
|
|
|
GEDCOMParser::NoteStructures_t const & GEDCOMParser::Place::getNoteStructures(void) const |
|
|
{ |
|
|
return _notes; |
|
|
} |
|
|
|
|
| 40 |
std::string const & GEDCOMParser::Place::getPlaceValue(void) const |
std::string const & GEDCOMParser::Place::getPlaceValue(void) const |
| 41 |
{ |
{ |
| 42 |
return _value; |
return _value; |