24 |
|
|
25 |
#include <string> |
#include <string> |
26 |
#include "GEDCOMParser/NoteStructure.hh" |
#include "GEDCOMParser/NoteStructure.hh" |
27 |
|
#include "GEDCOMParser/DateManagement/DateValue.hh" |
28 |
|
|
29 |
/// Package GEDCOMParser |
/// Package GEDCOMParser |
30 |
namespace GEDCOMParser |
namespace GEDCOMParser |
33 |
class ChangeDate |
class ChangeDate |
34 |
{ |
{ |
35 |
protected: |
protected: |
36 |
std::string _date; |
GEDCOMParser::DateManagement::DateValue * _date; |
37 |
std::string _time; |
std::string _time; |
38 |
NoteStructures_t _notes; |
NoteStructures_t _notes; |
39 |
public: |
public: |
40 |
|
ChangeDate(void) : |
41 |
|
_date(0), |
42 |
|
_time(), |
43 |
|
_notes() |
44 |
|
{ |
45 |
|
}; |
46 |
|
ChangeDate(ChangeDate const &c) : |
47 |
|
_date(0), |
48 |
|
_time(c._time), |
49 |
|
_notes(c._notes) |
50 |
|
{ |
51 |
|
if (c._date != 0) |
52 |
|
{ |
53 |
|
_date = new GEDCOMParser::DateManagement::DateValue(*c._date); |
54 |
|
} |
55 |
|
return; |
56 |
|
}; |
57 |
virtual ~ChangeDate(void) |
virtual ~ChangeDate(void) |
58 |
{ |
{ |
59 |
|
delete _date; _date = 0; |
60 |
|
return; |
61 |
}; |
}; |
62 |
///@name Accessors (set) |
///@name Accessors (set) |
63 |
//@{ |
//@{ |
70 |
|
|
71 |
///@name Accessors (get) |
///@name Accessors (get) |
72 |
//@{ |
//@{ |
73 |
virtual std::string const &getDate(void) const; |
virtual std::string const getDate(void) const; |
74 |
/// |
/// |
75 |
virtual std::string const &getTime(void) const; |
virtual std::string const &getTime(void) const; |
76 |
/// |
/// |