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

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

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

revision 1.5 by cpcp, Thu Feb 20 22:09:15 2003 UTC revision 1.6 by cpcp, Sun Nov 16 15:22:12 2003 UTC
# Line 23  Line 23 
23  #define _GEDCOMPARSER_CHANGE_DATE_HH_  #define _GEDCOMPARSER_CHANGE_DATE_HH_
24    
25  #include <string>  #include <string>
26  #include "GEDCOMParser/NoteStructure.hh"  #include "GEDCOMParser/AttachmentManager.hh"
27  #include "GEDCOMParser/DateManagement/DateValue.hh"  #include "GEDCOMParser/DateManagement/DateValue.hh"
28  #include "GEDCOMParser/Visitor/GEDCOMElement.hh"  #include "GEDCOMParser/Visitor/GEDCOMElement.hh"
29    
# Line 32  namespace GEDCOMParser Line 32  namespace GEDCOMParser
32  {  {
33    class GEDCOMVisitor;    class GEDCOMVisitor;
34    /// @memo Implements the GEDCOM 5.5 CHANGE_DATE structure    /// @memo Implements the GEDCOM 5.5 CHANGE_DATE structure
35    class ChangeDate : public GEDCOMElement    class ChangeDate : public GEDCOMElement,
36                         public AttachmentManager
37    {    {
38    protected:    protected:
39      GEDCOMParser::DateManagement::DateValue * _date;      GEDCOMParser::DateManagement::DateValue * _date;
40      std::string _time;      std::string _time;
     NoteStructures_t _notes;  
41    public:    public:
42      ChangeDate(void) :      ChangeDate(void) :
43        _date(0),        _date(0),
44        _time(),        _time()
       _notes()  
45      {          {    
46      };      };
47      ChangeDate(ChangeDate const &c) :      ChangeDate(ChangeDate const &c) :
48        _date(0),        _date(0),
49        _time(c._time),        _time(c._time)
       _notes(c._notes)  
50      {      {
51        if (c._date != 0)        if (c._date != 0)
52          {          {
# Line 66  namespace GEDCOMParser Line 64  namespace GEDCOMParser
64      void setDate  (std::string const &);      void setDate  (std::string const &);
65      ///      ///
66      void setTime  (std::string const &);      void setTime  (std::string const &);
     ///  
     GEDCOMParser::NoteStructure  * addNoteStructure (NoteStructure  * const data = 0);  
67      //@}      //@}
68            
69      ///@name Accessors (get)      ///@name Accessors (get)
# Line 77  namespace GEDCOMParser Line 73  namespace GEDCOMParser
73      GEDCOMParser::DateManagement::DateValue const * const getDateObject(void) const;      GEDCOMParser::DateManagement::DateValue const * const getDateObject(void) const;
74      ///      ///
75      virtual std::string const &getTime(void) const;      virtual std::string const &getTime(void) const;
     ///  
     NoteStructures_t const &getNoteStructures(void) const;  
76      //@}      //@}
77      virtual void Accept(GEDCOMParser::GEDCOMVisitor *);      virtual void Accept(GEDCOMParser::GEDCOMVisitor *);
78    };    };

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

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