|
VSTGUI
4.4
Graphical User Interface Framework not only for VST plugins
|
File input and output stream. More...
Inheritance diagram for CFileStream:Public Types | |
| enum | { kReadMode = 1 << 0, kWriteMode = 1 << 1, kTruncateMode = 1 << 2, kBinaryMode = 1 << 3 } |
Public Types inherited from SeekableStream | |
| enum | SeekMode { kSeekSet, kSeekCurrent, kSeekEnd } |
Public Member Functions | |
| CFileStream () | |
| ~CFileStream () | |
| bool | open (UTF8StringPtr path, int32_t mode, ByteOrder byteOrder=kNativeByteOrder) |
| uint32_t | writeRaw (const void *buffer, uint32_t size) |
| uint32_t | readRaw (void *buffer, uint32_t size) |
| int64_t | seek (int64_t pos, SeekMode mode) |
| returns -1 if seek fails otherwise new position More... | |
| int64_t | tell () const |
| void | rewind () |
| virtual bool | operator<< (const std::string &str) |
| virtual bool | operator>> (std::string &string) |
Public Member Functions inherited from OutputStream | |
| OutputStream (ByteOrder byteOrder=kNativeByteOrder) | |
| virtual | ~OutputStream () |
| ByteOrder | getByteOrder () const |
| void | setByteOrder (ByteOrder newByteOrder) |
| bool | operator<< (const int8_t &input) |
| bool | operator<< (const uint8_t &input) |
| bool | operator<< (const int16_t &input) |
| bool | operator<< (const uint16_t &input) |
| bool | operator<< (const int32_t &input) |
| bool | operator<< (const uint32_t &input) |
| bool | operator<< (const int64_t &input) |
| bool | operator<< (const uint64_t &input) |
| bool | operator<< (const double &input) |
Public Member Functions inherited from InputStream | |
| InputStream (ByteOrder byteOrder=kNativeByteOrder) | |
| virtual | ~InputStream () |
| ByteOrder | getByteOrder () const |
| void | setByteOrder (ByteOrder newByteOrder) |
| bool | operator>> (int8_t &output) |
| bool | operator>> (uint8_t &output) |
| bool | operator>> (int16_t &output) |
| bool | operator>> (uint16_t &output) |
| bool | operator>> (int32_t &output) |
| bool | operator>> (uint32_t &output) |
| bool | operator>> (int64_t &output) |
| bool | operator>> (uint64_t &output) |
| bool | operator>> (double &output) |
Public Member Functions inherited from SeekableStream | |
| virtual | ~SeekableStream () |
Public Member Functions inherited from CBaseObject | |
| CBaseObject () | |
| virtual | ~CBaseObject () |
| virtual void | beforeDelete () |
| virtual void | forget () |
| decrease refcount and delete object if refcount == 0 More... | |
| virtual void | remember () |
| increase refcount More... | |
| virtual int32_t | getNbReference () const |
| get refcount More... | |
| virtual CMessageResult | notify (CBaseObject *sender, IdStringPtr message) |
Protected Attributes | |
| FILE * | stream |
| int32_t | openMode |
File input and output stream.
| CFileStream | ( | ) |
| ~CFileStream | ( | ) |
| bool open | ( | UTF8StringPtr | path, |
| int32_t | mode, | ||
| ByteOrder | byteOrder = kNativeByteOrder |
||
| ) |
|
virtual |
Implements OutputStream.
|
virtual |
Implements InputStream.
|
virtual |
Implements InputStream.
|
virtual |
Implements SeekableStream.
|
virtual |
returns -1 if seek fails otherwise new position
Implements SeekableStream.
|
virtual |
Implements SeekableStream.
|
virtual |
Implements OutputStream.
|
protected |
|
protected |