34 |
///@name typedefs |
///@name typedefs |
35 |
//@{ |
//@{ |
36 |
/// @doc handling of many multimedia links |
/// @doc handling of many multimedia links |
37 |
typedef std::vector< SmartPtr < MultimediaLink > > MultimediaLinks_t; |
typedef std::vector < SmartPtr < MultimediaLink > > MultimediaLinks_t; |
38 |
//@} |
//@} |
39 |
}; |
}; |
40 |
|
|
41 |
#include "GEDCOMParser/NoteStructure.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 MULTIMEDIA_LINK structure |
/// @memo Implements the GEDCOM 5.5 MULTIMEDIA_LINK structure |
48 |
class MultimediaLink : public GEDCOMElement |
class MultimediaLink : public GEDCOMElement, |
49 |
|
public Attachment, |
50 |
|
public AttachmentManager |
51 |
{ |
{ |
52 |
protected: |
protected: |
53 |
std::string _obj_xref; |
std::string _obj_xref; |
54 |
std::string _format; |
std::string _format; |
55 |
std::string _title; |
std::string _title; |
56 |
std::string _mm_file_reference; |
std::string _mm_file_reference; |
|
NoteStructures_t _notes; |
|
57 |
public: |
public: |
58 |
virtual ~MultimediaLink(void); |
virtual ~MultimediaLink(void); |
59 |
///@name Accessors (set) |
///@name Accessors (set) |
66 |
void setTitle (std::string const &); |
void setTitle (std::string const &); |
67 |
/// |
/// |
68 |
void setMMFileRef (std::string const &); |
void setMMFileRef (std::string const &); |
|
/// |
|
|
GEDCOMParser::NoteStructure * addNoteStructure (NoteStructure * const data = 0); |
|
69 |
//@} |
//@} |
70 |
|
|
71 |
///@name Accessors (get) |
///@name Accessors (get) |
78 |
virtual std::string const &getTitle(void) const; |
virtual std::string const &getTitle(void) const; |
79 |
/// |
/// |
80 |
virtual std::string const &getMMFileRef(void) const; |
virtual std::string const &getMMFileRef(void) const; |
|
/// |
|
|
NoteStructures_t const &getNoteStructures(void) const; |
|
81 |
//@} |
//@} |
82 |
|
///operator == used to find a multimedialink by its multimedia object xref |
83 |
|
friend bool operator==(MultimediaLink const &multimedia_link, std::string const &obje_xref) |
84 |
|
{ |
85 |
|
return (multimedia_link._obj_xref == obje_xref); |
86 |
|
}; |
87 |
|
///operator == used to find a multimedialink by its multimedia object xref |
88 |
|
friend bool operator==(MultimediaLink * const multimedia_link, std::string const &obje_xref) |
89 |
|
{ |
90 |
|
return (multimedia_link->_obj_xref == obje_xref); |
91 |
|
}; |
92 |
|
/// |
93 |
virtual void Accept(GEDCOMParser::GEDCOMVisitor *); |
virtual void Accept(GEDCOMParser::GEDCOMVisitor *); |
94 |
}; |
}; |
95 |
}; |
}; |