38 |
//@} |
//@} |
39 |
} |
} |
40 |
|
|
41 |
#include "GEDCOMParser/Event.hh" |
#include "GEDCOMParser/EventDetailManager.hh" |
42 |
|
|
43 |
/// |
/// |
44 |
namespace GEDCOMParser |
namespace GEDCOMParser |
45 |
{ |
{ |
46 |
class GEDCOMVisitor; |
class GEDCOMVisitor; |
47 |
/// @memo Implements the GEDCOM 5.5 FAMILY_EVENT_STRUCTURE structure |
/// @memo Implements the GEDCOM 5.5 FAMILY_EVENT_STRUCTURE structure |
48 |
class FamilyEvent : public GEDCOMElement |
class FamilyEvent : public GEDCOMElement, |
49 |
|
public EventDetailManager |
50 |
{ |
{ |
51 |
public: |
public: |
52 |
/// @memo Implements the GEDCOM 5.5 EVENT_TYPE_FAMILY enumeration (typedef'd to enumFamilyEvents) |
/// @memo Implements the GEDCOM 5.5 EVENT_TYPE_FAMILY enumeration (typedef'd to enumFamilyEvents) |
82 |
|
|
83 |
FamilyEvent (enumFamilyEvents type = e_None): |
FamilyEvent (enumFamilyEvents type = e_None): |
84 |
_type (type), |
_type (type), |
|
_event (), |
|
85 |
_husb_age (), |
_husb_age (), |
86 |
_wife_age () |
_wife_age () |
87 |
{ |
{ |
88 |
}; |
}; |
89 |
FamilyEvent (FamilyEvent const &f): |
FamilyEvent (FamilyEvent const &f): |
90 |
_type (f._type), |
_type (f._type), |
|
_event (f._event), |
|
91 |
_husb_age (f._husb_age), |
_husb_age (f._husb_age), |
92 |
_wife_age (f._wife_age) |
_wife_age (f._wife_age) |
93 |
{ |
{ |
99 |
//@{ |
//@{ |
100 |
void setType (enumFamilyEvents); |
void setType (enumFamilyEvents); |
101 |
/// |
/// |
|
GEDCOMParser::Event * setEvent(Event * data = 0); |
|
|
/// |
|
102 |
void setHusbAge (std::string const &); |
void setHusbAge (std::string const &); |
103 |
/// |
/// |
104 |
void setWifeAge (std::string const &); |
void setWifeAge (std::string const &); |
109 |
//@{ |
//@{ |
110 |
enumFamilyEvents getType(void) const; |
enumFamilyEvents getType(void) const; |
111 |
/// |
/// |
|
SmartPtr<Event> const &getEvent(void) const; |
|
|
/// |
|
112 |
virtual std::string const &getHusbAge(void) const; |
virtual std::string const &getHusbAge(void) const; |
113 |
/// |
/// |
114 |
virtual std::string const &getWifeAge(void) const; |
virtual std::string const &getWifeAge(void) const; |
124 |
virtual void Accept(GEDCOMParser::GEDCOMVisitor *); |
virtual void Accept(GEDCOMParser::GEDCOMVisitor *); |
125 |
protected: |
protected: |
126 |
enumFamilyEvents _type; |
enumFamilyEvents _type; |
|
SmartPtr<Event> _event; |
|
127 |
std::string _husb_age; |
std::string _husb_age; |
128 |
std::string _wife_age; |
std::string _wife_age; |
129 |
}; |
}; |