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

Diff of /ghosts/gedcomparser/src/GEDCOMParser/IndividualEvent.cpp

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, Thu Mar 20 20:42:05 2003 UTC
# Line 26  Line 26 
26    
27  #include "IndividualEvent.hh"  #include "IndividualEvent.hh"
28  #include "GEDCOMParser/Visitor/GEDCOMVisitor.hh"  #include "GEDCOMParser/Visitor/GEDCOMVisitor.hh"
29    #include "GEDCOMParser/GEDCOMFactory.hh"
30    #include "GEDCOMParser/GEDCOMFactoryAccessor.hh"
31    
32  #include "gettext.h"  #include "gettext.h"
33  #define _(String) dgettext(PACKAGE, String)  #define _(String) dgettext(PACKAGE, String)
# Line 37  void GEDCOMParser::IndividualEvent::setT Line 39  void GEDCOMParser::IndividualEvent::setT
39    return;    return;
40  }  }
41    
42  void GEDCOMParser::IndividualEvent::setEvent(GEDCOMParser::Event * e)  GEDCOMParser::Event * GEDCOMParser::IndividualEvent::setEvent(GEDCOMParser::Event * data = 0)
43  {  {
44      GEDCOMParser::Event * tmp_data = data;
45      if (data == 0)
46        {
47          GEDCOMParser::GEDCOMFactory * factory = GEDCOMParser::GEDCOMFactoryAccessor::getFactory();
48          tmp_data = factory->createEvent();
49        }
50    if (_event.Null())    if (_event.Null())
51      {      {
52        _event = SmartPtr<GEDCOMParser::Event>(e);        _event = SmartPtr<GEDCOMParser::Event>(tmp_data);
53      }      }
54    _event->copyLastUpdatedAttr(*e);    _event->copyLastUpdatedAttr(*tmp_data);
55    return;    return _event.getPtr();
56  }  }
57    
58  void GEDCOMParser::IndividualEvent::setFamcXref(std::string const & value)  void GEDCOMParser::IndividualEvent::setFamcXref(std::string const & value)

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