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

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

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

revision 1.6 by cpcp, Thu Feb 20 22:09:15 2003 UTC revision 1.7 by cpcp, Sun Feb 23 21:34:44 2003 UTC
# Line 54  GEDCOMParser::SourceRecord::Data::Event Line 54  GEDCOMParser::SourceRecord::Data::Event
54    if (data == 0)    if (data == 0)
55      {      {
56        GEDCOMParser::GEDCOMFactory * factory = GEDCOMParser::GEDCOMFactoryAccessor::getFactory();        GEDCOMParser::GEDCOMFactory * factory = GEDCOMParser::GEDCOMFactoryAccessor::getFactory();
57        GEDCOMParser::SourceRecord::Data::Event * tmp_data = factory->createSourceRecord_Data_Event();        tmp_data = factory->createSourceRecord_Data_Event();
58      }      }
59    _events.push_back(SmartPtr<SourceRecord::Data::Event>(tmp_data));    _events.push_back(SmartPtr<SourceRecord::Data::Event>(tmp_data));
60    return _events.back().getPtr();    return _events.back().getPtr();
# Line 77  GEDCOMParser::NoteStructure * GEDCOMPars Line 77  GEDCOMParser::NoteStructure * GEDCOMPars
77    if (data == 0)    if (data == 0)
78      {      {
79        GEDCOMParser::GEDCOMFactory * factory = GEDCOMParser::GEDCOMFactoryAccessor::getFactory();        GEDCOMParser::GEDCOMFactory * factory = GEDCOMParser::GEDCOMFactoryAccessor::getFactory();
80        GEDCOMParser::NoteStructure  * tmp_data = factory->createNoteStructure();        tmp_data = factory->createNoteStructure();
81      }      }
82    _notes.push_back(SmartPtr<NoteStructure>(tmp_data));    _notes.push_back(SmartPtr<NoteStructure>(tmp_data));
83    return _notes.back().getPtr();    return _notes.back().getPtr();
# Line 109  GEDCOMParser::SourceRecord::Data * GEDCO Line 109  GEDCOMParser::SourceRecord::Data * GEDCO
109    if (data == 0)    if (data == 0)
110      {      {
111        GEDCOMParser::GEDCOMFactory * factory = GEDCOMParser::GEDCOMFactoryAccessor::getFactory();        GEDCOMParser::GEDCOMFactory * factory = GEDCOMParser::GEDCOMFactoryAccessor::getFactory();
112        GEDCOMParser::SourceRecord::Data  * tmp_data = factory->createSourceRecord_Data();        tmp_data = factory->createSourceRecord_Data();
113      }      }
114    _data = SmartPtr<SourceRecord::Data>(tmp_data);    _data = SmartPtr<SourceRecord::Data>(tmp_data);
115    return _data.getPtr();        return _data.getPtr();    
# Line 177  GEDCOMParser::SourceRepositoryCitation * Line 177  GEDCOMParser::SourceRepositoryCitation *
177    if (data == 0)    if (data == 0)
178      {      {
179        GEDCOMParser::GEDCOMFactory * factory = GEDCOMParser::GEDCOMFactoryAccessor::getFactory();        GEDCOMParser::GEDCOMFactory * factory = GEDCOMParser::GEDCOMFactoryAccessor::getFactory();
180        GEDCOMParser::SourceRepositoryCitation  * tmp_data = factory->createSourceRepositoryCitation();        tmp_data = factory->createSourceRepositoryCitation();
181      }      }
182    _src_rep_citation = SmartPtr<SourceRepositoryCitation>(tmp_data);    _src_rep_citation = SmartPtr<SourceRepositoryCitation>(tmp_data);
183    return _src_rep_citation.getPtr();        return _src_rep_citation.getPtr();    
# Line 189  GEDCOMParser::MultimediaLink * GEDCOMPar Line 189  GEDCOMParser::MultimediaLink * GEDCOMPar
189    if (data == 0)    if (data == 0)
190      {      {
191        GEDCOMParser::GEDCOMFactory * factory = GEDCOMParser::GEDCOMFactoryAccessor::getFactory();        GEDCOMParser::GEDCOMFactory * factory = GEDCOMParser::GEDCOMFactoryAccessor::getFactory();
192        GEDCOMParser::MultimediaLink  * tmp_data = factory->createMultimediaLink();        tmp_data = factory->createMultimediaLink();
193      }      }
194    _mm_links.push_back(SmartPtr<MultimediaLink>(tmp_data));    _mm_links.push_back(SmartPtr<MultimediaLink>(tmp_data));
195    return _mm_links.back().getPtr();    return _mm_links.back().getPtr();
# Line 201  GEDCOMParser::NoteStructure * GEDCOMPars Line 201  GEDCOMParser::NoteStructure * GEDCOMPars
201    if (data == 0)    if (data == 0)
202      {      {
203        GEDCOMParser::GEDCOMFactory * factory = GEDCOMParser::GEDCOMFactoryAccessor::getFactory();        GEDCOMParser::GEDCOMFactory * factory = GEDCOMParser::GEDCOMFactoryAccessor::getFactory();
204        GEDCOMParser::NoteStructure  * tmp_data = factory->createNoteStructure();        tmp_data = factory->createNoteStructure();
205      }      }
206    _notes.push_back(SmartPtr<NoteStructure>(tmp_data));    _notes.push_back(SmartPtr<NoteStructure>(tmp_data));
207    return _notes.back().getPtr();    return _notes.back().getPtr();
# Line 213  GEDCOMParser::UserReference * GEDCOMPars Line 213  GEDCOMParser::UserReference * GEDCOMPars
213    if (data == 0)    if (data == 0)
214      {      {
215        GEDCOMParser::GEDCOMFactory * factory = GEDCOMParser::GEDCOMFactoryAccessor::getFactory();        GEDCOMParser::GEDCOMFactory * factory = GEDCOMParser::GEDCOMFactoryAccessor::getFactory();
216        GEDCOMParser::UserReference  * tmp_data = factory->createUserReference();        tmp_data = factory->createUserReference();
217      }      }
218    _user_references.push_back(SmartPtr<UserReference>(tmp_data));    _user_references.push_back(SmartPtr<UserReference>(tmp_data));
219    return _user_references.back().getPtr();    return _user_references.back().getPtr();
# Line 231  GEDCOMParser::ChangeDate * GEDCOMParser: Line 231  GEDCOMParser::ChangeDate * GEDCOMParser:
231    if (data == 0)    if (data == 0)
232      {      {
233        GEDCOMParser::GEDCOMFactory * factory = GEDCOMParser::GEDCOMFactoryAccessor::getFactory();        GEDCOMParser::GEDCOMFactory * factory = GEDCOMParser::GEDCOMFactoryAccessor::getFactory();
234        GEDCOMParser::ChangeDate  * tmp_data = factory->createChangeDate();        tmp_data = factory->createChangeDate();
235      }      }
236    _change_date = SmartPtr<ChangeDate>(tmp_data);    _change_date = SmartPtr<ChangeDate>(tmp_data);
237    return _change_date.getPtr();      return _change_date.getPtr();  

Legend:
Removed from v.1.6  
changed lines
  Added in v.1.7

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26