xml_converter Struct Template Reference

Base conversion class. More...

List of all members.

Public Types

typedef std::map< hstate_t,
std::string > 
map_t
typedef Auto::set_t auto_set_t
typedef Auto::value_t auto_impl_t
typedef xml_chooser< auto_set_t,
auto_impl_t
xml_chooser_t

Public Member Functions

 xml_converter (bool use_label_node=false)
template<class OStream>
void save (const Auto &a, OStream &out, const std::string &name="")
 Save automaton to stream.
template<class IStream>
void load (Auto &a, IStream &in)
 Load automaton from stream.
void create_document (const Auto &aut, const std::string &name="")
 Create the DOM document for aut, named name.
xercesc::DOMElement * root_get ()
 The root of the created DOM document.


Detailed Description

template<class Auto>
struct vcsn::xml::xml_converter< Auto >

Base conversion class.

Definition at line 57 of file xml_converter.hh.


Member Function Documentation

void save ( const Auto &  a,
OStream &  out,
const std::string &  name = "" 
)

Save automaton to stream.

Parameters:
a Automaton to save.
out Output stream.
name String containing the name of the automaton.

Definition at line 46 of file xml_converter.hxx.

References xml_converter::create_document(), and vcsn::xml::tools::print_document().

Referenced by XML::operator()().

void load ( Auto &  a,
IStream &  in 
)

Load automaton from stream.

Parameters:
a Automaton to load.
in Input stream.

Definition at line 235 of file xml_converter.hxx.

References factory_create, register_all_factory, xerces_parser::stream_parser(), and vcsn::xml::xml2str().

Referenced by XML::operator()().


Generated on Wed Jun 13 17:03:41 2007 for Vaucanson by  doxygen 1.5.1