Bitstream Interpretation Library (BIL)  0.1
Typedefs | Functions | Variables
bil::PIPDirection Namespace Reference

Namespace for PIP direction constants. More...

Typedefs

typedef unsigned char direction_t
 PIP direction type.

Functions

const char * toString (direction_t dir)
 Returns a string representation of given direction constant.
direction_t fromString (const char *s)
 Returns direction constant of given string representation.

Variables

const direction_t MONODI_BUF = 0x00
 Directional, buffered.
const direction_t BIDI_UNBUF = 0x01
 Bidirectional, unbuffered.
const direction_t BIDI_ONEBUF = 0x02
 Bidirectional, buffered in one direction.
const direction_t BIDI_TWOBUF = 0x03
 Bidirectional, buffered in both directions.
const char *const MONODI_BUF_STRING = "->"
const char *const BIDI_UNBUF_STRING = "=="
const char *const BIDI_ONEBUF_STRING = "=>"
const char *const BIDI_TWOBUF_STRING = "=-"

Detailed Description

Namespace for PIP direction constants.

The connections established by PIPs can have different directions, which are enumerated here.


Typedef Documentation

typedef unsigned char bil::PIPDirection::direction_t

PIP direction type.

Definition at line 22 of file PIPDirection.hpp.


Function Documentation

const char * bil::PIPDirection::toString ( direction_t  dir)

Returns a string representation of given direction constant.

Parameters:
dirThe direction constant.
Returns:
The string representation.

Definition at line 18 of file PIPDirection.cpp.

PIPDirection::direction_t bil::PIPDirection::fromString ( const char *  s)

Returns direction constant of given string representation.

Parameters:
sThe string representation.
Returns:
The direction constant.
Exceptions:
.

Definition at line 31 of file PIPDirection.cpp.


Variable Documentation

const direction_t bil::PIPDirection::MONODI_BUF = 0x00

Directional, buffered.

Definition at line 26 of file PIPDirection.hpp.

const direction_t bil::PIPDirection::BIDI_UNBUF = 0x01

Bidirectional, unbuffered.

Definition at line 29 of file PIPDirection.hpp.

const direction_t bil::PIPDirection::BIDI_ONEBUF = 0x02

Bidirectional, buffered in one direction.

Definition at line 32 of file PIPDirection.hpp.

const direction_t bil::PIPDirection::BIDI_TWOBUF = 0x03

Bidirectional, buffered in both directions.

Definition at line 35 of file PIPDirection.hpp.

const char *const bil::PIPDirection::MONODI_BUF_STRING = "->"

Definition at line 12 of file PIPDirection.cpp.

const char *const bil::PIPDirection::BIDI_UNBUF_STRING = "=="

Definition at line 13 of file PIPDirection.cpp.

const char *const bil::PIPDirection::BIDI_ONEBUF_STRING = "=>"

Definition at line 14 of file PIPDirection.cpp.

const char *const bil::PIPDirection::BIDI_TWOBUF_STRING = "=-"

Definition at line 15 of file PIPDirection.cpp.