Vcsn  2.0
Be Rational
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
direction.hh
Go to the documentation of this file.
1 #ifndef VCSN_MISC_DIRECTION_HH
2 # define VCSN_MISC_DIRECTION_HH
3 
4 # include <iosfwd>
5 # include <string>
6 
7 namespace vcsn
8 {
10  enum class direction
11  {
13  forward,
15  backward,
16  };
17 
19  std::string to_string(direction d);
20 
22  std::istream& operator>>(std::istream& is, direction& d);
23 
25  std::ostream& operator<<(std::ostream& os, direction d);
26 };
27 
28 #endif // !VCSN_MISC_DIRECTION_HH
std::ostream & operator<<(std::ostream &os, direction d)
Pretty-printing.
Definition: direction.cc:19
Looking downstream.
std::istream & operator>>(std::istream &is, direction &d)
Parsing.
Definition: direction.cc:24
std::istringstream is
The input stream: the specification to translate.
Definition: translate.cc:329
std::ostringstream os
The output stream: the corresponding C++ snippet to compile.
Definition: translate.cc:331
direction
Orientation.
Definition: direction.hh:10
Looking upstream.
std::string to_string(direction d)
Conversion to string.
Definition: direction.cc:7