00001 
00002 
00003 
00004 
00005 
00006 
00007 
00008 
00009 
00010 
00011 
00012 
00013 
00014 
00015 
00016 
00017 #ifndef VCSN_TOOLS_SIMPLE_DUMP_HXX
00018 # define VCSN_TOOLS_SIMPLE_DUMP_HXX
00019 
00020 # include <string>
00021 # include <vaucanson/tools/io.hh>
00022 # include <vaucanson/tools/simple_format.hh>
00023 # include <vaucanson/automata/concept/automata_base.hh>
00024 # include <vaucanson/automata/concept/transducer_base.hh>
00025 
00026 namespace vcsn {
00027 
00028   namespace tools {
00029 
00030     template <class S, class Auto, class Converter>
00031     void simple_dump(const AutomataBase<S>&,
00032                      std::ostream& o,
00033                      const Auto& a,
00034                      const Converter& conv)
00035     {
00036       o << automaton_saver(a, conv, tools::simple());
00037     }
00038 
00039     template <typename Auto, typename Converter>
00040     void simple_dump(std::ostream& o, const Auto& a, const Converter& conv)
00041     {
00042       simple_dump(a.structure(), o, a, conv);
00043     }
00044 
00045   } 
00046 
00047 } 
00048 
00049 #endif // ! VCSN_TOOLS_SIMPLE_DUMP_HXX