30 |
|
|
31 |
void GEDCOMParser::SourceRecord::Data::Event::setDate(std::string const &value) |
void GEDCOMParser::SourceRecord::Data::Event::setDate(std::string const &value) |
32 |
{ |
{ |
33 |
_date = value; |
if(_date != 0) |
34 |
|
{ |
35 |
|
delete _date; _date = 0; |
36 |
|
} |
37 |
|
_date = new GEDCOMParser::DateManagement::DateValue(value); |
38 |
return; |
return; |
39 |
} |
} |
40 |
|
|
214 |
return _event; |
return _event; |
215 |
} |
} |
216 |
|
|
217 |
std::string const & GEDCOMParser::SourceRecord::Data::Event::getDate(void) const |
std::string const GEDCOMParser::SourceRecord::Data::Event::getDate(void) const |
218 |
{ |
{ |
219 |
return _date; |
std::string res; |
220 |
|
if (_date != 0) |
221 |
|
{ |
222 |
|
res = _date->getDisplayValue(); |
223 |
|
} |
224 |
|
return res; |
225 |
} |
} |
226 |
|
|
227 |
std::string const & GEDCOMParser::SourceRecord::Data::Event::getPlace(void) const |
std::string const & GEDCOMParser::SourceRecord::Data::Event::getPlace(void) const |