45 |
return; |
return; |
46 |
} |
} |
47 |
|
|
|
GEDCOMParser::Address * GEDCOMParser::SubmitterRecord::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::MultimediaLink * GEDCOMParser::SubmitterRecord::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(); |
|
|
} |
|
|
|
|
48 |
void GEDCOMParser::SubmitterRecord::addLanguagePref(std::string const &lang) |
void GEDCOMParser::SubmitterRecord::addLanguagePref(std::string const &lang) |
49 |
{ |
{ |
50 |
_language_preferences.push_back(lang); |
_language_preferences.push_back(lang); |
57 |
return; |
return; |
58 |
} |
} |
59 |
|
|
|
void GEDCOMParser::SubmitterRecord::setRin(std::string const & value) |
|
|
{ |
|
|
_rin = value; |
|
|
return; |
|
|
} |
|
|
|
|
|
GEDCOMParser::ChangeDate * GEDCOMParser::SubmitterRecord::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::MultimediaLinks_t const &GEDCOMParser::SubmitterRecord::getMultimediaLinks(void) const |
|
|
{ |
|
|
return _mm_links; |
|
|
} |
|
|
|
|
60 |
GEDCOMParser::SubmitterRecord::LanguagePreferences_t const &GEDCOMParser::SubmitterRecord::getLanguagePreferences(void) const |
GEDCOMParser::SubmitterRecord::LanguagePreferences_t const &GEDCOMParser::SubmitterRecord::getLanguagePreferences(void) const |
61 |
{ |
{ |
62 |
return _language_preferences; |
return _language_preferences; |
63 |
} |
} |
64 |
|
|
|
SmartPtr<GEDCOMParser::Address> const & GEDCOMParser::SubmitterRecord::getAddress(void) const |
|
|
{ |
|
|
return _address; |
|
|
} |
|
|
|
|
|
SmartPtr<GEDCOMParser::ChangeDate> const & GEDCOMParser::SubmitterRecord::getChangeDate(void) const |
|
|
{ |
|
|
return _change_date; |
|
|
} |
|
|
|
|
65 |
std::string const & GEDCOMParser::SubmitterRecord::getId(void) const |
std::string const & GEDCOMParser::SubmitterRecord::getId(void) const |
66 |
{ |
{ |
67 |
return _id; |
return _id; |
79 |
|
|
80 |
} |
} |
81 |
|
|
|
std::string const &GEDCOMParser::SubmitterRecord::getRin(void) const |
|
|
{ |
|
|
return _rin; |
|
|
} |
|
|
|
|
82 |
void GEDCOMParser::SubmitterRecord::Accept(GEDCOMParser::GEDCOMVisitor * v) |
void GEDCOMParser::SubmitterRecord::Accept(GEDCOMParser::GEDCOMVisitor * v) |
83 |
{ |
{ |
84 |
v->VisitSubmitterRecord(this); |
v->VisitSubmitterRecord(this); |