| 25 |
#include <map> |
#include <map> |
| 26 |
#include <string> |
#include <string> |
| 27 |
|
|
| 28 |
#include "GEDCOMParser/NoteStructure.hh" |
#include "GEDCOMParser/AttachmentManager.hh" |
| 29 |
#include "GEDCOMParser/ChangeDate.hh" |
#include "GEDCOMParser/AutomatedRecordIdManager.hh" |
| 30 |
#include "GEDCOMParser/UserReference.hh" |
#include "GEDCOMParser/ChangelogManager.hh" |
| 31 |
|
#include "GEDCOMParser/UserReferenceManager.hh" |
| 32 |
#include "GEDCOMParser/Visitor/GEDCOMElement.hh" |
#include "GEDCOMParser/Visitor/GEDCOMElement.hh" |
| 33 |
|
|
| 34 |
/// |
/// |
| 36 |
{ |
{ |
| 37 |
class GEDCOMVisitor; |
class GEDCOMVisitor; |
| 38 |
/// @memo Implements the GEDCOM 5.5 MULTIMEDIA_RECORD structure |
/// @memo Implements the GEDCOM 5.5 MULTIMEDIA_RECORD structure |
| 39 |
class MultimediaRecord : public GEDCOMElement |
class MultimediaRecord : public GEDCOMElement, |
| 40 |
|
public AttachmentManager, |
| 41 |
|
public AutomatedRecordIdManager, |
| 42 |
|
public ChangelogManager, |
| 43 |
|
public UserReferenceManager |
| 44 |
{ |
{ |
| 45 |
public: |
public: |
| 46 |
MultimediaRecord(std::string const &id = ""); |
MultimediaRecord(std::string const &id = ""); |
| 60 |
void contBlob (std::string const &); |
void contBlob (std::string const &); |
| 61 |
/// |
/// |
| 62 |
void setObjeXref (std::string const &); |
void setObjeXref (std::string const &); |
|
/// |
|
|
void setRin (std::string const &); |
|
|
/// |
|
|
GEDCOMParser::NoteStructure * addNoteStructure (NoteStructure * const data = 0); |
|
|
/// |
|
|
GEDCOMParser::UserReference * addUserReference (UserReference * const data = 0); |
|
|
/// |
|
|
GEDCOMParser::ChangeDate * setChangeDate (ChangeDate * const data = 0); |
|
| 63 |
//@} |
//@} |
| 64 |
///@name Accessors (get) |
///@name Accessors (get) |
| 65 |
//@{ |
//@{ |
| 73 |
virtual std::string const &getBlob(void) const; |
virtual std::string const &getBlob(void) const; |
| 74 |
/// |
/// |
| 75 |
virtual std::string const &getObjeXref(void) const; |
virtual std::string const &getObjeXref(void) const; |
|
/// |
|
|
virtual std::string const &getRin(void) const; |
|
|
/// |
|
|
NoteStructures_t const &getNoteStructures(void) const; |
|
|
/// |
|
|
UserReferences_t const &getUserReferences(void) const; |
|
|
/// |
|
|
SmartPtr<ChangeDate> const & getChangeDate(void) const; |
|
| 76 |
//@} |
//@} |
| 77 |
virtual void Accept(GEDCOMParser::GEDCOMVisitor *); |
virtual void Accept(GEDCOMParser::GEDCOMVisitor *); |
| 78 |
protected: |
protected: |
| 81 |
std::string _titl; |
std::string _titl; |
| 82 |
std::string _blob; |
std::string _blob; |
| 83 |
std::string _obje_xref; |
std::string _obje_xref; |
|
std::string _rin; |
|
|
NoteStructures_t _notes; |
|
|
UserReferences_t _user_references; |
|
|
SmartPtr<ChangeDate> _change_date; |
|
| 84 |
}; |
}; |
| 85 |
///@name typedefs |
///@name typedefs |
| 86 |
//@{ |
//@{ |