Vaucanson  1.4.1
xml_dump.hxx
Go to the documentation of this file.
1 // xml_dump.hxx: this file is part of the Vaucanson project.
2 //
3 // Vaucanson, a generic library for finite state machines.
4 //
5 // Copyright (C) 2005 The Vaucanson Group.
6 //
7 // This program is free software; you can redistribute it and/or
8 // modify it under the terms of the GNU General Public License
9 // as published by the Free Software Foundation; either version 2
10 // of the License, or (at your option) any later version.
11 //
12 // The complete GNU General Public Licence Notice can be found as the
13 // `COPYING' file in the root directory.
14 //
15 // The Vaucanson Group consists of people listed in the `AUTHORS' file.
16 //
17 #ifndef VCSN_TOOLS_XML_DUMP_HXX
18 # define VCSN_TOOLS_XML_DUMP_HXX
19 
28 namespace vcsn {
29 
30  namespace tools {
31 
32  template <typename Auto>
33  void xml_dump(std::ostream& o, const Auto& a, const std::string& name)
34  {
35  o << automaton_saver(a, tools::string_out(), xml::XML(name));
36  }
37 
38  } // tools
39 
40 } // vcsn
41 
42 #endif // ! VCSN_TOOLS_XML_DUMP_HXX