| 21 |
*/ |
*/ |
| 22 |
#include "Header.hh" |
#include "Header.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::Header::setSour(std::string const & value) |
void GEDCOMParser::Header::setSour(std::string const & value) |
| 28 |
{ |
{ |
| 48 |
return; |
return; |
| 49 |
} |
} |
| 50 |
|
|
| 51 |
void GEDCOMParser::Header::setAddress(GEDCOMParser::Address * const value) |
GEDCOMParser::Address * GEDCOMParser::Header::setAddress(GEDCOMParser::Address * const data = 0) |
| 52 |
{ |
{ |
| 53 |
_addr = SmartPtr<Address>(value); |
GEDCOMParser::Address * tmp_data = data; |
| 54 |
return; |
if (data == 0) |
| 55 |
} |
{ |
| 56 |
|
GEDCOMParser::GEDCOMFactory * factory = GEDCOMParser::GEDCOMFactoryAccessor::getFactory(); |
| 57 |
void GEDCOMParser::Header::setData(GEDCOMParser::Data * const value) |
GEDCOMParser::Address * tmp_data = factory->createAddress(); |
| 58 |
{ |
} |
| 59 |
_data = SmartPtr<Data>(value); |
_addr = SmartPtr<Address>(tmp_data); |
| 60 |
return; |
return _addr.getPtr(); |
| 61 |
|
} |
| 62 |
|
|
| 63 |
|
GEDCOMParser::Data * GEDCOMParser::Header::setData(GEDCOMParser::Data * const data = 0) |
| 64 |
|
{ |
| 65 |
|
GEDCOMParser::Data * tmp_data = data; |
| 66 |
|
if (data == 0) |
| 67 |
|
{ |
| 68 |
|
GEDCOMParser::GEDCOMFactory * factory = GEDCOMParser::GEDCOMFactoryAccessor::getFactory(); |
| 69 |
|
GEDCOMParser::Data * tmp_data = factory->createData(); |
| 70 |
|
} |
| 71 |
|
_data = SmartPtr<Data>(tmp_data); |
| 72 |
|
return _data.getPtr(); |
| 73 |
} |
} |
| 74 |
|
|
| 75 |
void GEDCOMParser::Header::setDest(std::string const & value) |
void GEDCOMParser::Header::setDest(std::string const & value) |