26 #if ! defined (octave_oct_iostrm_h)
27 #define octave_oct_iostrm_h 1
29 #include "octave-config.h"
41 std::ios::openmode
m = std::ios::in | std::ios::out,
44 :
octave::base_stream (
m, ff), m_name (
n) { }
60 int seek (off_t offset,
int origin);
68 bool eof (
void)
const;
72 std::string
name (
void)
const {
return m_name; }
76 void invalid_operation (
void)
const;
97 create (std::istream *arg =
nullptr,
const std::string&
n =
"");
101 bool eof (
void)
const;
115 const char *
stream_type (
void)
const {
return "octave_istream"; }
136 create (std::ostream *arg,
const std::string&
n =
"");
140 bool eof (
void)
const;
154 const char *
stream_type (
void)
const {
return "octave_ostream"; }
octave_base_iostream(const std::string &n="", std::ios::openmode m=std::ios::in|std::ios::out, octave::mach_info::float_format ff=octave::mach_info::native_float_format())
virtual const char * stream_type(void) const =0
octave_base_iostream(const octave_base_iostream &)=delete
~octave_base_iostream(void)=default
std::string name(void) const
std::ostream * output_stream(void)
const char * stream_type(void) const
~octave_istream(void)=default
std::istream * input_stream(void)
octave_istream(const octave_istream &)=delete
octave_istream(std::istream *arg=nullptr, const std::string &n="")
octave_ostream(const octave_ostream &)=delete
~octave_ostream(void)=default
std::istream * input_stream(void)
std::ostream * output_stream(void)
const char * stream_type(void) const
octave_ostream(std::ostream *arg, const std::string &n="")
float_format native_float_format(void)