Interface for null access.
More...
#include <JAccessible.hh>
|
virtual bool | is_open () const override |
| Check is device is open. More...
|
|
virtual void | open (const char *file_name) override |
| Open device. More...
|
|
virtual void | close () override |
| Close device. More...
|
|
|
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...
|
|
Interface for null access.
Definition at line 65 of file JAccessible.hh.
virtual bool JLANG::JNullAccess::is_open |
( |
| ) |
const |
|
inlineoverridevirtual |
virtual void JLANG::JNullAccess::open |
( |
const char * |
file_name | ) |
|
|
inlineoverridevirtual |
virtual void JLANG::JNullAccess::close |
( |
| ) |
|
|
inlineoverridevirtual |
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;
virtual const char * what() const override
Get error message.
static bool do_throw
throw option
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: