| 27 |
#include "GEDCOMParser/Address.hh" |
#include "GEDCOMParser/Address.hh" |
| 28 |
#include "GEDCOMParser/Data.hh" |
#include "GEDCOMParser/Data.hh" |
| 29 |
#include "patterns/SmartPtr.hh" |
#include "patterns/SmartPtr.hh" |
| 30 |
|
#include "GEDCOMParser/DateManagement/DateValue.hh" |
| 31 |
|
|
| 32 |
/// |
/// |
| 33 |
namespace GEDCOMParser |
namespace GEDCOMParser |
| 44 |
SmartPtr<Address> _addr; |
SmartPtr<Address> _addr; |
| 45 |
SmartPtr<Data> _data; |
SmartPtr<Data> _data; |
| 46 |
std::string _dest; |
std::string _dest; |
| 47 |
std::string _date; |
GEDCOMParser::DateManagement::DateValue * _date; |
| 48 |
std::string _time; |
std::string _time; |
| 49 |
std::string _subm; |
std::string _subm; |
| 50 |
std::string _subn; |
std::string _subn; |
| 66 |
_addr (), |
_addr (), |
| 67 |
_data (), |
_data (), |
| 68 |
_dest (), |
_dest (), |
| 69 |
_date (), |
_date (0), |
| 70 |
_time (), |
_time (), |
| 71 |
_subm (), |
_subm (), |
| 72 |
_subn (), |
_subn (), |
| 89 |
_addr (h._addr), |
_addr (h._addr), |
| 90 |
_data (h._data), |
_data (h._data), |
| 91 |
_dest (h._dest), |
_dest (h._dest), |
| 92 |
_date (h._date), |
_date (0), |
| 93 |
_time (h._time), |
_time (h._time), |
| 94 |
_subm (h._subm), |
_subm (h._subm), |
| 95 |
_subn (h._subn), |
_subn (h._subn), |
| 103 |
_place_form (h._place_form), |
_place_form (h._place_form), |
| 104 |
_note (h._note) |
_note (h._note) |
| 105 |
{ |
{ |
| 106 |
|
if (h._date != 0) |
| 107 |
|
{ |
| 108 |
|
_date = new GEDCOMParser::DateManagement::DateValue(*h._date); |
| 109 |
|
} |
| 110 |
|
return; |
| 111 |
}; |
}; |
| 112 |
virtual ~Header (void) |
virtual ~Header (void) |
| 113 |
{ |
{ |
| 114 |
|
delete _date; _date = 0; |
| 115 |
}; |
}; |
| 116 |
///@name Accessors (set) |
///@name Accessors (set) |
| 117 |
//@{ |
//@{ |
| 175 |
/// |
/// |
| 176 |
virtual std::string const &getDest(void) const; |
virtual std::string const &getDest(void) const; |
| 177 |
/// |
/// |
| 178 |
virtual std::string const &getDate(void) const; |
virtual std::string const getDate(void) const; |
| 179 |
/// |
/// |
| 180 |
virtual std::string const &getTime(void) const; |
virtual std::string const &getTime(void) const; |
| 181 |
/// |
/// |