Bitstream Interpretation Library (BIL)  0.1
PIPDirection.hpp
Go to the documentation of this file.
1 
6 #pragma once
7 #ifndef BIL_PIPDIRECTION_HPP
8 #define BIL_PIPDIRECTION_HPP
9 
10 
11 namespace bil {
12 
19  namespace PIPDirection {
20 
22  typedef unsigned char direction_t;
23 
24 
26  const direction_t MONODI_BUF = 0x00;
27 
29  const direction_t BIDI_UNBUF = 0x01;
30 
32  const direction_t BIDI_ONEBUF = 0x02;
33 
35  const direction_t BIDI_TWOBUF = 0x03;
36 
37 
38  extern const char* const MONODI_BUF_STRING;
39  extern const char* const BIDI_UNBUF_STRING;
40  extern const char* const BIDI_ONEBUF_STRING;
41  extern const char* const BIDI_TWOBUF_STRING;
42 
43 
49  const char* toString(direction_t dir);
50 
57  direction_t fromString(const char* s);
58 
59  }
60 
61 }
62 
63 #endif