| 26 |
#include <string> |
#include <string> |
| 27 |
#include <vector> |
#include <vector> |
| 28 |
|
|
| 29 |
#include "GEDCOMParser/Address.hh" |
#include "GEDCOMParser/AddressManager.hh" |
| 30 |
#include "GEDCOMParser/MultimediaLink.hh" |
#include "GEDCOMParser/AttachmentManager.hh" |
| 31 |
#include "GEDCOMParser/ChangeDate.hh" |
#include "GEDCOMParser/AutomatedRecordIdManager.hh" |
| 32 |
|
#include "GEDCOMParser/ChangelogManager.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 SUBMITTER_RECORD structure |
/// @memo Implements the GEDCOM 5.5 SUBMITTER_RECORD structure |
| 40 |
class SubmitterRecord : public GEDCOMElement |
class SubmitterRecord : public GEDCOMElement, |
| 41 |
|
public AttachmentManager, |
| 42 |
|
public AutomatedRecordIdManager, |
| 43 |
|
public AddressManager, |
| 44 |
|
public ChangelogManager |
| 45 |
{ |
{ |
| 46 |
public: |
public: |
| 47 |
///@name typedefs |
///@name typedefs |
| 60 |
/// |
/// |
| 61 |
void setName (std::string const &); |
void setName (std::string const &); |
| 62 |
/// |
/// |
|
GEDCOMParser::Address * setAddress (Address * const data = 0); |
|
|
/// |
|
|
GEDCOMParser::MultimediaLink * addMultimediaLink (MultimediaLink * const data = 0); |
|
|
/// |
|
| 63 |
void addLanguagePref (std::string const &); |
void addLanguagePref (std::string const &); |
| 64 |
/// |
/// |
| 65 |
void setRfn (std::string const &); |
void setRfn (std::string const &); |
|
/// |
|
|
void setRin (std::string const &); |
|
|
/// |
|
|
GEDCOMParser::ChangeDate * setChangeDate (ChangeDate * const data = 0); |
|
| 66 |
//@} |
//@} |
| 67 |
|
|
| 68 |
///@name Accessors (get) |
///@name Accessors (get) |
| 72 |
/// |
/// |
| 73 |
virtual std::string const &getName(void) const; |
virtual std::string const &getName(void) const; |
| 74 |
/// |
/// |
|
SmartPtr<Address> const & getAddress(void) const; |
|
|
/// |
|
|
MultimediaLinks_t const &getMultimediaLinks(void) const; |
|
|
/// |
|
| 75 |
LanguagePreferences_t const &getLanguagePreferences(void) const; |
LanguagePreferences_t const &getLanguagePreferences(void) const; |
| 76 |
/// |
/// |
| 77 |
virtual std::string const &getRfn(void) const; |
virtual std::string const &getRfn(void) const; |
|
/// |
|
|
virtual std::string const &getRin(void) const; |
|
|
/// |
|
|
SmartPtr<ChangeDate> const & getChangeDate(void) const; |
|
| 78 |
//@} |
//@} |
| 79 |
virtual void Accept(GEDCOMParser::GEDCOMVisitor *); |
virtual void Accept(GEDCOMParser::GEDCOMVisitor *); |
| 80 |
protected: |
protected: |
| 81 |
std::string _id; |
std::string _id; |
| 82 |
std::string _name; |
std::string _name; |
|
SmartPtr<Address> _address; |
|
|
MultimediaLinks_t _mm_links; |
|
| 83 |
LanguagePreferences_t _language_preferences; |
LanguagePreferences_t _language_preferences; |
| 84 |
std::string _rfn; |
std::string _rfn; |
|
std::string _rin; |
|
|
SmartPtr<ChangeDate> _change_date; |
|
| 85 |
}; |
}; |
| 86 |
///@name typedefs |
///@name typedefs |
| 87 |
//@{ |
//@{ |