| 47 |
return; |
return; |
| 48 |
} |
} |
| 49 |
|
|
|
GEDCOMParser::Address * GEDCOMParser::RepositoryRecord::setAddress(GEDCOMParser::Address * const data = 0) |
|
|
{ |
|
|
GEDCOMParser::Address * tmp_data = data; |
|
|
if (data == 0) |
|
|
{ |
|
|
GEDCOMParser::GEDCOMFactory * factory = GEDCOMParser::GEDCOMFactoryAccessor::getFactory(); |
|
|
tmp_data = factory->createAddress(); |
|
|
} |
|
|
_address = SmartPtr<Address>(tmp_data); |
|
|
return _address.getPtr(); |
|
|
} |
|
|
|
|
|
GEDCOMParser::NoteStructure * GEDCOMParser::RepositoryRecord::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::RepositoryRecord::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::RepositoryRecord::setRin(std::string const &value) |
|
|
{ |
|
|
_rin = value; |
|
|
return; |
|
|
} |
|
|
|
|
|
GEDCOMParser::ChangeDate * GEDCOMParser::RepositoryRecord::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(); |
|
|
} |
|
|
|
|
|
SmartPtr<GEDCOMParser::Address> const & GEDCOMParser::RepositoryRecord::getAddress(void) const |
|
|
{ |
|
|
return _address; |
|
|
} |
|
|
|
|
|
GEDCOMParser::NoteStructures_t const &GEDCOMParser::RepositoryRecord::getNoteStructures(void) const |
|
|
{ |
|
|
return _notes; |
|
|
} |
|
|
|
|
|
GEDCOMParser::UserReferences_t const &GEDCOMParser::RepositoryRecord::getUserReferences(void) const |
|
|
{ |
|
|
return _user_references; |
|
|
} |
|
|
|
|
|
SmartPtr<GEDCOMParser::ChangeDate> const & GEDCOMParser::RepositoryRecord::getChangeDate(void) const |
|
|
{ |
|
|
return _change_date; |
|
|
} |
|
|
|
|
|
|
|
| 50 |
std::string const & GEDCOMParser::RepositoryRecord::getId(void) const |
std::string const & GEDCOMParser::RepositoryRecord::getId(void) const |
| 51 |
{ |
{ |
| 52 |
return _id; |
return _id; |
| 57 |
return _name; |
return _name; |
| 58 |
} |
} |
| 59 |
|
|
|
std::string const & GEDCOMParser::RepositoryRecord::getRin(void) const |
|
|
{ |
|
|
return _rin; |
|
|
} |
|
|
|
|
| 60 |
void GEDCOMParser::RepositoryRecord::Accept(GEDCOMParser::GEDCOMVisitor * v) |
void GEDCOMParser::RepositoryRecord::Accept(GEDCOMParser::GEDCOMVisitor * v) |
| 61 |
{ |
{ |
| 62 |
v->VisitRepositoryRecord(this); |
v->VisitRepositoryRecord(this); |