Logo Search packages:      
Sourcecode: darkice version File versions

BufferedSink Class Reference

#include <BufferedSink.h>

Inheritance diagram for BufferedSink:

Sink Reporter Referable

List of all members.


Detailed Description

A Sink First-In First-Out buffer. This buffer can always be written to, it overwrites any data contained if needed. The class is not thread-safe.

Author:
Author
darkeye
Version:
Revision
1.7

Definition at line 61 of file BufferedSink.h.


Public Member Functions

 BufferedSink (const BufferedSink &buffer) throw ( Exception )
 BufferedSink (Sink *sink, unsigned int size, unsigned int chunkSize=1) throw ( Exception )
virtual bool canWrite (unsigned int sec, unsigned int usec) throw ( Exception )
virtual void close (void) throw ( Exception )
unsigned int decreaseReferenceCount (void) throw ( Exception )
virtual void flush (void) throw ( Exception )
unsigned int getPeak (void) const throw ()
unsigned int getReferenceCount (void) const throw ()
unsigned int increaseReferenceCount (void) throw ( Exception )
virtual bool isOpen (void) const throw ()
virtual bool open (void) throw ( Exception )
virtual BufferedSinkoperator= (const BufferedSink &bs) throw ( Exception )
virtual unsigned int write (const void *buf, unsigned int len) throw ( Exception )
virtual ~BufferedSink (void) throw ( Exception )

Static Public Member Functions

static std::ostream & getReportOutputStream (void) throw ()
static unsigned int getReportVerbosity (void) throw ()
template<class T, class U, class V, class W>
static void reportEvent (unsigned int verbosity, const T t, const U u, const V v, const W w) throw ()
template<class T, class U, class V>
static void reportEvent (unsigned int verbosity, const T t, const U u, const V v) throw ()
template<class T, class U>
static void reportEvent (unsigned int verbosity, const T t, const U u) throw ()
template<class T>
static void reportEvent (unsigned int verbosity, const T t) throw ()
static void setReportOutputStream (std::ostream &os) throw ()
static void setReportVerbosity (unsigned int verbosity) throw ()

Protected Member Functions

 BufferedSink (void) throw ( Exception )
unsigned int getSize (void) const throw ()
unsigned int store (const void *buffer, unsigned int bufferSize) throw ( Exception )

Private Member Functions

bool align (void) throw ( Exception )
void init (Sink *sink, unsigned int size, unsigned int chunkSize) throw ( Exception )
unsigned char * slidePointer (unsigned char *p, unsigned int offset) throw ()
void strip (void) throw ( Exception )
void updatePeak (void) throw ()

Private Attributes

unsigned char * buffer
unsigned char * bufferEnd
unsigned int bufferSize
unsigned int chunkSize
unsigned char * inp
unsigned int misalignment
unsigned char * outp
unsigned int peak
Ref< Sinksink

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

Generated by  Doxygen 1.6.0   Back to index