| 25 |
#include <vector> |
#include <vector> |
| 26 |
#include <string> |
#include <string> |
| 27 |
#include "patterns/SmartPtr.hh" |
#include "patterns/SmartPtr.hh" |
| 28 |
#include "GEDCOMParser/SourceCitation.hh" |
#include "GEDCOMParser/AttachmentManager.hh" |
|
#include "GEDCOMParser/NoteStructure.hh" |
|
| 29 |
#include "GEDCOMParser/Visitor/GEDCOMElement.hh" |
#include "GEDCOMParser/Visitor/GEDCOMElement.hh" |
| 30 |
|
|
| 31 |
/// |
/// |
| 44 |
namespace GEDCOMParser |
namespace GEDCOMParser |
| 45 |
{ |
{ |
| 46 |
/// @memo Implements the GEDCOM 5.5 PERSONAL_NAME_STRUCTURE structure |
/// @memo Implements the GEDCOM 5.5 PERSONAL_NAME_STRUCTURE structure |
| 47 |
class PersonalName : public GEDCOMElement |
class PersonalName : public GEDCOMElement, |
| 48 |
|
public AttachmentManager |
| 49 |
{ |
{ |
| 50 |
protected: |
protected: |
| 51 |
std::string _raw_name; |
std::string _raw_name; |
| 58 |
std::string _raw_surn; |
std::string _raw_surn; |
| 59 |
std::string _surn; |
std::string _surn; |
| 60 |
std::string _nsfx; |
std::string _nsfx; |
|
SourceCitations_t _citations; |
|
|
NoteStructures_t _notes; |
|
| 61 |
public: |
public: |
| 62 |
virtual ~PersonalName(void) |
virtual ~PersonalName(void) |
| 63 |
{ |
{ |
| 78 |
void setSurn (std::string const &); |
void setSurn (std::string const &); |
| 79 |
/// |
/// |
| 80 |
void setNsfx (std::string const &); |
void setNsfx (std::string const &); |
|
/// |
|
|
GEDCOMParser::SourceCitation * addSourceCitation (SourceCitation * const data = 0); |
|
|
/// |
|
|
GEDCOMParser::NoteStructure * addNoteStructure (NoteStructure * const data = 0); |
|
| 81 |
//@} |
//@} |
| 82 |
|
|
| 83 |
///@name Accessors (get) |
///@name Accessors (get) |
| 102 |
virtual std::string const &getRawSurn(void) const; |
virtual std::string const &getRawSurn(void) const; |
| 103 |
/// |
/// |
| 104 |
virtual std::string const &getNsfx(void) const; |
virtual std::string const &getNsfx(void) const; |
|
/// |
|
|
SourceCitations_t const &getSourceCitations(void) const; |
|
|
/// |
|
|
NoteStructures_t const &getNoteStructures(void) const; |
|
| 105 |
//@} |
//@} |
| 106 |
virtual void Accept(GEDCOMParser::GEDCOMVisitor *); |
virtual void Accept(GEDCOMParser::GEDCOMVisitor *); |
| 107 |
}; |
}; |