Implementation for null output with null access.
More...
#include <JObjectOutput.hh>
|
virtual bool | put (const T &object) override |
| Object output.
|
|
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 data_type & | getInstance () |
| Get unique instance of template class.
|
|
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.
|
|
template<class T>
struct JLANG::JNullAccessibleOutput< T >
Implementation for null output with null access.
Definition at line 189 of file JObjectOutput.hh.
◆ data_type
◆ put()
template<class T >
|
inlineoverridevirtualinherited |
◆ getInstance()
Get unique instance of template class.
- Returns
- object
Definition at line 27 of file JSingleton.hh.
28 {
30
31 return value;
32 }
◆ is_open()
virtual bool JLANG::JNullAccess::is_open |
( |
| ) |
const |
|
inlineoverridevirtualinherited |
◆ open()
virtual void JLANG::JNullAccess::open |
( |
const char * | file_name | ) |
|
|
inlineoverridevirtualinherited |
◆ close()
virtual void JLANG::JNullAccess::close |
( |
| ) |
|
|
inlineoverridevirtualinherited |
◆ 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 struct was generated from the following file: