/[ghosts]/ghosts/gedcomparser/src/GEDCOMParser/Parser.cpp
ViewVC logotype

Diff of /ghosts/gedcomparser/src/GEDCOMParser/Parser.cpp

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.1.2.2 by cpcp, Mon Sep 23 12:24:59 2002 UTC revision 1.1.2.3 by cpcp, Sun Nov 3 14:25:07 2002 UTC
# Line 30  Line 30 
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

Legend:
Removed from v.1.1.2.2  
changed lines
  Added in v.1.1.2.3

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26