

Public Types | |
| enum | { kReadMode = 1 << 0, kWriteMode = 1 << 1, kTruncateMode = 1 << 2, kBinaryMode = 1 << 3 } |
| enum | SeekMode { kSeekSet, kSeekCurrent, kSeekEnd } |
Public Member Functions | |
| CFileStream () | |
| ~CFileStream () | |
| bool | open (UTF8StringPtr path, int32_t mode, ByteOrder byteOrder=kNativeByteOrder) |
| int32_t | writeRaw (const void *buffer, int32_t size) |
| int32_t | readRaw (void *buffer, int32_t size) |
| int64_t | seek (int64_t pos, SeekMode mode) |
| returns -1 if seek fails otherwise new position | |
| int64_t | tell () const |
| void | rewind () |
| virtual bool | operator<< (const std::string &str) |
| virtual bool | operator>> (std::string &string) |
| 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) |
| 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) |
Reference Counting Methods | |
| virtual void | forget () |
| decrease refcount and delete object if refcount == 0 | |
| virtual void | remember () |
| increase refcount | |
| virtual int32_t | getNbReference () const |
| get refcount | |
Message Methods | |
| virtual CMessageResult | notify (CBaseObject *sender, IdStringPtr message) |
Protected Attributes | |
| FILE * | stream |
| int32_t | openMode |
File input and output stream
enum SeekMode [inherited] |
| CFileStream | ( | ) |
| ~CFileStream | ( | ) |
| virtual void forget | ( | ) | [inline, virtual, inherited] |
decrease refcount and delete object if refcount == 0
| ByteOrder getByteOrder | ( | ) | const [inline, inherited] |
| ByteOrder getByteOrder | ( | ) | const [inline, inherited] |
| virtual int32_t getNbReference | ( | ) | const [inline, virtual, inherited] |
get refcount
| virtual CMessageResult notify | ( | CBaseObject * | sender, | |
| IdStringPtr | message | |||
| ) | [inline, virtual, inherited] |
| bool open | ( | UTF8StringPtr | path, | |
| int32_t | mode, | |||
| ByteOrder | byteOrder = kNativeByteOrder | |||
| ) |
| bool operator<< | ( | const double & | input | ) | [inherited] |
| bool operator<< | ( | const uint64_t & | input | ) | [inherited] |
| bool operator<< | ( | const int64_t & | input | ) | [inherited] |
| bool operator<< | ( | const uint32_t & | input | ) | [inherited] |
| bool operator<< | ( | const int32_t & | input | ) | [inherited] |
| bool operator<< | ( | const uint16_t & | input | ) | [inherited] |
| bool operator<< | ( | const int16_t & | input | ) | [inherited] |
| bool operator<< | ( | const uint8_t & | input | ) | [inherited] |
| bool operator<< | ( | const int8_t & | input | ) | [inherited] |
| bool operator<< | ( | const std::string & | str | ) | [virtual] |
Implements OutputStream.
| bool operator>> | ( | double & | output | ) | [inherited] |
| bool operator>> | ( | uint64_t & | output | ) | [inherited] |
| bool operator>> | ( | int64_t & | output | ) | [inherited] |
| bool operator>> | ( | uint32_t & | output | ) | [inherited] |
| bool operator>> | ( | int32_t & | output | ) | [inherited] |
| bool operator>> | ( | uint16_t & | output | ) | [inherited] |
| bool operator>> | ( | int16_t & | output | ) | [inherited] |
| bool operator>> | ( | uint8_t & | output | ) | [inherited] |
| bool operator>> | ( | int8_t & | output | ) | [inherited] |
| bool operator>> | ( | std::string & | string | ) | [virtual] |
Implements InputStream.
| int32_t readRaw | ( | void * | buffer, | |
| int32_t | size | |||
| ) | [virtual] |
Implements InputStream.
| virtual void remember | ( | ) | [inline, virtual, inherited] |
increase refcount
| void rewind | ( | ) | [virtual] |
Implements SeekableStream.
| int64_t seek | ( | int64_t | pos, | |
| SeekMode | mode | |||
| ) | [virtual] |
returns -1 if seek fails otherwise new position
Implements SeekableStream.
| void setByteOrder | ( | ByteOrder | newByteOrder | ) | [inline, inherited] |
| void setByteOrder | ( | ByteOrder | newByteOrder | ) | [inline, inherited] |
| int64_t tell | ( | ) | const [virtual] |
Implements SeekableStream.
| int32_t writeRaw | ( | const void * | buffer, | |
| int32_t | size | |||
| ) | [virtual] |
Implements OutputStream.
int32_t openMode [protected] |
FILE* stream [protected] |
1.6.1