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

Diff of /ghosts/gedcomparser/src/GEDCOMParser/NoteStructure.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 "NoteStructure.hh"  #include "NoteStructure.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::NoteStructure::setNoteXref(std::string const & value)  void GEDCOMParser::NoteStructure::setNoteXref(std::string const & value)
28  {  {
# Line 28  void GEDCOMParser::NoteStructure::setNot Line 30  void GEDCOMParser::NoteStructure::setNot
30    return;    return;
31  }  }
32    
33  void GEDCOMParser::NoteStructure::addSourceCitation(GEDCOMParser::SourceCitation * const src_citation)  GEDCOMParser::SourceCitation * GEDCOMParser::NoteStructure::addSourceCitation(GEDCOMParser::SourceCitation * const data = 0)
34  {  {
35    _citations.push_back(SmartPtr<SourceCitation>(src_citation));    GEDCOMParser::SourceCitation  * tmp_data = data;
36    return;    if (data == 0)
37        {
38          GEDCOMParser::GEDCOMFactory * factory = GEDCOMParser::GEDCOMFactoryAccessor::getFactory();
39          GEDCOMParser::SourceCitation  * tmp_data = factory->createSourceCitation();
40        }
41      _citations.push_back(SmartPtr<SourceCitation>(tmp_data));
42      return _citations.back().getPtr();  
43  }  }
44    
45  void GEDCOMParser::NoteStructure::concSubmitterText(std::string const & value)  void GEDCOMParser::NoteStructure::concSubmitterText(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