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