Jpp
18.3.1
the software that should make you happy
|
Accessible input stream. More...
#include <JAccessibleStream.hh>
Public Member Functions | |
JAccessibleInputStream () | |
Default constructor. More... | |
JAccessibleInputStream (const char *file_name) | |
Constructor. More... | |
virtual bool | is_open () const |
Check is file is open. More... | |
virtual void | open (const char *file_name) |
Open file. More... | |
virtual void | close () |
Close file. More... | |
Static Public Member Functions | |
static void | Throw (const bool option) |
Enable/disable throw option. More... | |
static int | Throw (const JException &error, const int value=-1) |
Throw exception or return error. More... | |
Static Protected Attributes | |
static bool | do_throw |
throw option More... | |
Accessible input stream.
This class is a simple wrapper around the std::ifstream class. It implements the JAccessible interface.
Definition at line 25 of file JAccessibleStream.hh.
|
inline |
|
inline |
Constructor.
file_name | file name |
Definition at line 42 of file JAccessibleStream.hh.
|
inlinevirtual |
Check is file is open.
Implements JLANG::JAccessible.
Definition at line 53 of file JAccessibleStream.hh.
|
inlinevirtual |
Open file.
file_name | file name |
Implements JLANG::JAccessible.
Reimplemented in JLANG::JAccessibleBinaryInputStream.
Definition at line 64 of file JAccessibleStream.hh.
|
inlinevirtual |
|
inlinestaticinherited |
|
inlinestaticinherited |
Throw exception or return error.
error | exception |
value | return code |
Definition at line 50 of file JThrow.hh.
|
staticprotectedinherited |