#include <XspfChunkCallback.h>
Protected Member Functions | |
XspfChunkCallback () | |
XspfChunkCallback (XspfChunkCallback const &source) | |
XspfChunkCallback & | operator= (XspfChunkCallback const &source) |
virtual | ~XspfChunkCallback () |
virtual int | getMinimumBufferByteSize ()=0 |
virtual int | fillBuffer (void *buffer)=0 |
virtual void | notifyStop () |
Friends | |
class | XspfReader |
Definition at line 63 of file XspfChunkCallback.h.
XspfChunkCallback | ( | ) | [protected] |
Creates a new chunk callback.
XspfChunkCallback | ( | XspfChunkCallback const & | source | ) | [protected] |
Copy constructor.
source | Source to copy from |
virtual ~XspfChunkCallback | ( | ) | [protected, virtual] |
Destroys this chunk callback.
virtual int fillBuffer | ( | void * | buffer | ) | [protected, pure virtual] |
Fulls buffer
with a new chunk of input. the chunk copies must not exceed the number of bytes returned by the last call to getMinimumBufferByteSize. NOTE: You do not have to zero-terminate the string written. If you do so do not count this into the return value.
buffer | Buffer to write to |
virtual int getMinimumBufferByteSize | ( | ) | [protected, pure virtual] |
Returns the minimum size in bytes of the buffer handed to fillBuffer in a subsequent call.
virtual void notifyStop | ( | ) | [protected, virtual] |
Notifies this chunk callback, that no more chunks will be needed. You can close the resource read from in here.
XspfChunkCallback& operator= | ( | XspfChunkCallback const & | source | ) | [protected] |
Assignment operator.
source | Source to copy from |