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_t &error, const int value=-1) |
| | Throw exception or return error. More...
|
| |
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.
static bool do_throw
throw option
◆ 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.
59 cerr << error.what() << endl;
◆ 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: