21 |
*/ |
*/ |
22 |
#include "SpouseToFamilyLink.hh" |
#include "SpouseToFamilyLink.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::SpouseToFamilyLink::setFamsXref(std::string const & value) |
void GEDCOMParser::SpouseToFamilyLink::setFamsXref(std::string const & value) |
28 |
{ |
{ |
30 |
return; |
return; |
31 |
} |
} |
32 |
|
|
33 |
void GEDCOMParser::SpouseToFamilyLink::addNoteStructure(GEDCOMParser::NoteStructure * const note) |
GEDCOMParser::NoteStructure * GEDCOMParser::SpouseToFamilyLink::addNoteStructure(GEDCOMParser::NoteStructure * const data = 0) |
34 |
{ |
{ |
35 |
_notes.push_back(SmartPtr<NoteStructure>(note)); |
GEDCOMParser::NoteStructure * tmp_data = data; |
36 |
return; |
if (data == 0) |
37 |
|
{ |
38 |
|
GEDCOMParser::GEDCOMFactory * factory = GEDCOMParser::GEDCOMFactoryAccessor::getFactory(); |
39 |
|
GEDCOMParser::NoteStructure * tmp_data = factory->createNoteStructure(); |
40 |
|
} |
41 |
|
_notes.push_back(SmartPtr<NoteStructure>(tmp_data)); |
42 |
|
return _notes.back().getPtr(); |
43 |
} |
} |
44 |
|
|
45 |
GEDCOMParser::NoteStructures_t const &GEDCOMParser::SpouseToFamilyLink::getNoteStructures(void) const |
GEDCOMParser::NoteStructures_t const &GEDCOMParser::SpouseToFamilyLink::getNoteStructures(void) const |