| 25 |
#include <string> |
#include <string> |
| 26 |
#include <vector> |
#include <vector> |
| 27 |
#include "patterns/SmartPtr.hh" |
#include "patterns/SmartPtr.hh" |
| 28 |
#include "GEDCOMParser/NoteStructure.hh" |
#include "GEDCOMParser/AttachmentManager.hh" |
|
#include "GEDCOMParser/SourceCitation.hh" |
|
| 29 |
#include "GEDCOMParser/Visitor/GEDCOMElement.hh" |
#include "GEDCOMParser/Visitor/GEDCOMElement.hh" |
| 30 |
|
|
| 31 |
/// Package GEDCOMParser |
/// Package GEDCOMParser |
| 43 |
|
|
| 44 |
//@} |
//@} |
| 45 |
/// @memo Implements the GEDCOM 5.5 ASSOCIATION_STRUCTURE structure |
/// @memo Implements the GEDCOM 5.5 ASSOCIATION_STRUCTURE structure |
| 46 |
class Association : public GEDCOMElement |
class Association : public GEDCOMElement, |
| 47 |
|
public AttachmentManager |
| 48 |
{ |
{ |
| 49 |
public: |
public: |
| 50 |
virtual ~Association(void) |
virtual ~Association(void) |
| 58 |
void setType (std::string const &); |
void setType (std::string const &); |
| 59 |
/// |
/// |
| 60 |
void setRela (std::string const &); |
void setRela (std::string const &); |
|
/// |
|
|
GEDCOMParser::NoteStructure * addNoteStructure (NoteStructure * const data = 0); |
|
|
/// |
|
|
GEDCOMParser::SourceCitation * addSourceCitation (SourceCitation * const data = 0); |
|
| 61 |
//@} |
//@} |
| 62 |
///@name Accessors (get) |
///@name Accessors (get) |
| 63 |
//@{ |
//@{ |
| 67 |
virtual std::string const &getType(void) const; |
virtual std::string const &getType(void) const; |
| 68 |
/// |
/// |
| 69 |
virtual std::string const &getRela(void) const; |
virtual std::string const &getRela(void) const; |
|
/// |
|
|
NoteStructures_t const & getNoteStructures(void) const; |
|
|
/// |
|
|
SourceCitations_t const & getSourceCitations(void) const; |
|
| 70 |
//@} |
//@} |
| 71 |
virtual void Accept(GEDCOMParser::GEDCOMVisitor *); |
virtual void Accept(GEDCOMParser::GEDCOMVisitor *); |
| 72 |
protected: |
protected: |
| 73 |
IndiXrefs_t _indi_xrefs; |
IndiXrefs_t _indi_xrefs; |
| 74 |
std::string _type; |
std::string _type; |
| 75 |
std::string _rela; |
std::string _rela; |
|
NoteStructures_t _notes; |
|
|
SourceCitations_t _citations; |
|
| 76 |
}; |
}; |
| 77 |
}; |
}; |
| 78 |
#endif |
#endif |