Developer Documentation
RAVL, Recognition And Vision Library
USER HOME PAGE CLASS LIST CONTENTS
Ravl - Core - IO - Streams - BitOStreamC
 

  PUBLIC
BitOStreamC::BitOStreamC(void)
BitOStreamC::BitOStreamC(const StringC &)
BitOStreamC::BitOStreamC(const OStreamC &)
BitOStreamC::~BitOStreamC(void)
BitOStreamC::WriteBit(bool)
BitOStreamC::WriteUByte(UByteT)
BitOStreamC::WriteUByte(UByteT,IntT)
BitOStreamC::WriteUInt(UIntT)
BitOStreamC::WriteUInt(UIntT,UIntT)
BitOStreamC::Flush(void)
BitOStreamC::good(void) const
BitStreamBaseC::IsByteAligned(void) const
BitStreamBaseC::Mask(UIntT) const

   BitOStreamC   
 
Output bit stream.
 
include "Ravl/BitStream.hh"
Created:04/06/99 
Source file:Ravl/Core/Base/BitStream.hh
User Level:Normal
Library:RavlCore
In Scope:RavlN

Comments:
'at' points to next bit to be written. Numbering from LSB=0

Parent Classes: Variables:
OStreamC strm;

Methods:
BitOStreamC()
Default constructor.

BitOStreamC(const StringC & filename)
Constructor.

BitOStreamC(const OStreamC & strm)
Construct from a normal stream
NB. 'Flush' must be used before any write operations are done on 'strm' after using the class.

~BitOStreamC()
Close bit stream.

void WriteBit(bool val)
Write 1 bit to stream.

void WriteUByte(UByteT byte)
Write a byte to stream.

void WriteUByte(UByteT data,IntT nbits)
Write an array of n bits.

void WriteUInt(UIntT data)
Write an unsigned integer.
MSB First.

void WriteUInt(UIntT data,UIntT bits)
Write an unsigned integer.
MSB First.

void Flush()
Flush output buffer. (Use only before closing.)

bool good() const
Is stream good ?

bool IsByteAligned() const
Is byte aligned ?

UIntT Mask(UIntT nbits) const
Create a mask nbits long.


Maintainer:Charles Galambos, Created: 04/06/99, Documentation by CxxDoc: Tue Aug 13 09:59:30 2002