ReactOS 0.4.16-dev-306-g647d351
|
#include <File.h>
Public Member Functions | |
File () | |
File (const char *filename, const char *mode) | |
~File () | |
bool | open (const char *filename, const char *mode) |
bool | seek (long offset) |
int | get () |
bool | put (int c) |
std::string | getline (bool strip_crlf=false) |
bool | next_line (std::string &line, bool strip_crlf) |
bool | enum_lines (bool(*callback)(const std::string &line, int line_number, long lparam), long lparam, bool strip_crlf) |
bool | read (void *data, unsigned len) |
bool | write (const void *data, unsigned len) |
size_t | length () |
void | close () |
bool | isopened () |
bool | eof () |
FILE * | operator* () |
Static Public Member Functions | |
static bool | LoadIntoString (std::string &s, const char *filename) |
static bool | SaveFromString (const char *filename, const std::string &s, bool binary) |
Private Member Functions | |
File (const File &) | |
const File & | operator= (const File &) |
Private Attributes | |
FILE * | _f |
|
inline |
Definition at line 18 of file File.h.
Referenced by CCabinet::ExtractFile(), FatDeferredFlush(), CCabinet::GetAbsoluteOffset(), CCabinet::GetAttributesOnFile(), CCabinet::GetFileTimes(), CCabinet::ReadFileTable(), and CCabinet::WriteFileEntries().
|
inline |
void File::close | ( | ) |
bool File::enum_lines | ( | bool(*)(const std::string &line, int line_number, long lparam) | callback, |
long | lparam, | ||
bool | strip_crlf | ||
) |
Definition at line 69 of file File.cpp.
Referenced by enum_lines().
|
inline |
Definition at line 91 of file File.h.
Referenced by enum_lines(), and next_line().
|
inline |
size_t File::length | ( | ) |
Definition at line 88 of file File.cpp.
Referenced by CCabinet::GetAttributesOnFile(), CCabinet::GetFileTimes(), and length().
Definition at line 108 of file File.cpp.
Referenced by LoadIntoString().
Definition at line 47 of file File.cpp.
Referenced by next_line().
Definition at line 10 of file File.cpp.
Referenced by generate_random(), open(), QMyDialog::QMyDialog(), and QMyDialog::SaveClicked().
Definition at line 122 of file File.cpp.
Referenced by SaveFromString().
|
private |