21 |
*/ |
*/ |
22 |
#include "ChildToFamilyLink.hh" |
#include "ChildToFamilyLink.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::ChildToFamilyLink::setFamcXref(std::string const &value) |
void GEDCOMParser::ChildToFamilyLink::setFamcXref(std::string const &value) |
28 |
{ |
{ |
36 |
return; |
return; |
37 |
} |
} |
38 |
|
|
39 |
void GEDCOMParser::ChildToFamilyLink::addNoteStructure(GEDCOMParser::NoteStructure * const note) |
GEDCOMParser::NoteStructure * GEDCOMParser::ChildToFamilyLink::addNoteStructure(GEDCOMParser::NoteStructure * const data = 0) |
40 |
{ |
{ |
41 |
_notes.push_back(SmartPtr<NoteStructure>(note)); |
GEDCOMParser::NoteStructure * tmp_data = data; |
42 |
return; |
if (data == 0) |
43 |
|
{ |
44 |
|
GEDCOMParser::GEDCOMFactory * factory = GEDCOMParser::GEDCOMFactoryAccessor::getFactory(); |
45 |
|
GEDCOMParser::NoteStructure * tmp_data = factory->createNoteStructure(); |
46 |
|
} |
47 |
|
_notes.push_back(SmartPtr<NoteStructure>(tmp_data)); |
48 |
|
return _notes.back().getPtr(); |
49 |
} |
} |
50 |
|
|
51 |
|
|