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

Diff of /ghosts/gedcomparser/src/GEDCOMParser/ChildToFamilyLink.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 Feb 20 22:09:15 2003 UTC
# Line 21  Line 21 
21  */  */
22  #include "ChildToFamilyLink.hh"  #include "ChildToFamilyLink.hh"
23  #include "GEDCOMParser/Visitor/GEDCOMVisitor.hh"  #include "GEDCOMParser/Visitor/GEDCOMVisitor.hh"
24    #include "GEDCOMParser/GEDCOMFactory.hh"
25    #include "GEDCOMParser/GEDCOMFactoryAccessor.hh"
26    
27  void GEDCOMParser::ChildToFamilyLink::setFamcXref(std::string const &value)  void GEDCOMParser::ChildToFamilyLink::setFamcXref(std::string const &value)
28  {  {
# Line 34  void GEDCOMParser::ChildToFamilyLink::ad Line 36  void GEDCOMParser::ChildToFamilyLink::ad
36    return;    return;
37  }  }
38    
39  void GEDCOMParser::ChildToFamilyLink::addNoteStructure(GEDCOMParser::NoteStructure * const note)  GEDCOMParser::NoteStructure * GEDCOMParser::ChildToFamilyLink::addNoteStructure(GEDCOMParser::NoteStructure * const data = 0)
40  {  {
41    _notes.push_back(SmartPtr<NoteStructure>(note));    GEDCOMParser::NoteStructure  * tmp_data = data;
42    return;    if (data == 0)
43        {
44          GEDCOMParser::GEDCOMFactory * factory = GEDCOMParser::GEDCOMFactoryAccessor::getFactory();
45          GEDCOMParser::NoteStructure  * tmp_data = factory->createNoteStructure();
46        }
47      _notes.push_back(SmartPtr<NoteStructure>(tmp_data));
48      return _notes.back().getPtr();
49  }  }
50    
51    

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