22 |
#include "ChangeDate.hh" |
#include "ChangeDate.hh" |
23 |
#include "patterns/SmartPtr.hh" |
#include "patterns/SmartPtr.hh" |
24 |
#include "GEDCOMParser/Visitor/GEDCOMVisitor.hh" |
#include "GEDCOMParser/Visitor/GEDCOMVisitor.hh" |
25 |
|
#include "GEDCOMParser/GEDCOMFactory.hh" |
26 |
|
#include "GEDCOMParser/GEDCOMFactoryAccessor.hh" |
27 |
|
|
28 |
void GEDCOMParser::ChangeDate::setDate(std::string const & value) |
void GEDCOMParser::ChangeDate::setDate(std::string const & value) |
29 |
{ |
{ |
41 |
return; |
return; |
42 |
} |
} |
43 |
|
|
44 |
void GEDCOMParser::ChangeDate::addNoteStructure(GEDCOMParser::NoteStructure * const note_structure) |
GEDCOMParser::NoteStructure * GEDCOMParser::ChangeDate::addNoteStructure(GEDCOMParser::NoteStructure * const data = 0) |
45 |
{ |
{ |
46 |
_notes.push_back(SmartPtr<NoteStructure>(note_structure)); |
GEDCOMParser::NoteStructure * tmp_data = data; |
47 |
return; |
if (data == 0) |
48 |
|
{ |
49 |
|
GEDCOMParser::GEDCOMFactory * factory = GEDCOMParser::GEDCOMFactoryAccessor::getFactory(); |
50 |
|
GEDCOMParser::NoteStructure * tmp_data = factory->createNoteStructure(); |
51 |
|
} |
52 |
|
_notes.push_back(SmartPtr<NoteStructure>(tmp_data)); |
53 |
|
return _notes.back().getPtr(); |
54 |
} |
} |
55 |
|
|
56 |
GEDCOMParser::NoteStructures_t const &GEDCOMParser::ChangeDate::getNoteStructures(void) const |
GEDCOMParser::NoteStructures_t const &GEDCOMParser::ChangeDate::getNoteStructures(void) const |