Vcsn  2.3
Be Rational
direction.hh
Go to the documentation of this file.
1 #pragma once
2 
3 #include <iosfwd>
4 #include <string>
5 
6 #include <vcsn/misc/export.hh>
7 
8 namespace vcsn LIBVCSN_API
9 {
11  enum class direction
12  {
14  forward,
16  backward,
17  };
18 
20  std::string to_string(direction d);
21 
23  std::istream& operator>>(std::istream& is, direction& d);
24 
26  std::ostream& operator<<(std::ostream& os, direction d);
27 };
std::ostream & operator<<(std::ostream &os, direction d)
Pretty-printing.
Definition: direction.cc:19
Looking downstream.
direction
Orientation.
Definition: direction.hh:11
Looking upstream.
Definition: a-star.hh:8
#define LIBVCSN_API
Definition: export.hh:8
std::string to_string(direction d)
Conversion to string.
Definition: direction.cc:7
std::istream & operator>>(std::istream &is, direction &d)
Parsing.
Definition: direction.cc:24
std::ostringstream os
The output stream: the corresponding C++ snippet to compile.
Definition: translate.cc:375