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

Diff of /ghosts/gedcomparser/src/GEDCOMParser/LdsIndividualOrdinance.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 27  Line 27 
27  #include "patterns/SmartPtr.hh"  #include "patterns/SmartPtr.hh"
28  #include "GEDCOMParser/NoteStructure.hh"  #include "GEDCOMParser/NoteStructure.hh"
29  #include "GEDCOMParser/SourceCitation.hh"  #include "GEDCOMParser/SourceCitation.hh"
30    #include "GEDCOMParser/DateManagement/DateValue.hh"
31    
32  /// Package GEDCOMParser  /// Package GEDCOMParser
33  namespace GEDCOMParser  namespace GEDCOMParser
# Line 53  namespace GEDCOMParser Line 54  namespace GEDCOMParser
54      LdsIndividualOrdinance (enumLdsIndividualOrdinance type = e_None):      LdsIndividualOrdinance (enumLdsIndividualOrdinance type = e_None):
55        _type (type),        _type (type),
56        _stat (),        _stat (),
57        _date (),        _date (0),
58        _temple_code (),        _temple_code (),
59        _place (),        _place (),
60        _famc_xref (),        _famc_xref (),
# Line 61  namespace GEDCOMParser Line 62  namespace GEDCOMParser
62        _notes ()        _notes ()
63      {      {
64      };      };
65        LdsIndividualOrdinance (LdsIndividualOrdinance const &l):
66          _type (l._type),
67          _stat (l._stat),
68          _date (0),
69          _temple_code (l._temple_code),
70          _place (l._place),
71          _famc_xref (l._famc_xref),
72          _citations (l._citations),
73          _notes (l._notes)
74        {
75          if (l._date != 0)
76            {
77              _date = new GEDCOMParser::DateManagement::DateValue(*l._date);
78            }
79          return;
80        };
81    
82      virtual ~LdsIndividualOrdinance(void)      virtual ~LdsIndividualOrdinance(void)
83      {      {
84          delete _date; _date = 0;
85      };      };
86      ///@name Accessors (set)      ///@name Accessors (set)
87      //@{            //@{      
# Line 91  namespace GEDCOMParser Line 110  namespace GEDCOMParser
110      ///      ///
111      virtual std::string const &getStat(void) const;      virtual std::string const &getStat(void) const;
112      ///      ///
113      virtual std::string const &getDate(void) const;      virtual std::string const getDate(void) const;
114      ///      ///
115      virtual std::string const &getTempleCode(void) const;      virtual std::string const &getTempleCode(void) const;
116      ///      ///
# Line 108  namespace GEDCOMParser Line 127  namespace GEDCOMParser
127    protected:    protected:
128      enumLdsIndividualOrdinance _type;      enumLdsIndividualOrdinance _type;
129      std::string _stat;      std::string _stat;
130      std::string _date;      GEDCOMParser::DateManagement::DateValue * _date;
131      std::string _temple_code;      std::string _temple_code;
132      std::string _place;      std::string _place;
133      std::string _famc_xref;      std::string _famc_xref;

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