48 |
|
|
49 |
void GEDCOMParser::SourceCitation::setDataDate(std::string const & value) |
void GEDCOMParser::SourceCitation::setDataDate(std::string const & value) |
50 |
{ |
{ |
51 |
_data_date = value; |
if (_data_date != 0) |
52 |
|
{ |
53 |
|
delete _data_date; _data_date = 0; |
54 |
|
} |
55 |
|
_data_date = new GEDCOMParser::DateManagement::DateValue(value); |
56 |
return; |
return; |
57 |
} |
} |
58 |
|
|
144 |
return _event_role; |
return _event_role; |
145 |
} |
} |
146 |
|
|
147 |
std::string const & GEDCOMParser::SourceCitation::getDataDate(void) const |
std::string const GEDCOMParser::SourceCitation::getDataDate(void) const |
148 |
{ |
{ |
149 |
return _data_date; |
std::string res; |
150 |
|
if (_data_date != 0) |
151 |
|
{ |
152 |
|
res = _data_date->getDisplayValue(); |
153 |
|
} |
154 |
|
return res; |
155 |
} |
} |
156 |
|
|
157 |
std::string const & GEDCOMParser::SourceCitation::getDataText(void) const |
std::string const & GEDCOMParser::SourceCitation::getDataText(void) const |