22 |
#include "SourceRepositoryCitation.hh" |
#include "SourceRepositoryCitation.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::SourceRepositoryCitation::SourceCallNumber::setCallNumber(std::string const &value) |
void GEDCOMParser::SourceRepositoryCitation::SourceCallNumber::setCallNumber(std::string const &value) |
29 |
{ |
{ |
43 |
return; |
return; |
44 |
} |
} |
45 |
|
|
46 |
void GEDCOMParser::SourceRepositoryCitation::addNoteStructure(GEDCOMParser::NoteStructure * const note) |
GEDCOMParser::NoteStructure * GEDCOMParser::SourceRepositoryCitation::addNoteStructure(GEDCOMParser::NoteStructure * const data = 0) |
47 |
{ |
{ |
48 |
_notes.push_back(SmartPtr<NoteStructure>(note)); |
GEDCOMParser::NoteStructure * tmp_data = data; |
49 |
return; |
if (data == 0) |
50 |
|
{ |
51 |
|
GEDCOMParser::GEDCOMFactory * factory = GEDCOMParser::GEDCOMFactoryAccessor::getFactory(); |
52 |
|
GEDCOMParser::NoteStructure * tmp_data = factory->createNoteStructure(); |
53 |
|
} |
54 |
|
_notes.push_back(SmartPtr<NoteStructure>(tmp_data)); |
55 |
|
return _notes.back().getPtr(); |
56 |
} |
} |
57 |
|
|
58 |
void GEDCOMParser::SourceRepositoryCitation::addSourceCallNumber(GEDCOMParser::SourceRepositoryCitation::SourceCallNumber * const caln) |
GEDCOMParser::SourceRepositoryCitation::SourceCallNumber * GEDCOMParser::SourceRepositoryCitation::addSourceCallNumber(GEDCOMParser::SourceRepositoryCitation::SourceCallNumber * const data = 0) |
59 |
{ |
{ |
60 |
_call_numbers.push_back(SmartPtr<SourceCallNumber>(caln)); |
GEDCOMParser::SourceRepositoryCitation::SourceCallNumber * tmp_data = data; |
61 |
return; |
if (data == 0) |
62 |
|
{ |
63 |
|
GEDCOMParser::GEDCOMFactory * factory = GEDCOMParser::GEDCOMFactoryAccessor::getFactory(); |
64 |
|
GEDCOMParser::SourceRepositoryCitation::SourceCallNumber * tmp_data = factory->createSourceRepositoryCitation_SourceCallNumber(); |
65 |
|
} |
66 |
|
_call_numbers.push_back(SmartPtr<SourceRepositoryCitation::SourceCallNumber>(tmp_data)); |
67 |
|
return _call_numbers.back().getPtr(); |
68 |
} |
} |
69 |
|
|
70 |
|
|