Accessible output 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 output stream.
This class is a simple wrapper around the std::ofstream class. It class implements the JAccessible interface.
Definition at line 90 of file JAccessibleStream.hh.
◆ JAccessibleOutputStream() [1/2]
JLANG::JAccessibleOutputStream::JAccessibleOutputStream |
( |
| ) |
|
|
inline |
◆ JAccessibleOutputStream() [2/2]
JLANG::JAccessibleOutputStream::JAccessibleOutputStream |
( |
const char * |
file_name | ) |
|
|
inline |
◆ is_open()
virtual bool JLANG::JAccessibleOutputStream::is_open |
( |
| ) |
const |
|
inlinevirtual |
◆ open()
virtual void JLANG::JAccessibleOutputStream::open |
( |
const char * |
file_name | ) |
|
|
inlinevirtual |
◆ close()
virtual void JLANG::JAccessibleOutputStream::close |
( |
| ) |
|
|
inlinevirtual |
◆ 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 50 of file JThrow.hh.
58 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: