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

Diff of /ghosts/gedcomparser/src/GEDCOMParser/SourceCitation.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 "SourceCitation.hh"  #include "SourceCitation.hh"
23  #include "GEDCOMParser/Visitor/GEDCOMVisitor.hh"  #include "GEDCOMParser/Visitor/GEDCOMVisitor.hh"
24    #include "GEDCOMParser/GEDCOMFactory.hh"
25    #include "GEDCOMParser/GEDCOMFactoryAccessor.hh"
26    
27    
28  void GEDCOMParser::SourceCitation::setSourceXref(std::string const & value)  void GEDCOMParser::SourceCitation::setSourceXref(std::string const & value)
# Line 75  void GEDCOMParser::SourceCitation::setQu Line 77  void GEDCOMParser::SourceCitation::setQu
77    return;    return;
78  }  }
79    
80  void GEDCOMParser::SourceCitation::addMultimediaLink(GEDCOMParser::MultimediaLink * const mm_link)  GEDCOMParser::MultimediaLink * GEDCOMParser::SourceCitation::addMultimediaLink(GEDCOMParser::MultimediaLink * const data = 0)
81  {  {
82    _mm_links.push_back(SmartPtr<MultimediaLink>(mm_link));    GEDCOMParser::MultimediaLink  * tmp_data = data;
83    return;    if (data == 0)
84        {
85          GEDCOMParser::GEDCOMFactory * factory = GEDCOMParser::GEDCOMFactoryAccessor::getFactory();
86          GEDCOMParser::MultimediaLink  * tmp_data = factory->createMultimediaLink();
87        }
88      _mm_links.push_back(SmartPtr<MultimediaLink>(tmp_data));
89      return _mm_links.back().getPtr();
90  }  }
91    
92  void GEDCOMParser::SourceCitation::addNoteStructure(GEDCOMParser::NoteStructure * const note_structure)  GEDCOMParser::NoteStructure * GEDCOMParser::SourceCitation::addNoteStructure(GEDCOMParser::NoteStructure * const data = 0)
93  {  {
94    _notes.push_back(SmartPtr<NoteStructure>(note_structure));    GEDCOMParser::NoteStructure  * tmp_data = data;
95    return;    if (data == 0)
96        {
97          GEDCOMParser::GEDCOMFactory * factory = GEDCOMParser::GEDCOMFactoryAccessor::getFactory();
98          GEDCOMParser::NoteStructure  * tmp_data = factory->createNoteStructure();
99        }
100      _notes.push_back(SmartPtr<NoteStructure>(tmp_data));
101      return _notes.back().getPtr();
102  }  }
103    
104  void GEDCOMParser::SourceCitation::concDescription(std::string const & value)  void GEDCOMParser::SourceCitation::concDescription(std::string const & value)

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