bit::bstream Class Reference
[Deprecated]

#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

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

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)

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] = {0x00, 0x01, 0x03, 0x07, 0x0F, 0x1F, 0x3F, 0x7F}


The documentation for this class was generated from the following files:
Generated on Thu Jul 6 14:38:08 2006 by  doxygen 1.4.6