VCF::Stream Class Reference
Stream interface defines a core set of funcationality for streams in the Visual Component Framework derived Streams should support "stream chaining", the ability of the stream constructor to support an incoming stream from someother stream object. More...
#include <vcf/FoundationKit/Stream.h>
Inheritance diagram for VCF::Stream:

Public Member Functions | |
| virtual | ~Stream () |
| virtual void | seek (const uint64 &offset, const SeekType &offsetFrom)=0 |
| virtual uint64 | getSize ()=0 |
| returns the size of the stream. | |
| virtual uchar * | getBuffer ()=0 |
| returns a pointer to the buffer that holds the stream memory | |
| virtual uint64 | getCurrentSeekPos ()=0 |
| this is a global offset from the beggining of the stream | |
Detailed Description
Stream interface defines a core set of funcationality for streams in the Visual Component Framework derived Streams should support "stream chaining", the ability of the stream constructor to support an incoming stream from someother stream object.For example:
MyStream s = new MyStream( new MemStream( new GZIPStream( SomeBigDataObject ) ) );
Streams are meant as alternative to the C++ streams, though in some cases they may extend the standard C++ stream library.
- Author:
- Jim Crafton
- Version:
- 1.0
Constructor & Destructor Documentation
|
|
|
Member Function Documentation
|
|
returns a pointer to the buffer that holds the stream memory
Implemented in VCF::BasicInputStream, VCF::BasicOutputStream, VCF::FileInputStream, VCF::FileOutputStream, VCF::TextInputStream, VCF::TextOutputStream, VCF::VariantDataInputStream, VCF::VariantDataOutputStream, VCF::VFFInputStream, VCF::VFFOutputStream, VCF::XMLDictInputStream, VCF::XMLDictOutputStream, VCF::TCPSocketInputStream, VCF::TCPSocketOutputStream, VCF::UDPSocketInputStream, and VCF::UDPSocketOutputStream. |
|
|
this is a global offset from the beggining of the stream
Implemented in VCF::BasicInputStream, VCF::BasicOutputStream, VCF::FileInputStream, VCF::FileOutputStream, VCF::TextInputStream, VCF::TextOutputStream, VCF::VariantDataInputStream, VCF::VariantDataOutputStream, VCF::VFFInputStream, VCF::VFFOutputStream, VCF::XMLDictInputStream, VCF::XMLDictOutputStream, VCF::TCPSocketInputStream, VCF::TCPSocketOutputStream, VCF::UDPSocketInputStream, and VCF::UDPSocketOutputStream. |
|
|
returns the size of the stream. The size represents the number of bytes that have been written, or read to/from the stream Implemented in VCF::BasicInputStream, VCF::BasicOutputStream, VCF::FileInputStream, VCF::FileOutputStream, VCF::TextInputStream, VCF::TextOutputStream, VCF::VariantDataInputStream, VCF::VariantDataOutputStream, VCF::VFFInputStream, VCF::VFFOutputStream, VCF::XMLDictInputStream, VCF::XMLDictOutputStream, VCF::TCPSocketInputStream, VCF::TCPSocketOutputStream, VCF::UDPSocketInputStream, and VCF::UDPSocketOutputStream. |
|
||||||||||||
The documentation for this class was generated from the following file:
- vcf/FoundationKit/Stream.h
