71 |
return; |
return; |
72 |
} |
} |
73 |
|
|
|
GEDCOMParser::NoteStructure * GEDCOMParser::SourceRecord::Data::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::NoteStructures_t const &GEDCOMParser::SourceRecord::Data::getNoteStructures(void) const |
|
|
{ |
|
|
return _notes; |
|
|
} |
|
|
|
|
74 |
GEDCOMParser::SourceRecord::SourceRecord(std::string const &id = "") |
GEDCOMParser::SourceRecord::SourceRecord(std::string const &id = "") |
75 |
{ |
{ |
76 |
if (id != "") |
if (id != "") |
166 |
return _src_rep_citation.getPtr(); |
return _src_rep_citation.getPtr(); |
167 |
} |
} |
168 |
|
|
|
GEDCOMParser::MultimediaLink * GEDCOMParser::SourceRecord::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::SourceRecord::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::SourceRecord::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(); |
|
|
} |
|
|
|
|
169 |
void GEDCOMParser::SourceRecord::setRin(std::string const &value) |
void GEDCOMParser::SourceRecord::setRin(std::string const &value) |
170 |
{ |
{ |
171 |
_rin = value; |
_rin = value; |
172 |
return; |
return; |
173 |
} |
} |
174 |
|
|
|
GEDCOMParser::ChangeDate * GEDCOMParser::SourceRecord::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(); |
|
|
} |
|
|
|
|
175 |
GEDCOMParser::SourceRecord::~SourceRecord(void) |
GEDCOMParser::SourceRecord::~SourceRecord(void) |
176 |
{ |
{ |
177 |
} |
} |
186 |
return _src_rep_citation; |
return _src_rep_citation; |
187 |
} |
} |
188 |
|
|
|
GEDCOMParser::MultimediaLinks_t const &GEDCOMParser::SourceRecord::getMultimediaLinks(void) const |
|
|
{ |
|
|
return _mm_links; |
|
|
} |
|
|
|
|
|
GEDCOMParser::NoteStructures_t const &GEDCOMParser::SourceRecord::getNoteStructures(void) const |
|
|
{ |
|
|
return _notes; |
|
|
} |
|
|
|
|
|
GEDCOMParser::UserReferences_t const &GEDCOMParser::SourceRecord::getUserReferences(void) const |
|
|
{ |
|
|
return _user_references; |
|
|
} |
|
|
|
|
|
SmartPtr<GEDCOMParser::ChangeDate> const & GEDCOMParser::SourceRecord::getChangeDate(void) const |
|
|
{ |
|
|
return _change_date; |
|
|
} |
|
|
|
|
189 |
std::string const & GEDCOMParser::SourceRecord::Data::Event::getEvent(void) const |
std::string const & GEDCOMParser::SourceRecord::Data::Event::getEvent(void) const |
190 |
{ |
{ |
191 |
return _event; |
return _event; |