Accessible input stream.
More...
#include <JAccessibleStream.hh>
|
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...
|
|
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.
JLANG::JAccessibleInputStream::JAccessibleInputStream |
( |
| ) |
|
|
inline |
JLANG::JAccessibleInputStream::JAccessibleInputStream |
( |
const char * |
file_name | ) |
|
|
inline |
virtual bool JLANG::JAccessibleInputStream::is_open |
( |
| ) |
const |
|
inlinevirtual |
virtual void JLANG::JAccessibleInputStream::open |
( |
const char * |
file_name | ) |
|
|
inlinevirtual |
virtual void JLANG::JAccessibleInputStream::close |
( |
| ) |
|
|
inlinevirtual |
Enable/disable throw option.
- Parameters
-
option | true enable; false disable |
Definition at line 37 of file JThrow.hh.
static bool do_throw
throw option
Throw exception or return error.
- Parameters
-
error | exception |
value | return code |
- Returns
- return code
Definition at line 50 of file JThrow.hh.
58 cerr << error.
what() << endl;
static bool do_throw
throw option
virtual const char * what() const
Get error message.
throw option
Set default throw option to true
.
Definition at line 28 of file JThrow.hh.
The documentation for this class was generated from the following file: