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

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

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

revision 1.3 by cpcp, Sun Jan 26 21:15:21 2003 UTC revision 1.4 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_ATTRIBUTE_STRUCTURE structure    /// @memo Implements the GEDCOM 5.5 INDIVIDUAL_ATTRIBUTE_STRUCTURE structure
36    class IndividualAttribute : public GEDCOMElement    class IndividualAttribute : public GEDCOMElement,
37                                  public EventDetailManager
38    {    {
39    public:    public:
40      /// @memo Implements the GEDCOM 5.5 ATTRIBUTE_TYPE enumeration (typedef'd to enumIndividualAttributes)      /// @memo Implements the GEDCOM 5.5 ATTRIBUTE_TYPE enumeration (typedef'd to enumIndividualAttributes)
# Line 72  namespace GEDCOMParser Line 73  namespace GEDCOMParser
73    
74      IndividualAttribute (enumIndividualAttributes type = e_None):      IndividualAttribute (enumIndividualAttributes type = e_None):
75        _type (type),        _type (type),
76        _value (),        _value ()
       _event ()  
77      {      {
78      };      };
79      IndividualAttribute (IndividualAttribute const &i):      IndividualAttribute (IndividualAttribute const &i):
80        _type (i._type),        _type (i._type),
81        _value (i._value),        _value (i._value)
       _event (i._event)  
82      {      {
83      }      }
84      virtual ~IndividualAttribute (void)      virtual ~IndividualAttribute (void)
# Line 91  namespace GEDCOMParser Line 90  namespace GEDCOMParser
90      ///      ///
91      void setValue  (std::string const &);      void setValue  (std::string const &);
92      ///      ///
     void setEvent (Event *);  
     ///  
93      //@}      //@}
94            
95      ///@name Accessors (get)      ///@name Accessors (get)
# Line 101  namespace GEDCOMParser Line 98  namespace GEDCOMParser
98      ///      ///
99      virtual std::string const &getValue(void) const;      virtual std::string const &getValue(void) const;
100      ///      ///
     SmartPtr<Event> const &getEvent(void) const;  
     ///  
101      //@}      //@}
102            
103      /// operator == used to find an attribute by its type      /// operator == used to find an attribute by its type
# Line 114  namespace GEDCOMParser Line 109  namespace GEDCOMParser
109    protected:    protected:
110      enumIndividualAttributes _type;      enumIndividualAttributes _type;
111      std::string _value;      std::string _value;
     SmartPtr<Event> _event;  
112    };    };
113    ///@name typedefs    ///@name typedefs
114    //@{    //@{

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

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