Wrapper of C file stream for output using fwrite(). More...
#include <filewritestream.h>
Public Types | |
typedef char | Ch |
Character type. Only support char. More... | |
Public Member Functions | |
FileWriteStream (std::FILE *fp, char *buffer, size_t bufferSize) | |
void | Put (char c) |
void | PutN (char c, size_t n) |
void | Flush () |
char | Peek () const |
char | Take () |
size_t | Tell () const |
char * | PutBegin () |
size_t | PutEnd (char *) |
Private Member Functions | |
FileWriteStream (const FileWriteStream &) | |
FileWriteStream & | operator= (const FileWriteStream &) |
Private Attributes | |
std::FILE * | fp_ |
char * | buffer_ |
char * | bufferEnd_ |
char * | current_ |
Wrapper of C file stream for output using fwrite().
Definition at line 32 of file filewritestream.h.
typedef char FileWriteStream::Ch |
Character type. Only support char.
Definition at line 34 of file filewritestream.h.
|
inline |
Definition at line 36 of file filewritestream.h.
|
private |
|
inline |
Definition at line 63 of file filewritestream.h.
|
private |
|
inline |
Definition at line 75 of file filewritestream.h.
|
inline |
Definition at line 40 of file filewritestream.h.
|
inline |
Definition at line 78 of file filewritestream.h.
|
inline |
Definition at line 79 of file filewritestream.h.
|
inline |
Definition at line 47 of file filewritestream.h.
|
inline |
Definition at line 76 of file filewritestream.h.
|
inline |
Definition at line 77 of file filewritestream.h.
|
private |
Definition at line 87 of file filewritestream.h.
|
private |
Definition at line 88 of file filewritestream.h.
|
private |
Definition at line 89 of file filewritestream.h.
|
private |
Definition at line 86 of file filewritestream.h.