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

Diff of /ghosts/gedcomparser/src/GEDCOMParser/SourceRepositoryCitation.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 22  Line 22 
22  #include "SourceRepositoryCitation.hh"  #include "SourceRepositoryCitation.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::SourceRepositoryCitation::SourceCallNumber::setCallNumber(std::string const &value)  void GEDCOMParser::SourceRepositoryCitation::SourceCallNumber::setCallNumber(std::string const &value)
29  {  {
# Line 41  void GEDCOMParser::SourceRepositoryCitat Line 43  void GEDCOMParser::SourceRepositoryCitat
43    return;    return;
44  }  }
45    
46  void GEDCOMParser::SourceRepositoryCitation::addNoteStructure(GEDCOMParser::NoteStructure * const note)  GEDCOMParser::NoteStructure * GEDCOMParser::SourceRepositoryCitation::addNoteStructure(GEDCOMParser::NoteStructure * const data = 0)
47  {  {
48    _notes.push_back(SmartPtr<NoteStructure>(note));      GEDCOMParser::NoteStructure  * tmp_data = data;
49    return;    if (data == 0)
50        {
51          GEDCOMParser::GEDCOMFactory * factory = GEDCOMParser::GEDCOMFactoryAccessor::getFactory();
52          GEDCOMParser::NoteStructure  * tmp_data = factory->createNoteStructure();
53        }
54      _notes.push_back(SmartPtr<NoteStructure>(tmp_data));
55      return _notes.back().getPtr();
56  }  }
57    
58  void GEDCOMParser::SourceRepositoryCitation::addSourceCallNumber(GEDCOMParser::SourceRepositoryCitation::SourceCallNumber * const caln)  GEDCOMParser::SourceRepositoryCitation::SourceCallNumber * GEDCOMParser::SourceRepositoryCitation::addSourceCallNumber(GEDCOMParser::SourceRepositoryCitation::SourceCallNumber * const data = 0)
59  {  {
60    _call_numbers.push_back(SmartPtr<SourceCallNumber>(caln));    GEDCOMParser::SourceRepositoryCitation::SourceCallNumber  * tmp_data = data;
61    return;    if (data == 0)
62        {
63          GEDCOMParser::GEDCOMFactory * factory = GEDCOMParser::GEDCOMFactoryAccessor::getFactory();
64          GEDCOMParser::SourceRepositoryCitation::SourceCallNumber * tmp_data = factory->createSourceRepositoryCitation_SourceCallNumber();
65        }
66      _call_numbers.push_back(SmartPtr<SourceRepositoryCitation::SourceCallNumber>(tmp_data));
67      return _call_numbers.back().getPtr();
68  }  }
69    
70    

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