#include <binary_ifstream.h>
Public Member Functions | |
bool | bad () const |
binary_ifstream (const char *name) | |
binary_ifstream (const std::string &name) | |
void | close () |
bool | eof () const |
bool | fail () const |
bool | good () const |
stream state checking More... | |
operator bool () const | |
bool | operator! () const |
binary_ifstream & | operator>> (char &n) |
binary_ifstream & | operator>> (unsigned char &n) |
binary_ifstream & | operator>> (short &n) |
binary_ifstream & | operator>> (unsigned short &n) |
binary_ifstream & | operator>> (int &n) |
binary_ifstream & | operator>> (unsigned int &n) |
binary_ifstream & | operator>> (long &n) |
binary_ifstream & | operator>> (unsigned long &n) |
binary_ifstream & | operator>> (float &n) |
binary_ifstream & | operator>> (double &n) |
binary_ifstream & | operator>> (bool &n) |
binary_ifstream & | operator>> (std::string &n) |
~binary_ifstream () | |
Private Member Functions | |
void | init (const char *name) |
Private Attributes | |
FILE * | file_ |
Definition at line 7 of file binary_ifstream.h.
|
explicit |
|
explicit |
binary_ifstream::~binary_ifstream | ( | ) |
Definition at line 28 of file binary_ifstream.cc.
References close().
bool binary_ifstream::bad | ( | ) | const |
Definition at line 99 of file binary_ifstream.cc.
References fail().
Referenced by good(), and operator!().
void binary_ifstream::close | ( | void | ) |
Definition at line 32 of file binary_ifstream.cc.
References file_.
Referenced by python.Vispa.Gui.BoxContentDialog.BoxContentDialog::keyPressEvent(), python.Vispa.Gui.FindDialog.FindDialog::keyPressEvent(), MagneticFieldGrid::load(), and ~binary_ifstream().
bool binary_ifstream::eof | ( | ) | const |
Definition at line 88 of file binary_ifstream.cc.
References file_.
Referenced by good(), and operator!().
bool binary_ifstream::fail | ( | ) | const |
Definition at line 93 of file binary_ifstream.cc.
References file_.
Referenced by bad(), and operator!().
bool binary_ifstream::good | ( | ) | const |
|
private |
Definition at line 18 of file binary_ifstream.cc.
References gather_cfg::cout, and file_.
Referenced by binary_ifstream().
binary_ifstream::operator bool | ( | ) | const |
Definition at line 105 of file binary_ifstream.cc.
bool binary_ifstream::operator! | ( | ) | const |
binary_ifstream & binary_ifstream::operator>> | ( | char & | n | ) |
binary_ifstream & binary_ifstream::operator>> | ( | unsigned char & | n | ) |
binary_ifstream & binary_ifstream::operator>> | ( | short & | n | ) |
binary_ifstream & binary_ifstream::operator>> | ( | unsigned short & | n | ) |
binary_ifstream & binary_ifstream::operator>> | ( | int & | n | ) |
binary_ifstream & binary_ifstream::operator>> | ( | unsigned int & | n | ) |
binary_ifstream & binary_ifstream::operator>> | ( | long & | n | ) |
binary_ifstream & binary_ifstream::operator>> | ( | unsigned long & | n | ) |
binary_ifstream & binary_ifstream::operator>> | ( | float & | n | ) |
binary_ifstream & binary_ifstream::operator>> | ( | double & | n | ) |
binary_ifstream & binary_ifstream::operator>> | ( | bool & | n | ) |
binary_ifstream & binary_ifstream::operator>> | ( | std::string & | n | ) |
|
private |
Definition at line 45 of file binary_ifstream.h.
Referenced by close(), eof(), fail(), init(), and operator>>().