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

Diff of /ghosts/gedcomparser/src/GEDCOMParser/Event.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 29  Line 29 
29  #include "GEDCOMParser/MultimediaLink.hh"  #include "GEDCOMParser/MultimediaLink.hh"
30  #include "GEDCOMParser/NoteStructure.hh"  #include "GEDCOMParser/NoteStructure.hh"
31  #include "GEDCOMParser/SourceCitation.hh"  #include "GEDCOMParser/SourceCitation.hh"
32    #include "GEDCOMParser/DateManagement/DateValue.hh"
33    
34  /// Package GEDCOMParser  /// Package GEDCOMParser
35  namespace GEDCOMParser  namespace GEDCOMParser
# Line 54  namespace GEDCOMParser Line 55  namespace GEDCOMParser
55      enumAttributes;      enumAttributes;
56        Event (void):        Event (void):
57          _type (""),          _type (""),
58          _date (""),          _date (0),
59          _place (),          _place (),
60          _address (),          _address (),
61          _age (""),          _age (""),
# Line 68  namespace GEDCOMParser Line 69  namespace GEDCOMParser
69      };      };
70      Event (Event const &e):      Event (Event const &e):
71        _type (e._type),        _type (e._type),
72        _date (e._date),        _date (0),
73        _place (e._place),        _place (e._place),
74        _address (e._address),        _address (e._address),
75        _age (e._age),        _age (e._age),
# Line 79  namespace GEDCOMParser Line 80  namespace GEDCOMParser
80        _notes (e._notes),        _notes (e._notes),
81        _updated_attr (e._updated_attr)        _updated_attr (e._updated_attr)
82      {      {
83          if (e._date != 0)
84            {
85              _date = new GEDCOMParser::DateManagement::DateValue(*e._date);
86            }
87          return;
88      };      };
89      void copyLastUpdatedAttr (Event const &);      void copyLastUpdatedAttr (Event const &);
90      void resetLastUpdatedAttr (void);      void resetLastUpdatedAttr (void);
91      virtual ~Event (void)      virtual ~Event (void)
92      {      {
93          delete _date; _date = 0;
94      };      };
95      enumAttributes const getUpdatedAttr(void) const;      enumAttributes const getUpdatedAttr(void) const;
96    
# Line 115  namespace GEDCOMParser Line 122  namespace GEDCOMParser
122      //@{      //@{
123      virtual std::string  const &getType(void) const;      virtual std::string  const &getType(void) const;
124      ///          ///    
125      virtual std::string const &getDate(void) const;      virtual std::string const getDate(void) const;
126      ///      ///
127      SmartPtr<Place> const &getPlace(void) const;      SmartPtr<Place> const &getPlace(void) const;
128      ///      ///
# Line 136  namespace GEDCOMParser Line 143  namespace GEDCOMParser
143      //@}      //@}
144    protected:    protected:
145      std::string _type;      std::string _type;
146      std::string _date;      GEDCOMParser::DateManagement::DateValue * _date;
147      SmartPtr<Place>  _place;      SmartPtr<Place>  _place;
148      SmartPtr<Address>  _address;      SmartPtr<Address>  _address;
149      std::string _age;      std::string _age;
# Line 147  namespace GEDCOMParser Line 154  namespace GEDCOMParser
154      NoteStructures_t _notes;      NoteStructures_t _notes;
155      enumAttributes _updated_attr;      enumAttributes _updated_attr;
156      void _setType  (std::string const &);      void _setType  (std::string const &);
157      void _setDate  (std::string const &);      void _setDate  (GEDCOMParser::DateManagement::DateValue const &);
158      void _setPlace (SmartPtr<Place> const &);      void _setPlace (SmartPtr<Place> const &);
159      void _setAddress (SmartPtr<Address> const &);      void _setAddress (SmartPtr<Address> const &);
160      void _setAge  (std::string const &);      void _setAge  (std::string const &);

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