| 30 |
|
|
| 31 |
GEDCOMParser::Parser::Parser(GEDCOMParser::GEDCOMFactory const * factory, GEDCOMParser::LineageLinkageGedcom * lineage) : |
GEDCOMParser::Parser::Parser(GEDCOMParser::GEDCOMFactory const * factory, GEDCOMParser::LineageLinkageGedcom * lineage) : |
| 32 |
_factory(factory), |
_factory(factory), |
| 33 |
_lineage_linkage_gedcom(lineage) |
_lineage_linkage_gedcom(lineage), |
| 34 |
|
_parse_error_manager(0) |
| 35 |
{ |
{ |
| 36 |
|
_parse_error_manager = new GEDCOMParser::ParseErrorManagement::ParseErrorManager; |
| 37 |
bindtextdomain (PACKAGE, PACKAGE_LOCALE_DIR); |
bindtextdomain (PACKAGE, PACKAGE_LOCALE_DIR); |
| 38 |
}; |
}; |
| 39 |
|
|
| 40 |
void GEDCOMParser::Parser::Parse(std::string const &filename, int debug) |
GEDCOMParser::ParseErrorManagement::ParseErrorManager const &GEDCOMParser::Parser::Parse(std::string const &filename, int debug) |
| 41 |
{ |
{ |
| 42 |
GedcomParse(filename, _lineage_linkage_gedcom, _factory, debug); |
GedcomParse(filename, _lineage_linkage_gedcom, _factory, debug, _parse_error_manager); |
| 43 |
if (_lineage_linkage_gedcom == 0) |
if (_lineage_linkage_gedcom == 0) |
| 44 |
{ |
{ |
| 45 |
_lineage_linkage_gedcom = get_lineage_linkage_gedcom(); |
_lineage_linkage_gedcom = get_lineage_linkage_gedcom(); |
| 46 |
} |
} |
| 47 |
return; |
return *_parse_error_manager; |
| 48 |
} |
} |
| 49 |
|
|
| 50 |
GEDCOMParser::LineageLinkageGedcom const * GEDCOMParser::Parser::getLineageLinkageGedcom(void) const |
GEDCOMParser::LineageLinkageGedcom const * GEDCOMParser::Parser::getLineageLinkageGedcom(void) const |