vcsn::xml::tools Namespace Reference


Functions

template<class S>
const char * get_monoid_type (const S &)
template<class S>
const char * get_semiring_operations (const S &)
template<class S, class T>
const char * get_semiring_set (const S &, const T &)
 Tools to generate automaton labels from string, and to ensure type compatibility.
template<class S, class T, class U>
void add_label (xercesc::DOMElement *, const Element< S, T > &, const U &)
template<class M>
xercesc::DOMElement * create_monoid (const M &monoid, xercesc::DOMDocument *doc, xercesc::DOMElement *elt)
template<class A>
void create_alphabet (const A &alphabet, xercesc::DOMDocument *doc, xercesc::DOMElement *root)
template<class A, class S>
xercesc::DOMElement * create_semiring (const A &aut, const S &semiring, xercesc::DOMDocument *doc, xercesc::DOMElement *elt)
template<class T>
T::series_set_elt_t get_series (xercesc::DOMElement *node, T &aut)
 Get series from a XML label node.
template<class U, class V>
void insert_letter (Element< vcsn::algebra::AlphabetSet< U >, V > &, const std::string &)
 Insert a letter in an alphabet.
template<class U>
void ensure_monoid_type (const xercesc::DOMElement *node, const U &param)
 Check semiring conformance of the automaton w.r.t.
template<class T, class U>
void ensure_semiring_type (const xercesc::DOMElement *node, const T &, const U &param)
 Check semiring conformance of the automaton w.r.t.
template<class OStream>
void print_document (xercesc::DOMElement *node, OStream &os)
 Print XML tree to output stream.
template<class S>
const char * get_semiring_set (const S &, const bool &)
template<class S>
const char * get_semiring_set (const S &, const double &)
template<class S>
const char * get_semiring_set (const S &, const float &)
template<class S>
const char * get_semiring_set (const S &, const int &)
template<class S, class U, class V>
const char * get_semiring_set (const S &, const vcsn::rat::exp< U, V > &)
template<class S>
const char * get_monoid_type (const vcsn::algebra::FreeMonoid< S > &)
template<class S1, class S2>
const char * get_monoid_type (const vcsn::algebra::FreeMonoidProduct< S1, S2 > &)
void set_attribute (xercesc::DOMElement *e, std::string k, std::string v)
void xset_attribute (xercesc::DOMElement *e, std::string k, std::string v)
template<class S, class T, class U>
void add_xml_label (xercesc::DOMDocument *doc, xercesc::DOMElement *elt, const Element< S, T > &a, const U &series)
template<class S, class T, class U, class M1, class M2>
void add_label (xercesc::DOMElement *elt, const Element< Automata< vcsn::algebra::Series< S, vcsn::algebra::FreeMonoidProduct< M1, M2 > > >, T > &, const U &series)
template<class S, class T, class U, class M1, class M2>
void add_xml_label (xercesc::DOMDocument *doc, xercesc::DOMElement *elt, const Element< Automata< vcsn::algebra::Series< S, vcsn::algebra::FreeMonoidProduct< M1, M2 > > >, T > &a, const U &series)
template<class S, class T, class U>
void add_label (xercesc::DOMElement *elt, const Element< Transducer< S >, T > &, const U &series)
template<class S, class T, class U>
void add_xml_label (xercesc::DOMDocument *doc, xercesc::DOMElement *elt, const Element< Transducer< S >, T > &a, const U &series)
template<class L>
const std::string get_label (const L &l)
const std::string get_label (const bool &l)
const std::string get_label (const std::pair< std::string, std::string > &l)
template<class S, class Series>
const std::string get_label (const Element< Series, vcsn::algebra::polynom< S, bool > > &l)
template<class S, class T>
xercesc::DOMElement * create_semiring (const Element< Transducer< S >, T > &, const vcsn::algebra::NumericalSemiring &semiring, xercesc::DOMDocument *doc, xercesc::DOMElement *elt)
template<class T>
Element< typename T::series_set_t,
rat::exp< typename T::monoid_elt_value_t,
typename T::semiring_elt_value_t > > 
get_rec_xml_series (xercesc::DOMNode *n, T &aut)
template<class S, class T, class M1, class M2>
Element< Automata< vcsn::algebra::Series<
S, vcsn::algebra::FreeMonoidProduct<
M1, M2 > > >, T >::series_set_elt_t 
get_series (xercesc::DOMElement *node, Element< Automata< vcsn::algebra::Series< S, vcsn::algebra::FreeMonoidProduct< M1, M2 > > >, T > &a)
template<class S, class T>
Element< Transducer< S >,
T >::series_set_elt_t 
get_series (xercesc::DOMElement *node, Element< Transducer< S >, T > &a)
template<class S, class T, class E1, class E2, class R>
void assoc_exp (Element< Transducer< S >, T > &a, E1 &i_exp, E2 &o_exp, R &res, bool i_res, bool o_res)
template<class S, class T, class M1, class M2, class E1, class E2, class R>
void assoc_exp (Element< Automata< vcsn::algebra::Series< S, vcsn::algebra::FreeMonoidProduct< M1, M2 > > >, T > &a, E1 &i_exp, E2 &o_exp, R &res, bool i_res, bool o_res)
template<class A, class A1, class A2, class S>
void parse_label (xercesc::DOMElement *node, A &a, const A1 &alphabet1, const A2 &alphabet2, S &res)
template<class V>
void insert_letter (Element< vcsn::algebra::AlphabetSet< char >, V > &a, const std::string &str)
template<class S, class T>
void ensure_semiring_type (const xercesc::DOMElement *node, const Element< Transducer< S >, T > &, const typename Element< Transducer< S >, T >::semiring_t::semiring_t &param)
template<class S, class T, class U>
void ensure_semiring_type (const xercesc::DOMElement *node, const Element< Transducer< S >, T > &, const typename Element< Transducer< S >, T >::semiring_t &param)
template<class S, class T, class U, class M1, class M2>
void ensure_monoid_type (const xercesc::DOMElement *node, const Element< Automata< vcsn::algebra::Series< S, vcsn::algebra::FreeMonoidProduct< M1, M2 > > >, T > &param)
template<class OStream>
void print_transition (const xercesc::DOMElement *n, OStream &os, std::string &spacing)
template<class OStream>
void print_tree (const xercesc::DOMElement *node, OStream &os, std::string spacing)


Function Documentation

T::series_set_elt_t get_series xercesc::DOMElement *  node,
T &  aut
 

Get series from a XML label node.

  • T Type of the automaton.
Returns:
series_set_elt_t
Parameters:
node XML node.
aut Automaton to store series.

Definition at line 500 of file xml/tools.hxx.

References get_rec_xml_series(), get_series(), identity_as::of(), vcsn::algebra::parse(), vcsn::xml::transcode(), and vcsn::xml::xml2str().

Referenced by get_series(), finalNode::process(), initialNode::process(), and transitionNode::process().

void insert_letter Element< vcsn::algebra::AlphabetSet< U >, V > &  ,
const std::string & 
 

Insert a letter in an alphabet.

  • U Type of the letter.
  • V Type of the alphabet container.
Parameters:
a Alphabet to insert a letter.
str string containing the letter.

Definition at line 688 of file xml/tools.hxx.

References insert_letter().

Referenced by insert_letter(), and generatorNode::process().

void ensure_monoid_type const xercesc::DOMElement *  node,
const U &  param
 

Check semiring conformance of the automaton w.r.t.

XML node.

  • U Type of the monoid.
Parameters:
node XML node to check.
param Automaton monoid.

Definition at line 786 of file xml/tools.hxx.

References ensure_monoid_type(), vcsn::xml::transcode(), and vcsn::xml::xml2str().

Referenced by ensure_monoid_type(), and monoidNode::process().

void ensure_semiring_type const xercesc::DOMElement *  node,
const T &  ,
const U &  param
 

Check semiring conformance of the automaton w.r.t.

XML node.

  • U Type of the semiring.
  • T Type of the automaton.
Parameters:
node XML node to check.
a Automaton.
param Automaton semiring.

Definition at line 714 of file xml/tools.hxx.

References ensure_semiring_type(), vcsn::xml::transcode(), and vcsn::xml::xml2str().

Referenced by ensure_semiring_type(), semiringNode::process(), and vcsn::xml::process_semiring().

void print_document xercesc::DOMElement *  node,
OStream &  os
 

Print XML tree to output stream.

  • OStream Type of output stream.
Parameters:
node XML root node to print.
os Output stream.

Definition at line 888 of file xml/tools.hxx.

References print_document(), print_tree(), and set_attribute().

Referenced by print_document(), and xml_converter::save().


Generated on Sat Jul 29 17:34:04 2006 for Vaucanson by  doxygen 1.4.6