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

Diff of /ghosts/gedcomparser/src/GEDCOMParser/IndividualEvent.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 25  Line 25 
25  #include <string>  #include <string>
26  #include <vector>  #include <vector>
27  #include "patterns/SmartPtr.hh"  #include "patterns/SmartPtr.hh"
28  #include "GEDCOMParser/Event.hh"  #include "GEDCOMParser/EventDetailManager.hh"
29  #include "GEDCOMParser/Visitor/GEDCOMElement.hh"  #include "GEDCOMParser/Visitor/GEDCOMElement.hh"
30    
31  ///  ///
# Line 33  namespace GEDCOMParser Line 33  namespace GEDCOMParser
33  {    {  
34    class GEDCOMVisitor;    class GEDCOMVisitor;
35    /// @memo Implements the GEDCOM 5.5 INDIVIDUAL_EVENT_STRUCTURE structure    /// @memo Implements the GEDCOM 5.5 INDIVIDUAL_EVENT_STRUCTURE structure
36    class IndividualEvent : public GEDCOMElement    class IndividualEvent : public GEDCOMElement,
37                              public EventDetailManager
38    {    {
39    public:    public:
40      /// @memo Implements the GEDCOM 5.5 EVENT_TYPE_INDIVIDUAL enumeration (typedef'd to enumIndividualEvents)      /// @memo Implements the GEDCOM 5.5 EVENT_TYPE_INDIVIDUAL enumeration (typedef'd to enumIndividualEvents)
# Line 93  namespace GEDCOMParser Line 94  namespace GEDCOMParser
94    
95      IndividualEvent (enumIndividualEvents type = e_None):      IndividualEvent (enumIndividualEvents type = e_None):
96        _type (type),        _type (type),
       _event (),  
97        _famc_xref (),        _famc_xref (),
98        _adop ()        _adop ()
99      {      {
100      };      };
101      IndividualEvent (IndividualEvent const &i):      IndividualEvent (IndividualEvent const &i):
102        _type (i._type),        _type (i._type),
       _event (i._event),  
103        _famc_xref (i._famc_xref),        _famc_xref (i._famc_xref),
104        _adop (i._adop)        _adop (i._adop)
105      {      {
# Line 113  namespace GEDCOMParser Line 112  namespace GEDCOMParser
112      ///      ///
113      void setType (enumIndividualEvents);      void setType (enumIndividualEvents);
114      ///      ///
     GEDCOMParser::Event * setEvent (Event * e = 0);  
     ///  
115      void setFamcXref  (std::string const &);      void setFamcXref  (std::string const &);
116      ///      ///
117      void setAdop  (std::string const &);      void setAdop  (std::string const &);
# Line 127  namespace GEDCOMParser Line 124  namespace GEDCOMParser
124      ///returns the type formatted as a string (translated in the expected locale)      ///returns the type formatted as a string (translated in the expected locale)
125      virtual std::string const getType(void) const;      virtual std::string const getType(void) const;
126      ///      ///
     SmartPtr<Event> const &getEvent(void) const;  
     ///  
127      virtual std::string const &getFamcXref(void) const;      virtual std::string const &getFamcXref(void) const;
128      ///      ///
129      virtual std::string const &getAdop(void) const;      virtual std::string const &getAdop(void) const;
# Line 143  namespace GEDCOMParser Line 138  namespace GEDCOMParser
138      virtual void Accept(GEDCOMParser::GEDCOMVisitor *);      virtual void Accept(GEDCOMParser::GEDCOMVisitor *);
139    protected:    protected:
140      enumIndividualEvents _type;      enumIndividualEvents _type;
     SmartPtr<Event> _event;  
141      std::string _famc_xref;      std::string _famc_xref;
142      std::string _adop;      std::string _adop;
143    };    };

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