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

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

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.4 by cpcp, Sun Jan 26 21:15:21 2003 UTC revision 1.5 by cpcp, Thu Feb 20 22:09:15 2003 UTC
# Line 22  Line 22 
22  #include "ChangeDate.hh"  #include "ChangeDate.hh"
23  #include "patterns/SmartPtr.hh"  #include "patterns/SmartPtr.hh"
24  #include "GEDCOMParser/Visitor/GEDCOMVisitor.hh"  #include "GEDCOMParser/Visitor/GEDCOMVisitor.hh"
25    #include "GEDCOMParser/GEDCOMFactory.hh"
26    #include "GEDCOMParser/GEDCOMFactoryAccessor.hh"
27    
28  void GEDCOMParser::ChangeDate::setDate(std::string const & value)  void GEDCOMParser::ChangeDate::setDate(std::string const & value)
29  {  {
# Line 39  void GEDCOMParser::ChangeDate::setTime(s Line 41  void GEDCOMParser::ChangeDate::setTime(s
41    return;    return;
42  }  }
43    
44  void GEDCOMParser::ChangeDate::addNoteStructure(GEDCOMParser::NoteStructure * const note_structure)  GEDCOMParser::NoteStructure * GEDCOMParser::ChangeDate::addNoteStructure(GEDCOMParser::NoteStructure * const data = 0)
45  {  {
46    _notes.push_back(SmartPtr<NoteStructure>(note_structure));    GEDCOMParser::NoteStructure  * tmp_data = data;
47    return;    if (data == 0)
48        {
49          GEDCOMParser::GEDCOMFactory * factory = GEDCOMParser::GEDCOMFactoryAccessor::getFactory();
50          GEDCOMParser::NoteStructure  * tmp_data = factory->createNoteStructure();
51        }
52      _notes.push_back(SmartPtr<NoteStructure>(tmp_data));
53      return _notes.back().getPtr();
54  }  }
55    
56  GEDCOMParser::NoteStructures_t const &GEDCOMParser::ChangeDate::getNoteStructures(void) const  GEDCOMParser::NoteStructures_t const &GEDCOMParser::ChangeDate::getNoteStructures(void) const

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