/[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.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 39  void GEDCOMParser::IndividualEvent::setT Line 39  void GEDCOMParser::IndividualEvent::setT
39    return;    return;
40  }  }
41    
 GEDCOMParser::Event * GEDCOMParser::IndividualEvent::setEvent(GEDCOMParser::Event * data = 0)  
 {  
   GEDCOMParser::Event * tmp_data = data;  
   if (data == 0)  
     {  
       GEDCOMParser::GEDCOMFactory * factory = GEDCOMParser::GEDCOMFactoryAccessor::getFactory();  
       tmp_data = factory->createEvent();  
     }  
   if (_event.Null())  
     {  
       _event = SmartPtr<GEDCOMParser::Event>(tmp_data);  
     }  
   _event->copyLastUpdatedAttr(*tmp_data);  
   return _event.getPtr();  
 }  
   
42  void GEDCOMParser::IndividualEvent::setFamcXref(std::string const & value)  void GEDCOMParser::IndividualEvent::setFamcXref(std::string const & value)
43  {  {
44    _famc_xref = value;    _famc_xref = value;
# Line 72  GEDCOMParser::IndividualEvent::enumIndiv Line 56  GEDCOMParser::IndividualEvent::enumIndiv
56    return _type;    return _type;
57  }  }
58    
   
 SmartPtr<GEDCOMParser::Event> const &GEDCOMParser::IndividualEvent::getEvent(void) const  
 {  
   return _event;  
 }  
   
59  std::string const GEDCOMParser::IndividualEvent::getType(void) const  std::string const GEDCOMParser::IndividualEvent::getType(void) const
60  {  {
61    std::string res;    std::string res;

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