Vaucanson  1.4.1
iomanip.hh
Go to the documentation of this file.
1 // iomanip.hh: this file is part of the Vaucanson project.
2 //
3 // Vaucanson, a generic library for finite state machines.
4 //
5 // Copyright (C) 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_MISC_IOMANIP_HH
18 # define VCSN_MISC_IOMANIP_HH
19 
28 # include <ostream>
29 # include <functional>
30 
31 namespace vcsn
32 {
33  namespace misc
34  {
35 
42  template <class Self>
43  struct iomanip : public std::unary_function<std::ostream, std::ostream>
44  {
45  const Self& self () const;
46  };
47 
48  template <class IOM>
49  std::ostream&
50  operator<< (std::ostream& ostr, const iomanip<IOM>& m);
51 
73  template <class T>
74  void
75  pword_delete (std::ios_base::event ev, std::ios_base &io, int idx);
76 
77  } // End of namespace misc.
78 } // End of namespace vcsn.
79 
80 
81 # if !defined VCSN_USE_INTERFACE_ONLY || defined VCSN_USE_LIB
83 # endif // VCSN_USE_INTERFACE_ONLY
84 
85 #endif // ! VCSN_MISC_IOMANIP_HH