#include <binary_ofstream.h>
Public Member Functions | |
binary_ofstream (const char *name) | |
binary_ofstream (const std::string &name) | |
void | close () |
binary_ofstream & | operator<< (bool n) |
binary_ofstream & | operator<< (double n) |
binary_ofstream & | operator<< (const std::string &n) |
binary_ofstream & | operator<< (unsigned long n) |
binary_ofstream & | operator<< (long n) |
binary_ofstream & | operator<< (unsigned int n) |
binary_ofstream & | operator<< (int n) |
binary_ofstream & | operator<< (unsigned short n) |
binary_ofstream & | operator<< (float n) |
binary_ofstream & | operator<< (unsigned char n) |
binary_ofstream & | operator<< (char n) |
binary_ofstream & | operator<< (short n) |
~binary_ofstream () | |
Private Member Functions | |
void | init (const char *name) |
Private Attributes | |
FILE * | file_ |
Definition at line 8 of file binary_ofstream.h.
binary_ofstream::binary_ofstream | ( | const char * | name | ) | [explicit] |
binary_ofstream::binary_ofstream | ( | const std::string & | name | ) | [explicit] |
binary_ofstream::~binary_ofstream | ( | ) |
void binary_ofstream::close | ( | void | ) |
Definition at line 32 of file binary_ofstream.cc.
References file_.
Referenced by ~binary_ofstream().
void binary_ofstream::init | ( | const char * | name | ) | [private] |
Definition at line 18 of file binary_ofstream.cc.
References gather_cfg::cout, and file_.
Referenced by binary_ofstream().
binary_ofstream & binary_ofstream::operator<< | ( | unsigned int | n | ) |
binary_ofstream & binary_ofstream::operator<< | ( | const std::string & | n | ) |
binary_ofstream & binary_ofstream::operator<< | ( | bool | n | ) |
Definition at line 62 of file binary_ofstream.cc.
References n.
{ return operator<<( static_cast<char>(n)); }
binary_ofstream & binary_ofstream::operator<< | ( | double | n | ) |
binary_ofstream & binary_ofstream::operator<< | ( | float | n | ) |
binary_ofstream & binary_ofstream::operator<< | ( | unsigned long | n | ) |
binary_ofstream & binary_ofstream::operator<< | ( | char | n | ) |
Definition at line 38 of file binary_ofstream.cc.
References file_.
binary_ofstream & binary_ofstream::operator<< | ( | short | n | ) |
binary_ofstream & binary_ofstream::operator<< | ( | int | n | ) |
binary_ofstream & binary_ofstream::operator<< | ( | unsigned short | n | ) |
binary_ofstream & binary_ofstream::operator<< | ( | long | n | ) |
binary_ofstream & binary_ofstream::operator<< | ( | unsigned char | n | ) |
Definition at line 41 of file binary_ofstream.cc.
References file_.
FILE* binary_ofstream::file_ [private] |
Definition at line 38 of file binary_ofstream.h.
Referenced by close(), init(), and operator<<().