24 |
|
|
25 |
void GEDCOMParser::ChangeDate::setDate(std::string const & value) |
void GEDCOMParser::ChangeDate::setDate(std::string const & value) |
26 |
{ |
{ |
27 |
_date = value; |
if (_date != 0) |
28 |
|
{ |
29 |
|
delete _date; _date = 0; |
30 |
|
} |
31 |
|
_date = new GEDCOMParser::DateManagement::DateValue(value); |
32 |
return; |
return; |
33 |
} |
} |
34 |
|
|
49 |
return _notes; |
return _notes; |
50 |
} |
} |
51 |
|
|
52 |
std::string const &GEDCOMParser::ChangeDate::getDate(void) const |
std::string const GEDCOMParser::ChangeDate::getDate(void) const |
53 |
{ |
{ |
54 |
return _date; |
std::string res; |
55 |
|
if (_date != 0) |
56 |
|
{ |
57 |
|
res = _date->getDisplayValue(); |
58 |
|
} |
59 |
|
return res; |
60 |
} |
} |
61 |
|
|
62 |
std::string const &GEDCOMParser::ChangeDate::getTime(void) const |
std::string const &GEDCOMParser::ChangeDate::getTime(void) const |