Main Page | Namespace List | Class Hierarchy | Class List | File List | Namespace Members | Class Members | File Members | Related Pages

indri::utility::RVLDecompressStream Class Reference

#include <RVLDecompressStream.hpp>

List of all members.

Public Member Functions

 RVLDecompressStream (const char *buffer, int size)
void setBuffer (const char *buffer, int size)
RVLDecompressStreamoperator>> (INT64 &value)
RVLDecompressStreamoperator>> (UINT64 &value)
RVLDecompressStreamoperator>> (int &value)
RVLDecompressStreamoperator>> (unsigned int &value)
RVLDecompressStreamoperator>> (float &value)
RVLDecompressStreamoperator>> (char *value)
bool done () const
 true if no more values in the buffer, otherwise false.


Private Attributes

const char * _buffer
int _bufferSize
const char * _current


Detailed Description

Provide RVL decompression on a stream.


Constructor & Destructor Documentation

indri::utility::RVLDecompressStream::RVLDecompressStream const char *  buffer,
int  size
[inline]
 

Initialize

Parameters:
buffer the buffer to use for decompressing
size the size of buffer


Member Function Documentation

bool indri::utility::RVLDecompressStream::done  )  const [inline]
 

true if no more values in the buffer, otherwise false.

RVLDecompressStream& indri::utility::RVLDecompressStream::operator>> char *  value  )  [inline]
 

Decompress a string from the buffer into value

Parameters:
value pointer to a character buffer that will hold the decompressed value

RVLDecompressStream& indri::utility::RVLDecompressStream::operator>> float &  value  )  [inline]
 

Decompress a float from the buffer into value

Parameters:
value reference to the container for the value.

RVLDecompressStream& indri::utility::RVLDecompressStream::operator>> unsigned int &  value  )  [inline]
 

Decompress an unsigned int from the buffer into value

Parameters:
value reference to the container for the value.

RVLDecompressStream& indri::utility::RVLDecompressStream::operator>> int &  value  )  [inline]
 

Decompress an int from the buffer into value

Parameters:
value reference to the container for the value.

RVLDecompressStream& indri::utility::RVLDecompressStream::operator>> UINT64 value  )  [inline]
 

Decompress an UINT64 from the buffer into value

Parameters:
value reference to the container for the value.

RVLDecompressStream& indri::utility::RVLDecompressStream::operator>> INT64 value  )  [inline]
 

Decompress an INT64 from the buffer into value

Parameters:
value reference to the container for the value.

void indri::utility::RVLDecompressStream::setBuffer const char *  buffer,
int  size
[inline]
 

setBuffer

Parameters:
buffer the buffer to use for decompressing
size the size of buffer


Member Data Documentation

const char* indri::utility::RVLDecompressStream::_buffer [private]
 

int indri::utility::RVLDecompressStream::_bufferSize [private]
 

const char* indri::utility::RVLDecompressStream::_current [private]
 


The documentation for this class was generated from the following file:
Generated on Tue Jun 15 11:03:04 2010 for Lemur by doxygen 1.3.4