| 31 |
return; |
return; |
| 32 |
} |
} |
| 33 |
|
|
|
GEDCOMParser::Event * GEDCOMParser::FamilyEvent::setEvent(GEDCOMParser::Event * data = 0) |
|
|
{ |
|
|
GEDCOMParser::Event * tmp_data = data; |
|
|
if (data == 0) |
|
|
{ |
|
|
GEDCOMParser::GEDCOMFactory * factory = GEDCOMParser::GEDCOMFactoryAccessor::getFactory(); |
|
|
tmp_data = factory->createEvent(); |
|
|
} |
|
|
|
|
|
if (_event.Null()) |
|
|
{ |
|
|
_event = SmartPtr<GEDCOMParser::Event>(tmp_data); |
|
|
} |
|
|
_event->copyLastUpdatedAttr(*tmp_data); |
|
|
return _event.getPtr(); |
|
|
} |
|
|
|
|
| 34 |
void GEDCOMParser::FamilyEvent::setHusbAge(std::string const & value) |
void GEDCOMParser::FamilyEvent::setHusbAge(std::string const & value) |
| 35 |
{ |
{ |
| 36 |
_husb_age = value; |
_husb_age = value; |
| 47 |
return _type; |
return _type; |
| 48 |
} |
} |
| 49 |
|
|
|
SmartPtr<GEDCOMParser::Event> const &GEDCOMParser::FamilyEvent::getEvent(void) const |
|
|
{ |
|
|
return _event; |
|
|
} |
|
|
|
|
| 50 |
std::string const &GEDCOMParser::FamilyEvent::getHusbAge(void) const |
std::string const &GEDCOMParser::FamilyEvent::getHusbAge(void) const |
| 51 |
{ |
{ |
| 52 |
return _husb_age; |
return _husb_age; |