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

Diff of /ghosts/gedcomparser/src/GEDCOMParser/LdsSpouseSealing.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 21  Line 21 
21  */  */
22  #include "LdsSpouseSealing.hh"  #include "LdsSpouseSealing.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::LdsSpouseSealing::setStatus(std::string const & value)  void GEDCOMParser::LdsSpouseSealing::setStatus(std::string const & value)
28  {  {
# Line 50  void GEDCOMParser::LdsSpouseSealing::set Line 52  void GEDCOMParser::LdsSpouseSealing::set
52    return;    return;
53  }  }
54    
55  void GEDCOMParser::LdsSpouseSealing::addSourceCitation(GEDCOMParser::SourceCitation * const src_citation)  GEDCOMParser::SourceCitation * GEDCOMParser::LdsSpouseSealing::addSourceCitation(GEDCOMParser::SourceCitation * const data = 0)
56  {  {
57    _citations.push_back(SmartPtr<SourceCitation>(src_citation));    GEDCOMParser::SourceCitation  * tmp_data = data;
58    return;    if (data == 0)
59        {
60          GEDCOMParser::GEDCOMFactory * factory = GEDCOMParser::GEDCOMFactoryAccessor::getFactory();
61          GEDCOMParser::SourceCitation  * tmp_data = factory->createSourceCitation();
62        }
63      _citations.push_back(SmartPtr<SourceCitation>(tmp_data));
64      return _citations.back().getPtr();
65  }  }
66    
67  void GEDCOMParser::LdsSpouseSealing::addNoteStructure(GEDCOMParser::NoteStructure * const note_structure)  GEDCOMParser::NoteStructure * GEDCOMParser::LdsSpouseSealing::addNoteStructure(GEDCOMParser::NoteStructure * const data = 0)
68  {  {
69    _notes.push_back(SmartPtr<NoteStructure>(note_structure));    GEDCOMParser::NoteStructure  * tmp_data = data;
70    return;    if (data == 0)
71        {
72          GEDCOMParser::GEDCOMFactory * factory = GEDCOMParser::GEDCOMFactoryAccessor::getFactory();
73          GEDCOMParser::NoteStructure  * tmp_data = factory->createNoteStructure();
74        }
75      _notes.push_back(SmartPtr<NoteStructure>(tmp_data));
76      return _notes.back().getPtr();
77  }  }
78    
79    

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