|
Public Types |
enum | openmode {
app = 0x01,
ate = 0x02,
binary = 0x04,
in = 0x08,
out = 0x10,
trunc = 0x20
} |
enum | iostate { goodbit = 0x00,
badbit = 0x01,
eofbit = 0x02,
failbit = 0x04
} |
Public Member Functions |
| FileStream () |
| FileStream (const char *path, int mode) |
| FileStream (const std::string &path, int mode) |
| ~FileStream () |
void | open (const char *path, int mode) |
void | open (const std::string &path, int mode) |
void | close () |
FileStream & | getline (char *s, size_t size) |
FileStream & | getline (char *s, size_t size, char delim) |
FileStream & | getline (std::string &s) |
FileStream & | getline (std::string &s, char delim) |
FileStream & | read (char *s, size_t size) |
FileStream & | write (const char *s, size_t size) |
bool | eof () |
bool | good () |
int | openmode () |
int | rdstate () |
void | clear (int state=goodbit) |