#include <MagneticField/Interpolation/src/binary_ofstream.h>
Public Member Functions | |
binary_ofstream (const std::string &name) | |
binary_ofstream (const char *name) | |
void | close () |
binary_ofstream & | operator<< (const std::string &n) |
binary_ofstream & | operator<< (bool n) |
binary_ofstream & | operator<< (double n) |
binary_ofstream & | operator<< (float 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<< (short n) |
binary_ofstream & | operator<< (unsigned char n) |
binary_ofstream & | operator<< (char n) |
~binary_ofstream () | |
Private Member Functions | |
void | init (const char *name) |
Private Attributes | |
FILE * | file_ |
Definition at line 7 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 | ( | ) |
Definition at line 28 of file binary_ofstream.cc.
References close().
00029 { 00030 close(); 00031 }
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 GenMuonPlsPt100GeV_cfg::cout, lat::endl(), and file_.
Referenced by binary_ofstream().
00019 { 00020 file_ = fopen( name, "wb"); 00021 if (file_ == 0) { 00022 std::cout << "file " << name << " cannot be opened for writing" 00023 << std::endl; 00024 throw binary_ofstream_error(); 00025 } 00026 }
binary_ofstream & binary_ofstream::operator<< | ( | const std::string & | n | ) |
binary_ofstream& binary_ofstream::operator<< | ( | bool | 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<< | ( | long | n | ) |
binary_ofstream & binary_ofstream::operator<< | ( | unsigned int | n | ) |
binary_ofstream & binary_ofstream::operator<< | ( | int | n | ) |
binary_ofstream & binary_ofstream::operator<< | ( | unsigned short | n | ) |
binary_ofstream & binary_ofstream::operator<< | ( | short | n | ) |
binary_ofstream & binary_ofstream::operator<< | ( | unsigned char | n | ) |
binary_ofstream & binary_ofstream::operator<< | ( | char | n | ) |
FILE* binary_ofstream::file_ [private] |