Vaucanson  1.4.1
usual_io.hh
1 // usual_io.hh: this file is part of the Vaucanson project.
2 //
3 // Vaucanson, a generic library for finite state machines.
4 //
5 // Copyright (C) 2001, 2002, 2003, 2004, 2005, 2006 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_USUAL_IO_HH
18 # define VCSN_TOOLS_USUAL_IO_HH
19 
20 # include <string>
21 
22 namespace vcsn
23 {
24  namespace tools
25  {
26  struct usual_converter_exp
27  {
28  template<typename Auto>
29  typename Auto::series_set_elt_t operator()(const Auto&, const std::string& lbl) const;
30  template<typename Auto>
31  std::string operator()(const Auto&, const typename Auto::series_set_elt_t& exp_series) const;
32  };
33 
34  template<typename ExpType>
35  struct usual_converter_poly
36  {
37  template<typename Auto>
38  typename Auto::series_set_elt_t operator()(const Auto&, const std::string& lbl) const;
39  template<typename Auto>
40  std::string operator()(const Auto&, const typename Auto::series_set_elt_t& poly_series) const;
41  };
42  } // tools
43 } // vcsn
44 
45 
46 # if !defined VCSN_USE_INTERFACE_ONLY || defined VCSN_USE_LIB
47 # include <vaucanson/tools/usual_io.hxx>
48 #endif // VCSN_USE_INTERFACE_ONLY
49 
50 
51 #endif // ! VCSN_TOOLS_USUAL_IO_HH