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) |
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) |