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

Diff of /ghosts/gedcomparser/src/GEDCOMParser/FamilyEvent.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 31  void GEDCOMParser::FamilyEvent::setType( Line 31  void GEDCOMParser::FamilyEvent::setType(
31    return;    return;
32  }  }
33    
 GEDCOMParser::Event * GEDCOMParser::FamilyEvent::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();  
 }  
   
34  void GEDCOMParser::FamilyEvent::setHusbAge(std::string const & value)  void GEDCOMParser::FamilyEvent::setHusbAge(std::string const & value)
35  {  {
36    _husb_age = value;    _husb_age = value;
# Line 64  GEDCOMParser::FamilyEvent::enumFamilyEve Line 47  GEDCOMParser::FamilyEvent::enumFamilyEve
47    return _type;    return _type;
48  }  }
49    
 SmartPtr<GEDCOMParser::Event> const &GEDCOMParser::FamilyEvent::getEvent(void) const  
 {  
   return _event;  
 }  
   
50  std::string const &GEDCOMParser::FamilyEvent::getHusbAge(void) const  std::string const &GEDCOMParser::FamilyEvent::getHusbAge(void) const
51  {  {
52    return _husb_age;    return _husb_age;

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