| 26 |
#include <vector> |
#include <vector> |
| 27 |
#include "patterns/SmartPtr.hh" |
#include "patterns/SmartPtr.hh" |
| 28 |
#include "GEDCOMParser/Event.hh" |
#include "GEDCOMParser/Event.hh" |
| 29 |
|
#include "GEDCOMParser/Visitor/GEDCOMElement.hh" |
| 30 |
|
|
| 31 |
/// |
/// |
| 32 |
namespace GEDCOMParser |
namespace GEDCOMParser |
| 33 |
{ |
{ |
| 34 |
|
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 |
class IndividualEvent : public GEDCOMElement |
| 37 |
{ |
{ |
| 38 |
public: |
public: |
| 39 |
/// @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) |
| 140 |
{ |
{ |
| 141 |
return (eve._type == (IndividualEvent::enumIndividualEvents)type); |
return (eve._type == (IndividualEvent::enumIndividualEvents)type); |
| 142 |
}; |
}; |
| 143 |
|
virtual void Accept(GEDCOMParser::GEDCOMVisitor *); |
| 144 |
protected: |
protected: |
| 145 |
enumIndividualEvents _type; |
enumIndividualEvents _type; |
| 146 |
SmartPtr<Event> _event; |
SmartPtr<Event> _event; |