| 38 |
//@} |
//@} |
| 39 |
}; |
}; |
| 40 |
|
|
| 41 |
#include "GEDCOMParser/SourceCitation.hh" |
#include "GEDCOMParser/AttachmentManager.hh" |
| 42 |
|
#include "GEDCOMParser/Attachment.hh" |
| 43 |
|
|
| 44 |
/// |
/// |
| 45 |
namespace GEDCOMParser |
namespace GEDCOMParser |
| 46 |
{ |
{ |
| 47 |
/// @memo Implements the GEDCOM 5.5 NOTE_STRUCTURE structure |
/// @memo Implements the GEDCOM 5.5 NOTE_STRUCTURE structure |
| 48 |
class NoteStructure : public GEDCOMElement |
class NoteStructure : public GEDCOMElement, |
| 49 |
|
public Attachment, |
| 50 |
|
public AttachmentManager |
| 51 |
{ |
{ |
| 52 |
protected: |
protected: |
| 53 |
std::string _note_xref; |
std::string _note_xref; |
|
SourceCitations_t _citations; |
|
| 54 |
std::string _submitter_text; |
std::string _submitter_text; |
| 55 |
public: |
public: |
| 56 |
virtual ~NoteStructure(void); |
virtual ~NoteStructure(void); |
| 59 |
/// |
/// |
| 60 |
void setNoteXref (std::string const &); |
void setNoteXref (std::string const &); |
| 61 |
/// |
/// |
|
GEDCOMParser::SourceCitation * addSourceCitation (SourceCitation * const data = 0); |
|
|
/// |
|
| 62 |
void concSubmitterText (std::string const &); |
void concSubmitterText (std::string const &); |
| 63 |
/// |
/// |
| 64 |
void contSubmitterText (std::string const &); |
void contSubmitterText (std::string const &); |
| 69 |
/// |
/// |
| 70 |
virtual std::string const &getNoteXref(void) const; |
virtual std::string const &getNoteXref(void) const; |
| 71 |
/// |
/// |
|
SourceCitations_t const &getSourceCitations(void) const; |
|
|
/// |
|
| 72 |
virtual std::string const &getSubmitterText(void) const; |
virtual std::string const &getSubmitterText(void) const; |
| 73 |
//@} |
//@} |
| 74 |
|
///operator == used to find a note structure by its note record xref |
| 75 |
|
friend bool operator==(NoteStructure const ¬e_structure, std::string const ¬e_xref) |
| 76 |
|
{ |
| 77 |
|
return (note_structure._note_xref == note_xref); |
| 78 |
|
}; |
| 79 |
|
///operator == used to find a note structure by its note record xref |
| 80 |
|
friend bool operator==(NoteStructure * const note_structure, std::string const ¬e_xref) |
| 81 |
|
{ |
| 82 |
|
return (note_structure->_note_xref == note_xref); |
| 83 |
|
}; |
| 84 |
|
/// |
| 85 |
virtual void Accept(GEDCOMParser::GEDCOMVisitor *); |
virtual void Accept(GEDCOMParser::GEDCOMVisitor *); |
| 86 |
}; |
}; |
| 87 |
}; |
}; |