1 #ifndef __JLANG__JACCESSIBLESTREAM__
2 #define __JLANG__JACCESSIBLESTREAM__
15 namespace JPP {
using namespace JLANG; }
26 protected std::ifstream,
55 return std::ifstream::is_open();
64 virtual void open(
const char* file_name)
91 protected std::ofstream,
120 return std::ofstream::is_open();
129 virtual void open(
const char* file_name)
Exception for opening of file.
JAccessibleOutputStream(const char *file_name)
Constructor.
virtual bool is_open() const
Check is file is open.
virtual void open(const char *file_name)
Open file.
Accessible output stream.
T * open(const std::string &file_name)
Open file.
void close(std::istream *pf)
Close file.
JAccessibleOutputStream()
Default constructor.
virtual void close()
Close file.
Interface for named access of a device.
static void Throw(const bool option)
Enable/disable throw option.