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