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

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

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

revision 1.4 by cpcp, Thu Mar 20 20:42:05 2003 UTC revision 1.5 by cpcp, Sun Nov 16 15:22:12 2003 UTC
# Line 38  namespace GEDCOMParser Line 38  namespace GEDCOMParser
38    //@}    //@}
39  }  }
40    
41  #include "GEDCOMParser/Event.hh"  #include "GEDCOMParser/EventDetailManager.hh"
42    
43  ///  ///
44  namespace GEDCOMParser  namespace GEDCOMParser
45  {  {
46    class GEDCOMVisitor;    class GEDCOMVisitor;
47    /// @memo Implements the GEDCOM 5.5 FAMILY_EVENT_STRUCTURE structure    /// @memo Implements the GEDCOM 5.5 FAMILY_EVENT_STRUCTURE structure
48    class FamilyEvent : public GEDCOMElement    class FamilyEvent : public GEDCOMElement,
49                          public EventDetailManager
50    {    {
51    public:    public:
52      /// @memo Implements the GEDCOM 5.5 EVENT_TYPE_FAMILY enumeration (typedef'd to enumFamilyEvents)      /// @memo Implements the GEDCOM 5.5 EVENT_TYPE_FAMILY enumeration (typedef'd to enumFamilyEvents)
# Line 81  namespace GEDCOMParser Line 82  namespace GEDCOMParser
82    
83      FamilyEvent (enumFamilyEvents type = e_None):      FamilyEvent (enumFamilyEvents type = e_None):
84        _type (type),        _type (type),
       _event (),  
85        _husb_age (),        _husb_age (),
86        _wife_age ()        _wife_age ()
87      {      {
88      };      };
89      FamilyEvent (FamilyEvent const &f):      FamilyEvent (FamilyEvent const &f):
90          _type (f._type),          _type (f._type),
         _event (f._event),  
91          _husb_age (f._husb_age),          _husb_age (f._husb_age),
92          _wife_age (f._wife_age)          _wife_age (f._wife_age)
93      {      {
# Line 100  namespace GEDCOMParser Line 99  namespace GEDCOMParser
99      //@{      //@{
100      void setType (enumFamilyEvents);      void setType (enumFamilyEvents);
101      ///      ///
     GEDCOMParser::Event * setEvent(Event * data = 0);  
     ///  
102      void setHusbAge  (std::string const &);      void setHusbAge  (std::string const &);
103      ///      ///
104      void setWifeAge  (std::string const &);      void setWifeAge  (std::string const &);
# Line 112  namespace GEDCOMParser Line 109  namespace GEDCOMParser
109      //@{      //@{
110      enumFamilyEvents getType(void) const;      enumFamilyEvents getType(void) const;
111      ///      ///
     SmartPtr<Event> const &getEvent(void) const;  
     ///  
112      virtual std::string const &getHusbAge(void) const;      virtual std::string const &getHusbAge(void) const;
113      ///      ///
114      virtual std::string const &getWifeAge(void) const;      virtual std::string const &getWifeAge(void) const;
# Line 129  namespace GEDCOMParser Line 124  namespace GEDCOMParser
124      virtual void Accept(GEDCOMParser::GEDCOMVisitor *);      virtual void Accept(GEDCOMParser::GEDCOMVisitor *);
125    protected:    protected:
126      enumFamilyEvents _type;      enumFamilyEvents _type;
     SmartPtr<Event> _event;  
127      std::string _husb_age;      std::string _husb_age;
128      std::string _wife_age;      std::string _wife_age;
129    };    };

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