The Fib multimedia system
Fib is a system for storing multimedia data (like images or films).
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
nBitStream Namespace Reference

Functions

bool store (ostream &stream, char &cRestBits, unsigned char &uiRestBitPosition, const unsigned long long &ulNumber, const unsigned char ucBitsToStore)
bool store (ostream &stream, char &cRestBits, unsigned char &uiRestBitPosition, const unsigned long &ulNumber, const unsigned char ucBitsToStore)
bool store (ostream &stream, char &cRestBits, unsigned char &uiRestBitPosition, const unsigned int &ulNumber, const unsigned char ucBitsToStore)
bool store (ostream &stream, char &cRestBits, unsigned char &uiRestBitPosition, const long long &lNumber, const unsigned char ucBitsToStore)
bool store (ostream &stream, char &cRestBits, unsigned char &uiRestBitPosition, const long &lNumber, const unsigned char ucBitsToStore)
bool store (ostream &stream, char &cRestBits, unsigned char &uiRestBitPosition, const int &lNumber, const unsigned char ucBitsToStore)
bool store (ostream &stream, char &cRestBits, unsigned char &uiRestBitPosition, const char *pcField, const unsigned int uiBitsToStore)

Function Documentation

bool nBitStream::store ( ostream &  stream,
char &  cRestBits,
unsigned char &  uiRestBitPosition,
const unsigned long long &  ulNumber,
const unsigned char  ucBitsToStore 
)

This method stores ucBitsToStore Bits of the ulNumber into the given stream. It gives back the bits that, which are not yet stored into the stream.

Parameters:
streamthe stream where this ulNumber should be stored to
cRestBitsthe not yet writen bits which should be stored
uiRestBitPositionthe number of bits in the cRestBits which should be writen respectively containing valid information
bWriteOptionalPartif true the optionalpart is written
ulNumberthe unsigned number to store, bits to much will be cuted
ucBitsToStorethe bits the stored number should be long
Returns:
true if the ulNumber is stored, else false
bool nBitStream::store ( ostream &  stream,
char &  cRestBits,
unsigned char &  uiRestBitPosition,
const unsigned long &  ulNumber,
const unsigned char  ucBitsToStore 
)

This method stores ucBitsToStore Bits of the ulNumber into the given stream. It gives back the bits that, which are not yet stored into the stream.

Parameters:
streamthe stream where this ulNumber should be stored to
cRestBitsthe not yet writen bits which should be stored
uiRestBitPositionthe number of bits in the cRestBits which should be writen respectively containing valid information
bWriteOptionalPartif true the optionalpart is written
ulNumberthe unsigned number to store, bits to much will be cuted
ucBitsToStorethe bits the stored number should be long
Returns:
true if the ulNumber is stored, else false
bool nBitStream::store ( ostream &  stream,
char &  cRestBits,
unsigned char &  uiRestBitPosition,
const unsigned int &  ulNumber,
const unsigned char  ucBitsToStore 
)

This method stores ucBitsToStore Bits of the ulNumber into the given stream. It gives back the bits that, which are not yet stored into the stream.

Parameters:
streamthe stream where this ulNumber should be stored to
cRestBitsthe not yet writen bits which should be stored
uiRestBitPositionthe number of bits in the cRestBits which should be writen respectively containing valid information
bWriteOptionalPartif true the optionalpart is written
ulNumberthe unsigned number to store, bits to much will be cuted
ucBitsToStorethe bits the stored number should be long
Returns:
true if the ulNumber is stored, else false
bool nBitStream::store ( ostream &  stream,
char &  cRestBits,
unsigned char &  uiRestBitPosition,
const long long &  lNumber,
const unsigned char  ucBitsToStore 
)

This method stores ucBitsToStore Bits of the lNumber into the given stream. It gives back the bits that, which are not yet stored into the stream.

Parameters:
streamthe stream where this ulNumber should be stored to
cRestBitsthe not yet writen bits which should be stored
uiRestBitPositionthe number of bits in the cRestBits which should be writen respectively containing valid information
bWriteOptionalPartif true the optionalpart is written
lNumberthe signed number to store, bits to much will be cuted
ucBitsToStorethe bits the stored number should be long
Returns:
true if the lNumber is stored, else false
bool nBitStream::store ( ostream &  stream,
char &  cRestBits,
unsigned char &  uiRestBitPosition,
const long &  lNumber,
const unsigned char  ucBitsToStore 
)

This method stores ucBitsToStore Bits of the lNumber into the given stream. It gives back the bits that, which are not yet stored into the stream.

Parameters:
streamthe stream where this ulNumber should be stored to
cRestBitsthe not yet writen bits which should be stored
uiRestBitPositionthe number of bits in the cRestBits which should be writen respectively containing valid information
bWriteOptionalPartif true the optionalpart is written
lNumberthe signed number to store, bits to much will be cuted
ucBitsToStorethe bits the stored number should be long
Returns:
true if the lNumber is stored, else false
bool nBitStream::store ( ostream &  stream,
char &  cRestBits,
unsigned char &  uiRestBitPosition,
const int &  lNumber,
const unsigned char  ucBitsToStore 
)

This method stores ucBitsToStore Bits of the lNumber into the given stream. It gives back the bits that, which are not yet stored into the stream.

Parameters:
streamthe stream where this ulNumber should be stored to
cRestBitsthe not yet writen bits which should be stored
uiRestBitPositionthe number of bits in the cRestBits which should be writen respectively containing valid information
bWriteOptionalPartif true the optionalpart is written
lNumberthe signed number to store, bits to much will be cuted
ucBitsToStorethe bits the stored number should be long
Returns:
true if the lNumber is stored, else false
bool nBitStream::store ( ostream &  stream,
char &  cRestBits,
unsigned char &  uiRestBitPosition,
const char *  pcField,
const unsigned int  uiBitsToStore 
)

This method stores ucBitsToStore Bits of the charfield into the given stream. It gives back the bits that, which are not yet stored into the stream.

Parameters:
streamthe stream where this ulNumber should be stored to
cRestBitsthe not yet writen bits which should be stored
uiRestBitPositionthe number of bits in the cRestBits which should be writen respectively containing valid information
bWriteOptionalPartif true the optionalpart is written
pcFieldthe char field to store
uiBitsToStorethe bits to store from the char field
Returns:
true if the pcField is stored, else false