32 |
#include "GEDCOMParser/NoteStructure.hh" |
#include "GEDCOMParser/NoteStructure.hh" |
33 |
#include "GEDCOMParser/UserReference.hh" |
#include "GEDCOMParser/UserReference.hh" |
34 |
#include "GEDCOMParser/ChangeDate.hh" |
#include "GEDCOMParser/ChangeDate.hh" |
35 |
|
#include "GEDCOMParser/DateManagement/DateValue.hh" |
36 |
|
|
37 |
/// |
/// |
38 |
namespace GEDCOMParser |
namespace GEDCOMParser |
49 |
class Event |
class Event |
50 |
{ |
{ |
51 |
public: |
public: |
52 |
|
Event(void) : |
53 |
|
_event(), |
54 |
|
_date(0), |
55 |
|
_plac() |
56 |
|
{ |
57 |
|
return; |
58 |
|
} |
59 |
|
Event(Event const &e) : |
60 |
|
_event(e._event), |
61 |
|
_date(0), |
62 |
|
_plac(e._plac) |
63 |
|
{ |
64 |
|
if (e._date !=0) |
65 |
|
{ |
66 |
|
_date = new GEDCOMParser::DateManagement::DateValue(*e._date); |
67 |
|
} |
68 |
|
return; |
69 |
|
} |
70 |
virtual ~Event(void) |
virtual ~Event(void) |
71 |
{ |
{ |
72 |
|
delete _date; _date = 0; |
73 |
}; |
}; |
74 |
///@name Accessors (set) |
///@name Accessors (set) |
75 |
//@{ |
//@{ |
86 |
/// |
/// |
87 |
virtual std::string const &getEvent(void) const; |
virtual std::string const &getEvent(void) const; |
88 |
/// |
/// |
89 |
virtual std::string const &getDate(void) const; |
virtual std::string const getDate(void) const; |
90 |
/// |
/// |
91 |
virtual std::string const &getPlace(void) const; |
virtual std::string const &getPlace(void) const; |
92 |
//@} |
//@} |
93 |
protected: |
protected: |
94 |
std::string _event; |
std::string _event; |
95 |
std::string _date; |
GEDCOMParser::DateManagement::DateValue * _date; |
96 |
std::string _plac; |
std::string _plac; |
97 |
}; |
}; |
98 |
///@name typedefs |
///@name typedefs |