|
VSTGUI 4.10
Graphical User Interface Framework not only for VST plugins
|
File input and output stream. More...
#include <cstream.h>
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 () noexcept override | |
| bool | open (UTF8StringPtr path, int32_t mode, ByteOrder byteOrder=kNativeByteOrder) |
| bool | isEndOfFile () const |
| uint32_t | writeRaw (const void *buffer, uint32_t size) override |
| uint32_t | readRaw (void *buffer, uint32_t size) override |
| int64_t | seek (int64_t pos, SeekMode mode) override |
| returns -1 if seek fails otherwise new position More... | |
| int64_t | tell () const override |
| void | rewind () override |
| bool | operator<< (const std::string &str) override |
| bool | operator>> (std::string &string) override |
| 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) |
| virtual bool | operator<< (const std::string &str)=0 |
| 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) |
| virtual bool | operator>> (std::string &string)=0 |
Public Member Functions inherited from OutputStream | |
| OutputStream (ByteOrder byteOrder=kNativeByteOrder) | |
| virtual | ~OutputStream () noexcept=default |
| 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) |
| virtual bool | operator<< (const std::string &str)=0 |
| virtual uint32_t | writeRaw (const void *buffer, uint32_t size)=0 |
Public Member Functions inherited from InputStream | |
| InputStream (ByteOrder byteOrder=kNativeByteOrder) | |
| virtual | ~InputStream () noexcept=default |
| 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) |
| virtual bool | operator>> (std::string &string)=0 |
| virtual uint32_t | readRaw (void *buffer, uint32_t size)=0 |
Public Member Functions inherited from SeekableStream | |
| virtual | ~SeekableStream () noexcept=default |
| virtual int64_t | seek (int64_t pos, SeekMode mode)=0 |
| returns -1 if seek fails otherwise new position More... | |
| virtual int64_t | tell () const =0 |
| virtual void | rewind ()=0 |
Public Member Functions inherited from ReferenceCounted< T > | |
| ReferenceCounted ()=default | |
| virtual | ~ReferenceCounted () noexcept=default |
| ReferenceCounted (const ReferenceCounted &) | |
| ReferenceCounted & | operator= (const ReferenceCounted &) |
| void | forget () override |
| decrease refcount and delete object if refcount == 0 More... | |
| void | remember () override |
| increase refcount More... | |
| virtual int32_t | getNbReference () const |
| get refcount More... | |
| virtual void | forget ()=0 |
| decrease refcount and delete object if refcount == 0 More... | |
| virtual void | remember ()=0 |
| increase refcount More... | |
Protected Attributes | |
| FILE * | stream |
| int32_t | openMode |
File input and output stream.
| CFileStream | ( | ) |
|
overridenoexcept |
| bool isEndOfFile | ( | ) | const |
| bool open | ( | UTF8StringPtr | path, |
| int32_t | mode, | ||
| ByteOrder | byteOrder = kNativeByteOrder |
||
| ) |
| bool operator<< | ( | const double & | input | ) |
| bool operator<< | ( | const int16_t & | input | ) |
| bool operator<< | ( | const int32_t & | input | ) |
| bool operator<< | ( | const int64_t & | input | ) |
| bool operator<< | ( | const int8_t & | input | ) |
|
overridevirtual |
Implements OutputStream.
|
virtual |
Implements OutputStream.
| bool operator<< | ( | const uint16_t & | input | ) |
| bool operator<< | ( | const uint32_t & | input | ) |
| bool operator<< | ( | const uint64_t & | input | ) |
| bool operator<< | ( | const uint8_t & | input | ) |
| bool operator>> | ( | double & | output | ) |
| bool operator>> | ( | int16_t & | output | ) |
| bool operator>> | ( | int32_t & | output | ) |
| bool operator>> | ( | int64_t & | output | ) |
| bool operator>> | ( | int8_t & | output | ) |
|
overridevirtual |
Implements InputStream.
|
virtual |
Implements InputStream.
| bool operator>> | ( | uint16_t & | output | ) |
| bool operator>> | ( | uint32_t & | output | ) |
| bool operator>> | ( | uint64_t & | output | ) |
| bool operator>> | ( | uint8_t & | output | ) |
|
overridevirtual |
Implements InputStream.
|
overridevirtual |
Implements SeekableStream.
|
overridevirtual |
returns -1 if seek fails otherwise new position
Implements SeekableStream.
|
overridevirtual |
Implements SeekableStream.
|
overridevirtual |
Implements OutputStream.
|
protected |
|
protected |