#include <binary_file.h>
Definition at line 42 of file binary_file.h.
Public Member Functions | |
binary_out_file (std::string file_name) | |
Create a binary output file with name file_name . | |
virtual int | bool_out (bool dat, std::string name="") |
Output a bool variable. | |
virtual int | char_out (char dat, std::string name="") |
Output a char variable. | |
virtual int | double_out (double dat, std::string name="") |
Output a double variable. | |
virtual int | float_out (float dat, std::string name="") |
Output a float variable. | |
virtual int | int_out (int dat, std::string name="") |
Output an int variable. | |
virtual int | long_out (unsigned long int dat, std::string name="") |
Output an long variable. | |
virtual int | string_out (std::string dat, std::string name="") |
Output a string. | |
virtual int | word_out (std::string dat, std::string name="") |
Output a word. | |
virtual int | start_object (std::string type, std::string name="") |
Start an object. | |
virtual int | end_object () |
End object output (does nothing for a binary file). | |
virtual int | end_line () |
End a line of output (does nothing for a binary file). | |
virtual int | init_file () |
Output initialization. | |
virtual int | clean_up () |
Finish the file. | |
Protected Attributes | |
bool | compressed |
True if the file is to be compressed. | |
bool | gzip |
True if the compression is to be performed by gzip. | |
std::ofstream | outs |
The output stream. | |
std::string | user_filename |
The filename specified by the user. | |
std::string | temp_filename |
The temporary filename. | |
The output format | |
int | fill |
int | precision |
Documentation generated with Doxygen and provided under the GNU Free Documentation License. See License Information for details.
Project hosting provided by
,
O2scl Sourceforge Project Page