| 21 |
*/ |
*/ |
| 22 |
#include "MultimediaLink.hh" |
#include "MultimediaLink.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::MultimediaLink::setObjXref(std::string const & value) |
void GEDCOMParser::MultimediaLink::setObjXref(std::string const & value) |
| 28 |
{ |
{ |
| 48 |
return; |
return; |
| 49 |
} |
} |
| 50 |
|
|
| 51 |
void GEDCOMParser::MultimediaLink::addNoteStructure(GEDCOMParser::NoteStructure * const note_structure) |
GEDCOMParser::NoteStructure * GEDCOMParser::MultimediaLink::addNoteStructure(GEDCOMParser::NoteStructure * const data = 0) |
| 52 |
{ |
{ |
| 53 |
_notes.push_back(SmartPtr<NoteStructure>(note_structure)); |
GEDCOMParser::NoteStructure * tmp_data = data; |
| 54 |
return; |
if (data == 0) |
| 55 |
|
{ |
| 56 |
|
GEDCOMParser::GEDCOMFactory * factory = GEDCOMParser::GEDCOMFactoryAccessor::getFactory(); |
| 57 |
|
GEDCOMParser::NoteStructure * tmp_data = factory->createNoteStructure(); |
| 58 |
|
} |
| 59 |
|
_notes.push_back(SmartPtr<NoteStructure>(tmp_data)); |
| 60 |
|
return _notes.back().getPtr(); |
| 61 |
} |
} |
| 62 |
|
|
| 63 |
GEDCOMParser::MultimediaLink::~MultimediaLink(void) |
GEDCOMParser::MultimediaLink::~MultimediaLink(void) |