| 25 |
|
|
| 26 |
#include "GEDCOMParser/GEDCOMFactory.hh" |
#include "GEDCOMParser/GEDCOMFactory.hh" |
| 27 |
#include "GEDCOMParser/LineageLinkageGedcom.hh" |
#include "GEDCOMParser/LineageLinkageGedcom.hh" |
| 28 |
|
#include "GEDCOMParser/ParseErrorManagement/ParseErrorManager.hh" |
| 29 |
|
|
| 30 |
#include <string> |
#include <string> |
| 31 |
|
|
| 38 |
@param factory is the factory used to build the structure during the parsing |
@param factory is the factory used to build the structure during the parsing |
| 39 |
@param lineage is the GEDCOM lineage transmission used to store the parsed structures ; if lineage is not initialized by the constructor, a new object will be created ; otherwise the passed object will be modified |
@param lineage is the GEDCOM lineage transmission used to store the parsed structures ; if lineage is not initialized by the constructor, a new object will be created ; otherwise the passed object will be modified |
| 40 |
*/ |
*/ |
| 41 |
Parser(GEDCOMParser::GEDCOMFactory const * factory, GEDCOMParser::LineageLinkageGedcom * lineage = 0); |
Parser(GEDCOMParser::GEDCOMFactory const * factory, |
| 42 |
~Parser(void) |
GEDCOMParser::LineageLinkageGedcom * lineage = 0); |
| 43 |
{}; |
~Parser(void) |
| 44 |
|
{ |
| 45 |
|
delete _parse_error_manager; _parse_error_manager = 0; |
| 46 |
|
return; |
| 47 |
|
}; |
| 48 |
/** @memo execute the parsing |
/** @memo execute the parsing |
| 49 |
@param filename identifies the file to parse |
@param filename identifies the file to parse |
| 50 |
@param debug : if set to 1, the execution will output its operations on stderr |
@param debug : if set to 1, the execution will output its operations on stderr |
| 51 |
*/ |
*/ |
| 52 |
void Parse(std::string const &filename, int debug = 0); |
GEDCOMParser::ParseErrorManagement::ParseErrorManager const &Parse(std::string const &filename, int debug = 0); |
| 53 |
/** @memo get the lineage linkage GEDCOM structure after the parsing |
/** @memo get the lineage linkage GEDCOM structure after the parsing |
| 54 |
@return a LineageLinkageGedcom object |
@return a LineageLinkageGedcom object |
| 55 |
*/ |
*/ |
| 57 |
private: |
private: |
| 58 |
GEDCOMParser::GEDCOMFactory const * const _factory; |
GEDCOMParser::GEDCOMFactory const * const _factory; |
| 59 |
GEDCOMParser::LineageLinkageGedcom * _lineage_linkage_gedcom; |
GEDCOMParser::LineageLinkageGedcom * _lineage_linkage_gedcom; |
| 60 |
|
GEDCOMParser::ParseErrorManagement::ParseErrorManager * _parse_error_manager; |
| 61 |
}; |
}; |
| 62 |
}; |
}; |
| 63 |
|
|