| 25 |
#include <map> |
#include <map> |
| 26 |
#include <string> |
#include <string> |
| 27 |
|
|
| 28 |
#include "GEDCOMParser/SourceCitation.hh" |
|
| 29 |
#include "GEDCOMParser/UserReference.hh" |
#include "GEDCOMParser/AttachmentManager.hh" |
| 30 |
#include "GEDCOMParser/ChangeDate.hh" |
#include "GEDCOMParser/AutomatedRecordIdManager.hh" |
| 31 |
|
#include "GEDCOMParser/ChangelogManager.hh" |
| 32 |
|
#include "GEDCOMParser/UserReferenceManager.hh" |
| 33 |
#include "GEDCOMParser/Visitor/GEDCOMElement.hh" |
#include "GEDCOMParser/Visitor/GEDCOMElement.hh" |
| 34 |
|
|
| 35 |
/// |
/// |
| 37 |
{ |
{ |
| 38 |
class GEDCOMVisitor; |
class GEDCOMVisitor; |
| 39 |
/// @memo Implements the GEDCOM 5.5 NOTE_RECORD structure |
/// @memo Implements the GEDCOM 5.5 NOTE_RECORD structure |
| 40 |
class NoteRecord : public GEDCOMElement |
class NoteRecord : public GEDCOMElement, |
| 41 |
|
public AttachmentManager, |
| 42 |
|
public AutomatedRecordIdManager, |
| 43 |
|
public ChangelogManager, |
| 44 |
|
public UserReferenceManager |
| 45 |
{ |
{ |
| 46 |
public: |
public: |
| 47 |
NoteRecord(std::string const &id = ""); |
NoteRecord(std::string const &id = ""); |
| 56 |
void contSubmitterText (std::string const &); |
void contSubmitterText (std::string const &); |
| 57 |
/// |
/// |
| 58 |
void concSubmitterText (std::string const &); |
void concSubmitterText (std::string const &); |
|
/// |
|
|
GEDCOMParser::SourceCitation * addSourceCitation (SourceCitation * const data = 0); |
|
|
/// |
|
|
GEDCOMParser::UserReference * addUserReference (UserReference * const data = 0); |
|
|
/// |
|
|
void setRin (std::string const &); |
|
|
/// |
|
|
GEDCOMParser::ChangeDate * setChangeDate (ChangeDate * const data = 0); |
|
| 59 |
//@} |
//@} |
| 60 |
///@name Accessors (get) |
///@name Accessors (get) |
| 61 |
//@{ |
//@{ |
| 63 |
virtual std::string const &getId(void) const; |
virtual std::string const &getId(void) const; |
| 64 |
/// |
/// |
| 65 |
virtual std::string const &getSubmitterText(void) const; |
virtual std::string const &getSubmitterText(void) const; |
|
/// |
|
|
SourceCitations_t const &getSourceCitations(void) const ; |
|
|
/// |
|
|
UserReferences_t const &getUserReferences(void) const ; |
|
|
/// |
|
|
virtual std::string const &getRin(void) const; |
|
|
/// |
|
|
SmartPtr<ChangeDate> const & getChangeDate(void) const ; |
|
| 66 |
//@} |
//@} |
| 67 |
virtual void Accept(GEDCOMParser::GEDCOMVisitor *); |
virtual void Accept(GEDCOMParser::GEDCOMVisitor *); |
| 68 |
protected: |
protected: |
| 69 |
std::string _note_id; |
std::string _note_id; |
| 70 |
std::string _submitter_text; |
std::string _submitter_text; |
|
SourceCitations_t _sources; |
|
|
UserReferences_t _user_references; |
|
|
std::string _rin; |
|
|
SmartPtr<ChangeDate> _change_date; |
|
| 71 |
}; |
}; |
| 72 |
///@name typedefs |
///@name typedefs |
| 73 |
//@{ |
//@{ |