bit::bstream Class Reference
["Deprecated Classes""Deprecated Classes""Deprecated Classes"]

#include <bit/bstream.h>

Inheritance diagram for bit::bstream:

Inheritance graph
[legend]
List of all members.

Detailed Description

This class serves as a parent to ibstream and obstream providing basic facilities for maintaining up to a one octet buffer of bits.

It also provides endian management.

Author:
Rick L. Vinyard, Jr.


Public Types

enum  State {
  WHOLE, BITS, OCTETS, WHOLE,
  BITS, OCTETS, WHOLE, BITS,
  OCTETS
}
enum  State {
  WHOLE, BITS, OCTETS, WHOLE,
  BITS, OCTETS, WHOLE, BITS,
  OCTETS
}
enum  State {
  WHOLE, BITS, OCTETS, WHOLE,
  BITS, OCTETS, WHOLE, BITS,
  OCTETS
}
typedef enum bit::bstream::State State
typedef enum bit::bstream::State State
typedef enum bit::bstream::State State

Public Member Functions

bool is_host_big_endian ()
bool is_host_little_endian ()
void host_big_endian (bool b=true)
void host_little_endian (bool b=true)
bool is_host_big_endian ()
bool is_host_little_endian ()
void host_big_endian (bool b=true)
void host_little_endian (bool b=true)
bool is_host_big_endian ()
bool is_host_little_endian ()
void host_big_endian (bool b=true)
void host_little_endian (bool b=true)

Protected Attributes

bool m_host_big_endian
unsigned char m_leftoverbits
size_t m_numleftoverbits
State m_state
size_t m_stateval

Static Protected Attributes

static const int m_masks [8]


The documentation for this class was generated from the following files:
Generated on Tue Mar 13 20:00:02 2007 by  doxygen 1.5.1