| 39 |
return; |
return; |
| 40 |
} |
} |
| 41 |
|
|
|
GEDCOMParser::Event * GEDCOMParser::IndividualEvent::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(); |
|
|
} |
|
|
|
|
| 42 |
void GEDCOMParser::IndividualEvent::setFamcXref(std::string const & value) |
void GEDCOMParser::IndividualEvent::setFamcXref(std::string const & value) |
| 43 |
{ |
{ |
| 44 |
_famc_xref = value; |
_famc_xref = value; |
| 56 |
return _type; |
return _type; |
| 57 |
} |
} |
| 58 |
|
|
|
|
|
|
SmartPtr<GEDCOMParser::Event> const &GEDCOMParser::IndividualEvent::getEvent(void) const |
|
|
{ |
|
|
return _event; |
|
|
} |
|
|
|
|
| 59 |
std::string const GEDCOMParser::IndividualEvent::getType(void) const |
std::string const GEDCOMParser::IndividualEvent::getType(void) const |
| 60 |
{ |
{ |
| 61 |
std::string res; |
std::string res; |