51 |
return; |
return; |
52 |
} |
} |
53 |
|
|
|
GEDCOMParser::SourceCitation * GEDCOMParser::NoteRecord::addSourceCitation(GEDCOMParser::SourceCitation * const data = 0) |
|
|
{ |
|
|
GEDCOMParser::SourceCitation * tmp_data = data; |
|
|
if (data == 0) |
|
|
{ |
|
|
GEDCOMParser::GEDCOMFactory * factory = GEDCOMParser::GEDCOMFactoryAccessor::getFactory(); |
|
|
tmp_data = factory->createSourceCitation(); |
|
|
} |
|
|
_sources.push_back(SmartPtr<SourceCitation>(tmp_data)); |
|
|
return _sources.back().getPtr(); |
|
|
} |
|
|
|
|
|
GEDCOMParser::UserReference * GEDCOMParser::NoteRecord::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::NoteRecord::setRin(std::string const & value) |
|
|
{ |
|
|
_rin = value; |
|
|
return; |
|
|
} |
|
|
|
|
|
GEDCOMParser::ChangeDate * GEDCOMParser::NoteRecord::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(); |
|
|
} |
|
|
|
|
|
GEDCOMParser::SourceCitations_t const &GEDCOMParser::NoteRecord::getSourceCitations(void) const |
|
|
{ |
|
|
return _sources; |
|
|
} |
|
|
|
|
|
GEDCOMParser::UserReferences_t const &GEDCOMParser::NoteRecord::getUserReferences(void) const |
|
|
{ |
|
|
return _user_references; |
|
|
} |
|
|
|
|
|
SmartPtr<GEDCOMParser::ChangeDate> const & GEDCOMParser::NoteRecord::getChangeDate(void) const |
|
|
{ |
|
|
return _change_date; |
|
|
} |
|
|
|
|
54 |
std::string const &GEDCOMParser::NoteRecord::getId(void) const |
std::string const &GEDCOMParser::NoteRecord::getId(void) const |
55 |
{ |
{ |
56 |
return _note_id; |
return _note_id; |
61 |
return _submitter_text; |
return _submitter_text; |
62 |
} |
} |
63 |
|
|
|
std::string const &GEDCOMParser::NoteRecord::getRin(void) const |
|
|
{ |
|
|
return _rin; |
|
|
} |
|
|
|
|
64 |
void GEDCOMParser::NoteRecord::Accept(GEDCOMParser::GEDCOMVisitor * v) |
void GEDCOMParser::NoteRecord::Accept(GEDCOMParser::GEDCOMVisitor * v) |
65 |
{ |
{ |
66 |
v->VisitNoteRecord(this); |
v->VisitNoteRecord(this); |