18 #ifndef VCSN_XML_XML_HXX
19 # define VCSN_XML_XML_HXX
28 XML::XML(
const std::string& name)
33 xercesc::XMLPlatformUtils::Initialize();
40 xercesc::XMLPlatformUtils::Terminate();
43 XML::XML(
const XML& old)
49 template <
typename Auto,
typename T,
typename Format,
typename Conv>
50 void XML::operator()(std::ostream& out,
51 const vcsn::tools::automaton_saver_<Auto, T, Format>& s,
54 AutPrinter<Auto>* printer =
new AutPrinter<Auto>(s.automaton(), name_);
59 template <
typename RE,
typename T,
typename Format,
typename Conv>
60 void XML::operator()(std::ostream& out,
61 const vcsn::tools::regexp_saver_<RE, T, Format>& s,
64 RegExpPrinter<RE>* printer =
new RegExpPrinter<RE>(s.rat_exp(), name_);
69 template <
typename Auto,
typename T,
typename Format>
71 XML::operator()(std::istream& in,
72 vcsn::tools::automaton_loader_<Auto, T, Format>& l,
75 AutParser<Auto>* parser =
new AutParser<Auto>(l.automaton(), check);
80 template <
typename RE,
typename T,
typename Format>
82 XML::operator()(std::istream& in,
83 vcsn::tools::regexp_loader_<RE, T, Format>& l,
86 RegExpParser<RE>* parser =
new RegExpParser<RE>(l.rat_exp(), check);
96 #endif // ! VCSN_XML_XML_HXX