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

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

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

revision 1.1.2.1 by cpcp, Sun Aug 18 19:49:21 2002 UTC revision 1.1.2.2 by cpcp, Sun Oct 27 11:58:04 2002 UTC
# Line 32  Line 32 
32  #include "GEDCOMParser/NoteStructure.hh"  #include "GEDCOMParser/NoteStructure.hh"
33  #include "GEDCOMParser/UserReference.hh"  #include "GEDCOMParser/UserReference.hh"
34  #include "GEDCOMParser/ChangeDate.hh"  #include "GEDCOMParser/ChangeDate.hh"
35    #include "GEDCOMParser/DateManagement/DateValue.hh"
36    
37  ///  ///
38  namespace GEDCOMParser  namespace GEDCOMParser
# Line 48  namespace GEDCOMParser Line 49  namespace GEDCOMParser
49        class Event        class Event
50        {        {
51        public:        public:
52            Event(void) :
53              _event(),
54              _date(0),
55              _plac()
56            {
57              return;
58            }
59            Event(Event const &e) :
60              _event(e._event),
61              _date(0),
62              _plac(e._plac)
63            {
64              if (e._date !=0)
65                {
66                  _date = new GEDCOMParser::DateManagement::DateValue(*e._date);
67                }
68              return;
69            }
70          virtual ~Event(void)          virtual ~Event(void)
71          {          {
72              delete _date; _date = 0;
73          };          };
74          ///@name Accessors (set)          ///@name Accessors (set)
75          //@{              //@{    
# Line 66  namespace GEDCOMParser Line 86  namespace GEDCOMParser
86          ///              ///    
87          virtual std::string const &getEvent(void) const;          virtual std::string const &getEvent(void) const;
88          ///              ///    
89          virtual std::string const &getDate(void) const;          virtual std::string const getDate(void) const;
90          ///              ///    
91          virtual std::string const &getPlace(void) const;          virtual std::string const &getPlace(void) const;
92          //@}              //@}    
93        protected:        protected:
94          std::string _event;          std::string _event;
95          std::string _date;          GEDCOMParser::DateManagement::DateValue * _date;
96          std::string _plac;          std::string _plac;
97        };        };
98        ///@name typedefs        ///@name typedefs

Legend:
Removed from v.1.1.2.1  
changed lines
  Added in v.1.1.2.2

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