63 |
return; |
return; |
64 |
} |
} |
65 |
|
|
|
void GEDCOMParser::MultimediaRecord::setRin(std::string const & data) |
|
|
{ |
|
|
_rin = data; |
|
|
return; |
|
|
} |
|
|
|
|
|
GEDCOMParser::NoteStructure * GEDCOMParser::MultimediaRecord::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::MultimediaRecord::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(); |
|
|
} |
|
|
|
|
|
GEDCOMParser::ChangeDate * GEDCOMParser::MultimediaRecord::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::NoteStructures_t const &GEDCOMParser::MultimediaRecord::getNoteStructures(void) const |
|
|
{ |
|
|
return _notes; |
|
|
} |
|
|
|
|
|
|
|
|
GEDCOMParser::UserReferences_t const &GEDCOMParser::MultimediaRecord::getUserReferences(void) const |
|
|
{ |
|
|
return _user_references; |
|
|
} |
|
|
|
|
|
SmartPtr<GEDCOMParser::ChangeDate> const & GEDCOMParser::MultimediaRecord::getChangeDate(void) const |
|
|
{ |
|
|
return _change_date; |
|
|
} |
|
|
|
|
66 |
std::string const &GEDCOMParser::MultimediaRecord::getId(void) const |
std::string const &GEDCOMParser::MultimediaRecord::getId(void) const |
67 |
{ |
{ |
68 |
return _obje_id; |
return _obje_id; |
88 |
return _obje_xref; |
return _obje_xref; |
89 |
} |
} |
90 |
|
|
|
std::string const &GEDCOMParser::MultimediaRecord::getRin(void) const |
|
|
{ |
|
|
return _rin; |
|
|
} |
|
|
|
|
91 |
void GEDCOMParser::MultimediaRecord::Accept(GEDCOMParser::GEDCOMVisitor * v) |
void GEDCOMParser::MultimediaRecord::Accept(GEDCOMParser::GEDCOMVisitor * v) |
92 |
{ |
{ |
93 |
v->VisitMultimediaRecord(this); |
v->VisitMultimediaRecord(this); |