25 |
#include <string> |
#include <string> |
26 |
#include <vector> |
#include <vector> |
27 |
#include "patterns/SmartPtr.hh" |
#include "patterns/SmartPtr.hh" |
28 |
#include "GEDCOMParser/Event.hh" |
#include "GEDCOMParser/EventDetailManager.hh" |
29 |
#include "GEDCOMParser/Visitor/GEDCOMElement.hh" |
#include "GEDCOMParser/Visitor/GEDCOMElement.hh" |
30 |
|
|
31 |
/// |
/// |
33 |
{ |
{ |
34 |
class GEDCOMVisitor; |
class GEDCOMVisitor; |
35 |
/// @memo Implements the GEDCOM 5.5 INDIVIDUAL_EVENT_STRUCTURE structure |
/// @memo Implements the GEDCOM 5.5 INDIVIDUAL_EVENT_STRUCTURE structure |
36 |
class IndividualEvent : public GEDCOMElement |
class IndividualEvent : public GEDCOMElement, |
37 |
|
public EventDetailManager |
38 |
{ |
{ |
39 |
public: |
public: |
40 |
/// @memo Implements the GEDCOM 5.5 EVENT_TYPE_INDIVIDUAL enumeration (typedef'd to enumIndividualEvents) |
/// @memo Implements the GEDCOM 5.5 EVENT_TYPE_INDIVIDUAL enumeration (typedef'd to enumIndividualEvents) |
94 |
|
|
95 |
IndividualEvent (enumIndividualEvents type = e_None): |
IndividualEvent (enumIndividualEvents type = e_None): |
96 |
_type (type), |
_type (type), |
|
_event (), |
|
97 |
_famc_xref (), |
_famc_xref (), |
98 |
_adop () |
_adop () |
99 |
{ |
{ |
100 |
}; |
}; |
101 |
IndividualEvent (IndividualEvent const &i): |
IndividualEvent (IndividualEvent const &i): |
102 |
_type (i._type), |
_type (i._type), |
|
_event (i._event), |
|
103 |
_famc_xref (i._famc_xref), |
_famc_xref (i._famc_xref), |
104 |
_adop (i._adop) |
_adop (i._adop) |
105 |
{ |
{ |
112 |
/// |
/// |
113 |
void setType (enumIndividualEvents); |
void setType (enumIndividualEvents); |
114 |
/// |
/// |
|
GEDCOMParser::Event * setEvent (Event * e = 0); |
|
|
/// |
|
115 |
void setFamcXref (std::string const &); |
void setFamcXref (std::string const &); |
116 |
/// |
/// |
117 |
void setAdop (std::string const &); |
void setAdop (std::string const &); |
124 |
///returns the type formatted as a string (translated in the expected locale) |
///returns the type formatted as a string (translated in the expected locale) |
125 |
virtual std::string const getType(void) const; |
virtual std::string const getType(void) const; |
126 |
/// |
/// |
|
SmartPtr<Event> const &getEvent(void) const; |
|
|
/// |
|
127 |
virtual std::string const &getFamcXref(void) const; |
virtual std::string const &getFamcXref(void) const; |
128 |
/// |
/// |
129 |
virtual std::string const &getAdop(void) const; |
virtual std::string const &getAdop(void) const; |
138 |
virtual void Accept(GEDCOMParser::GEDCOMVisitor *); |
virtual void Accept(GEDCOMParser::GEDCOMVisitor *); |
139 |
protected: |
protected: |
140 |
enumIndividualEvents _type; |
enumIndividualEvents _type; |
|
SmartPtr<Event> _event; |
|
141 |
std::string _famc_xref; |
std::string _famc_xref; |
142 |
std::string _adop; |
std::string _adop; |
143 |
}; |
}; |