18 #ifndef VCSN_XML_PARSERS_HH
19 # define VCSN_XML_PARSERS_HH
33 # include <xercesc/sax2/SAX2XMLReader.hpp>
35 # include <vaucanson/xml/handlers.hh>
48 Parser (
bool check =
true);
55 ErrHandler* err_handler_;
57 xercesc::SAX2XMLReader* parser_;
65 template <
typename Auto>
66 class AutParser :
public Parser
69 AutParser (Auto& a,
bool check =
true);
70 virtual ~AutParser ();
73 parse (std::istream& in);
76 DocAutHandler<Auto>* doc_handler_;
84 class RegExpParser :
public Parser
87 RegExpParser (T& r,
bool check =
true);
88 virtual ~RegExpParser ();
91 parse (std::istream& in);
94 DocRegExpHandler<T>* doc_handler_;
100 # if !defined VCSN_USE_INTERFACE_ONLY || defined VCSN_USE_LIB
101 # include <vaucanson/xml/parsers.hxx>
102 # endif // VCSN_USE_INTERFACE_ONLY
104 #endif // !VCSN_XML_PARSERS_HH