#include <cascade/util/CascadeStream.h>
Inheritance diagram for CascadeStream:
Public Types | |
typedef bool() | MetadataEnumProc (const CascadeString &name, const CascadeString &value, void *pClientData) |
Public Member Functions | |
CascadeStream () | |
virtual | ~CascadeStream () |
virtual u64 | GetSize ()=0 |
virtual u64 | GetPosition ()=0 |
virtual bool | SeekToPosition (u64 nPosition)=0 |
virtual u32 | ReadBytes (u32 nBytes, void *pBuff)=0 |
virtual bool | GetLine (class CascadeString &lineToSet) |
virtual void | AddMetadata (const CascadeString &name, const CascadeString &value) |
virtual void | RemoveMetadata (const CascadeString &name) |
virtual void | RemoveAllMetadata () |
virtual bool | LookupMetadata (const CascadeString &name, CascadeString &valueToSet) const |
virtual bool | EnumerateMetadata (MetadataEnumProc *pEnumProc, void *pClientData) const |
void | SetURL (const CascadeString &url) |
bool | GetURL (CascadeString &urlToSet) const |
void | ClearURL () |
CascadeStream is the base class of high-performance data-streams.
|
|
|
base class constructor This base class constructor is light weight. |
|
base class destructor This base class destructor is light weight. |
|
<reads a line of text from the stream (like gets)
GetLine fills the string passed in with a line of text from the stream. No error checking is done to ensure the stream is a text stream. Trailing
|
|
|
|
|
|
|
|
returns the current position in the stream Returns the current position in the stream.
Implemented in CascadeAudioCodec, CascadeHTTPStream, CascadeFileStream, and CascadeMemoryStream. |
|
returns the size of the stream Returns number of total bytes in the stream. The size doesn't change as bytes are read or the position is seeked to.
Implemented in CascadeAudioCodec, CascadeHTTPStream, CascadeFileStream, and CascadeMemoryStream. |
|
|
|
|
|
reads bytes from the stream Reads bytes from the stream.
Implemented in CascadeHTTPStream, CascadeFileStream, and CascadeMemoryStream. |
|
|
|
|
|
seeks to a position in the stream SeekToPositions seeks to a byte position in the stream.
Implemented in CascadeAudioCodec, CascadeHTTPStream, CascadeFileStream, and CascadeMemoryStream. |
|
|