Interface for null access.
More...
#include <JAccessible.hh>
|
virtual bool | is_open () const override |
| Check is device is open.
|
|
virtual void | open (const char *file_name) override |
| Open device.
|
|
virtual void | close () override |
| Close device.
|
|
|
static void | Throw (const bool option) |
| Enable/disable throw option.
|
|
static int | Throw (const JException_t &error, const int value=-1) |
| Throw exception or return error.
|
|
Interface for null access.
Definition at line 65 of file JAccessible.hh.
◆ is_open()
virtual bool JLANG::JNullAccess::is_open |
( |
| ) |
const |
|
inlineoverridevirtual |
◆ open()
virtual void JLANG::JNullAccess::open |
( |
const char * | file_name | ) |
|
|
inlineoverridevirtual |
◆ close()
virtual void JLANG::JNullAccess::close |
( |
| ) |
|
|
inlineoverridevirtual |
◆ Throw() [1/2]
Enable/disable throw option.
- Parameters
-
option | true enable; false disable |
Definition at line 37 of file JThrow.hh.
◆ Throw() [2/2]
Throw exception or return error.
- Parameters
-
error | exception |
value | return code |
- Returns
- return code
Definition at line 51 of file JThrow.hh.
52 {
54
56 throw error;
57 }
58
59 cerr << error.what() << endl;
60
61 return value;
62 }
◆ do_throw
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: