23 |
#define _GEDCOMPARSER_PLACE_HH_ |
#define _GEDCOMPARSER_PLACE_HH_ |
24 |
|
|
25 |
#include <string> |
#include <string> |
26 |
#include "GEDCOMParser/SourceCitation.hh" |
#include "GEDCOMParser/AttachmentManager.hh" |
|
#include "GEDCOMParser/NoteStructure.hh" |
|
27 |
#include "GEDCOMParser/Visitor/GEDCOMElement.hh" |
#include "GEDCOMParser/Visitor/GEDCOMElement.hh" |
28 |
|
|
29 |
/// |
/// |
31 |
{ |
{ |
32 |
class GEDCOMVisitor; |
class GEDCOMVisitor; |
33 |
/// @memo Implements the GEDCOM 5.5 PLACE_STRUCTURE structure |
/// @memo Implements the GEDCOM 5.5 PLACE_STRUCTURE structure |
34 |
class Place : public GEDCOMElement |
class Place : public GEDCOMElement, |
35 |
|
public AttachmentManager |
36 |
{ |
{ |
37 |
protected: |
protected: |
38 |
std::string _value; |
std::string _value; |
39 |
std::string _hierarchy; |
std::string _hierarchy; |
|
SourceCitations_t _citations; |
|
|
NoteStructures_t _notes; |
|
40 |
public: |
public: |
41 |
virtual ~Place(void) |
virtual ~Place(void) |
42 |
{ |
{ |
47 |
void setPlaceValue (std::string const &); |
void setPlaceValue (std::string const &); |
48 |
/// |
/// |
49 |
void setPlaceHierarchy (std::string const &); |
void setPlaceHierarchy (std::string const &); |
|
/// |
|
|
GEDCOMParser::SourceCitation * addSourceCitation (SourceCitation * const data = 0); |
|
|
/// |
|
|
GEDCOMParser::NoteStructure * addNoteStructure (NoteStructure * const data = 0); |
|
50 |
//@} |
//@} |
51 |
|
|
52 |
///@name Accessors (get) |
///@name Accessors (get) |
55 |
virtual std::string const &getPlaceValue(void) const; |
virtual std::string const &getPlaceValue(void) const; |
56 |
/// |
/// |
57 |
virtual std::string const &getPlaceHierarchy(void) const; |
virtual std::string const &getPlaceHierarchy(void) const; |
|
/// |
|
|
SourceCitations_t const &getSourceCitations(void) const; |
|
|
/// |
|
|
NoteStructures_t const &getNoteStructures(void) const; |
|
58 |
//@} |
//@} |
59 |
virtual void Accept(GEDCOMParser::GEDCOMVisitor *); |
virtual void Accept(GEDCOMParser::GEDCOMVisitor *); |
60 |
}; |
}; |