![]() |
Anoncoin
0.9.4
P2P Digital Currency
|
RAII wrapper for FILE*. More...
#include <serialize.h>
Public Member Functions | |
CAutoFile (FILE *filenew, int nTypeIn, int nVersionIn) | |
~CAutoFile () | |
void | fclose () |
FILE * | release () |
operator FILE * () | |
FILE * | operator-> () |
FILE & | operator* () |
FILE ** | operator& () |
FILE * | operator= (FILE *pnew) |
bool | operator! () |
void | setstate (short bits, const char *psz) |
bool | fail () const |
bool | good () const |
void | clear (short n=0) |
short | exceptions () |
short | exceptions (short mask) |
void | SetType (int n) |
int | GetType () |
void | SetVersion (int n) |
int | GetVersion () |
void | ReadVersion () |
void | WriteVersion () |
CAutoFile & | read (char *pch, size_t nSize) |
CAutoFile & | write (const char *pch, size_t nSize) |
template<typename T > | |
unsigned int | GetSerializeSize (const T &obj) |
template<typename T > | |
CAutoFile & | operator<< (const T &obj) |
template<typename T > | |
CAutoFile & | operator>> (T &obj) |
Public Attributes | |
int | nType |
int | nVersion |
Protected Attributes | |
FILE * | file |
short | state |
short | exceptmask |
RAII wrapper for FILE*.
Will automatically close the file when it goes out of scope if not null. If you're returning the file pointer, return file.release(). If you need to close the file early, use file.fclose() instead of fclose(file).
Definition at line 1154 of file serialize.h.
|
inline |
Definition at line 1164 of file serialize.h.
|
inline |
|
inline |
Definition at line 1206 of file serialize.h.
|
inline |
Definition at line 1207 of file serialize.h.
|
inline |
|
inline |
Definition at line 1204 of file serialize.h.
|
inline |
|
inline |
Definition at line 1236 of file serialize.h.
|
inline |
Definition at line 1211 of file serialize.h.
|
inline |
Definition at line 1213 of file serialize.h.
|
inline |
Definition at line 1205 of file serialize.h.
|
inline |
Definition at line 1186 of file serialize.h.
|
inline |
Definition at line 1191 of file serialize.h.
|
inline |
Definition at line 1189 of file serialize.h.
|
inline |
Definition at line 1188 of file serialize.h.
|
inline |
Definition at line 1187 of file serialize.h.
|
inline |
|
inline |
Definition at line 1190 of file serialize.h.
|
inline |
|
inline |
|
inline |
Definition at line 1214 of file serialize.h.
|
inline |
Definition at line 1185 of file serialize.h.
|
inline |
|
inline |
Definition at line 1210 of file serialize.h.
|
inline |
Definition at line 1212 of file serialize.h.
|
inline |
|
inline |
Definition at line 1215 of file serialize.h.
|
protected |
Definition at line 1159 of file serialize.h.
|
protected |
Definition at line 1157 of file serialize.h.
int CAutoFile::nType |
Definition at line 1161 of file serialize.h.
int CAutoFile::nVersion |
Definition at line 1162 of file serialize.h.
|
protected |
Definition at line 1158 of file serialize.h.