/[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.2 by cpcp, Mon Sep 23 13:36:56 2002 UTC revision 1.3 by cpcp, Tue Nov 12 21:25:21 2002 UTC
# Line 24  Line 24 
24    
25  #include <string>  #include <string>
26  #include "GEDCOMParser/NoteStructure.hh"  #include "GEDCOMParser/NoteStructure.hh"
27    #include "GEDCOMParser/DateManagement/DateValue.hh"
28    
29  /// Package GEDCOMParser  /// Package GEDCOMParser
30  namespace GEDCOMParser  namespace GEDCOMParser
# Line 32  namespace GEDCOMParser Line 33  namespace GEDCOMParser
33    class ChangeDate    class ChangeDate
34    {    {
35    protected:    protected:
36      std::string _date;      GEDCOMParser::DateManagement::DateValue * _date;
37      std::string _time;      std::string _time;
38      NoteStructures_t _notes;      NoteStructures_t _notes;
39    public:    public:
40        ChangeDate(void) :
41          _date(0),
42          _time(),
43          _notes()
44        {    
45        };
46        ChangeDate(ChangeDate const &c) :
47          _date(0),
48          _time(c._time),
49          _notes(c._notes)
50        {
51          if (c._date != 0)
52            {
53              _date = new GEDCOMParser::DateManagement::DateValue(*c._date);
54            }
55          return;
56        };
57      virtual ~ChangeDate(void)      virtual ~ChangeDate(void)
58      {      {
59          delete _date; _date = 0;
60          return;
61      };      };
62      ///@name Accessors (set)      ///@name Accessors (set)
63      //@{      //@{
# Line 50  namespace GEDCOMParser Line 70  namespace GEDCOMParser
70            
71      ///@name Accessors (get)      ///@name Accessors (get)
72      //@{      //@{
73      virtual std::string const &getDate(void) const;      virtual std::string const getDate(void) const;
74      ///      ///
75      virtual std::string const &getTime(void) const;      virtual std::string const &getTime(void) const;
76      ///      ///

Legend:
Removed from v.1.2  
changed lines
  Added in v.1.3

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