seven bits

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

#include <bit/bstream.h>

Inheritance diagram for bit::bstream:

bit::ibstream bit::obstream

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 }
typedef enum bit::bstream::State State

Public Member Functions

 bstream ()
virtual ~bstream ()
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}

Member Typedef Documentation


Member Enumeration Documentation

Enumerator:
WHOLE 
BITS 
OCTETS 


Constructor & Destructor Documentation

bstream::bstream (  ) 

References m_host_big_endian.

bstream::~bstream (  )  [virtual]


Member Function Documentation

bool bit::bstream::is_host_big_endian (  )  [inline]

References m_host_big_endian.

bool bit::bstream::is_host_little_endian (  )  [inline]

References m_host_big_endian.

void bit::bstream::host_big_endian ( bool  b = true  )  [inline]

References m_host_big_endian.

void bit::bstream::host_little_endian ( bool  b = true  )  [inline]

References m_host_big_endian.


Member Data Documentation

unsigned char bit::bstream::m_leftoverbits [protected]

size_t bit::bstream::m_numleftoverbits [protected]

const int bstream::m_masks = {0x00, 0x01, 0x03, 0x07, 0x0F, 0x1F, 0x3F, 0x7F} [static, protected]

Referenced by bit::operator<<(), and bit::operator>>().

size_t bit::bstream::m_stateval [protected]

Referenced by bit::operator<<(), and bit::operator>>().


The documentation for this class was generated from the following files:

Generated on Mon Nov 3 10:50:01 2008 for bit by doxygen 1.5.6