/[ghosts]/ghosts/gedcomparser/src/GEDCOMParser/MultimediaLink.hh
ViewVC logotype

Diff of /ghosts/gedcomparser/src/GEDCOMParser/MultimediaLink.hh

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.4 by cpcp, Thu Feb 20 22:09:15 2003 UTC revision 1.5 by cpcp, Sun Nov 16 15:22:12 2003 UTC
# Line 34  namespace GEDCOMParser { Line 34  namespace GEDCOMParser {
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)
# Line 64  namespace GEDCOMParser Line 66  namespace GEDCOMParser
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)
# Line 78  namespace GEDCOMParser Line 78  namespace GEDCOMParser
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  };  };

Legend:
Removed from v.1.4  
changed lines
  Added in v.1.5

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26