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

Diff of /ghosts/gedcomparser/src/GEDCOMParser/NoteStructure.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:13 2003 UTC
# Line 38  namespace GEDCOMParser { Line 38  namespace GEDCOMParser {
38    //@}    //@}
39  };  };
40    
41  #include "GEDCOMParser/SourceCitation.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 NOTE_STRUCTURE structure      /// @memo Implements the GEDCOM 5.5 NOTE_STRUCTURE structure  
48    class NoteStructure : public GEDCOMElement  class NoteStructure : public GEDCOMElement,
49                          public Attachment,
50                          public AttachmentManager
51    {    {
52    protected:    protected:
53      std::string _note_xref;      std::string _note_xref;
     SourceCitations_t _citations;  
54      std::string _submitter_text;      std::string _submitter_text;
55    public:    public:
56      virtual ~NoteStructure(void);      virtual ~NoteStructure(void);
# Line 57  namespace GEDCOMParser Line 59  namespace GEDCOMParser
59      ///          ///    
60      void setNoteXref  (std::string const &);      void setNoteXref  (std::string const &);
61      ///          ///    
     GEDCOMParser::SourceCitation  * addSourceCitation (SourceCitation  * const data = 0);  
     ///      
62      void concSubmitterText  (std::string const &);      void concSubmitterText  (std::string const &);
63      ///          ///    
64      void contSubmitterText  (std::string const &);      void contSubmitterText  (std::string const &);
# Line 69  namespace GEDCOMParser Line 69  namespace GEDCOMParser
69      ///          ///    
70      virtual std::string const &getNoteXref(void) const;      virtual std::string const &getNoteXref(void) const;
71      ///          ///    
     SourceCitations_t const &getSourceCitations(void) const;  
     ///      
72      virtual std::string const &getSubmitterText(void) const;      virtual std::string const &getSubmitterText(void) const;
73      //@}        //@}  
74        ///operator == used to find a note structure by its note record xref
75        friend bool operator==(NoteStructure const &note_structure, std::string const &note_xref)
76        {
77          return (note_structure._note_xref == note_xref);
78        };
79        ///operator == used to find a note structure by its note record xref
80        friend bool operator==(NoteStructure * const note_structure, std::string const &note_xref)
81        {
82          return (note_structure->_note_xref == note_xref);
83        };
84        ///
85      virtual void Accept(GEDCOMParser::GEDCOMVisitor *);      virtual void Accept(GEDCOMParser::GEDCOMVisitor *);
86    };    };
87  };  };

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