| 22 |
#include "BakeryGateway/Document.hh" |
#include "BakeryGateway/Document.hh" |
| 23 |
#include "GEDCOMParser/Parser.hh" |
#include "GEDCOMParser/Parser.hh" |
| 24 |
#include "GEDCOMParser/GEDCOMFactory.hh" |
#include "GEDCOMParser/GEDCOMFactory.hh" |
| 25 |
|
#include "GEDCOMParser/GEDCOMFactoryAccessor.hh" |
| 26 |
#include "GEDCOMParser/ParseErrorManagement/ParseErrorManager.hh" |
#include "GEDCOMParser/ParseErrorManagement/ParseErrorManager.hh" |
| 27 |
|
|
| 28 |
bool BakeryGateway::Document::load(void) |
bool BakeryGateway::Document::load(void) |
| 29 |
{ |
{ |
| 30 |
bool res; |
bool res; |
| 31 |
GEDCOMParser::GEDCOMFactory factory; |
GEDCOMParser::GEDCOMFactory factory; |
| 32 |
|
GEDCOMParser::GEDCOMFactoryAccessor::Init(&factory); |
| 33 |
GEDCOMParser::Parser parser(&factory, this); |
GEDCOMParser::Parser parser(&factory, this); |
| 34 |
std::string filename = Bakery::Document::get_filepath(); |
std::string filename = Bakery::Document::get_filepath(); |
| 35 |
GEDCOMParser::ParseErrorManagement::ParseErrorManager parse_error_manager = parser.Parse(filename, PARSERDEBUG); |
GEDCOMParser::ParseErrorManagement::ParseErrorManager parse_error_manager = parser.Parse(filename, PARSERDEBUG); |