GNU Octave  4.0.0
A high-level interpreted language, primarily intended for numerical computations, mostly compatible with Matlab
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
Public Member Functions | Static Public Member Functions | Protected Member Functions | Private Member Functions | Private Attributes | List of all members
octave_ostream Class Reference

#include "oct-iostrm.h"

Inheritance diagram for octave_ostream:
Inheritance graph
[legend]
Collaboration diagram for octave_ostream:
Collaboration graph
[legend]

Public Member Functions

 octave_ostream (std::ostream *arg, const std::string &n=std::string())
 
void close (void)
 
virtual void do_close (void)
 
bool eof (void) const
 
std::string error (bool clear, int &err_num)
 
virtual int file_number (void) const
 
std::istream * input_stream (void)
 
bool is_open (void) const
 
std::string name (void) const
 
bool ok (void) const
 
std::ostream * output_stream (void)
 
int seek (off_t offset, int origin)
 
off_t tell (void)
 

Static Public Member Functions

static octave_stream create (std::ostream *arg, const std::string &n=std::string())
 

Protected Member Functions

 ~octave_ostream (void)
 
void clear (void)
 
void clearerr (void)
 
void error (const std::string &msg)
 
void error (const std::string &who, const std::string &msg)
 
oct_mach_info::float_format float_format (void) const
 
void invalid_operation (void) const
 
int mode (void) const
 

Private Member Functions

 octave_ostream (const octave_ostream &)
 
octave_ostreamoperator= (const octave_ostream &)
 
const charstream_type (void) const
 

Private Attributes

std::ostream * os
 

Detailed Description

Definition at line 115 of file oct-iostrm.h.

Constructor & Destructor Documentation

octave_ostream::octave_ostream ( std::ostream *  arg,
const std::string &  n = std::string () 
)
inline

Definition at line 120 of file oct-iostrm.h.

octave_ostream::~octave_ostream ( void  )
inlineprotected

Definition at line 139 of file oct-iostrm.h.

octave_ostream::octave_ostream ( const octave_ostream )
private

Member Function Documentation

void octave_base_stream::clear ( void  )
protectedinherited
void octave_base_stream::clearerr ( void  )
protectedinherited
void octave_base_stream::close ( void  )
inlineinherited

Definition at line 381 of file oct-stream.h.

References octave_stream::is_open().

Referenced by octave_stream::close().

octave_stream octave_ostream::create ( std::ostream *  arg,
const std::string &  n = std::string () 
)
static

Definition at line 86 of file oct-iostrm.cc.

References octave_base_stream::octave_stream.

Referenced by initialize_file_io().

virtual void octave_base_stream::do_close ( void  )
inlinevirtualinherited
bool octave_ostream::eof ( void  ) const
virtual

Reimplemented from octave_base_iostream.

Definition at line 80 of file oct-iostrm.cc.

References os.

std::string octave_base_stream::error ( bool  clear,
int err_num 
)
inherited
void octave_base_stream::error ( const std::string &  msg)
protectedinherited

Definition at line 892 of file oct-stream.cc.

References octave_base_stream::errmsg, and octave_base_stream::fail.

void octave_base_stream::error ( const std::string &  who,
const std::string &  msg 
)
protectedinherited

Definition at line 899 of file oct-stream.cc.

References octave_base_stream::errmsg, and octave_base_stream::fail.

virtual int octave_base_stream::file_number ( void  ) const
inlinevirtualinherited
oct_mach_info::float_format octave_base_stream::float_format ( void  ) const
inlineprotectedinherited

Definition at line 414 of file oct-stream.h.

Referenced by octave_stream::float_format().

std::istream* octave_ostream::input_stream ( void  )
inlinevirtual

Reimplemented from octave_base_stream.

Definition at line 133 of file oct-iostrm.h.

void octave_base_iostream::invalid_operation ( void  ) const
protectedinherited
bool octave_base_stream::is_open ( void  ) const
inlineinherited

Definition at line 377 of file oct-stream.h.

Referenced by octave_stream::is_open().

int octave_base_stream::mode ( void  ) const
inlineprotectedinherited
std::string octave_base_iostream::name ( void  ) const
inlinevirtualinherited

Implements octave_base_stream.

Definition at line 55 of file oct-iostrm.h.

bool octave_base_stream::ok ( void  ) const
inlineinherited
octave_ostream& octave_ostream::operator= ( const octave_ostream )
private
std::ostream* octave_ostream::output_stream ( void  )
inlinevirtual

Reimplemented from octave_base_stream.

Definition at line 135 of file oct-iostrm.h.

int octave_base_iostream::seek ( off_t  offset,
int  origin 
)
virtualinherited

Implements octave_base_stream.

Definition at line 33 of file oct-iostrm.cc.

References octave_base_iostream::invalid_operation().

const char* octave_ostream::stream_type ( void  ) const
inlineprivatevirtual

Implements octave_base_iostream.

Definition at line 145 of file oct-iostrm.h.

off_t octave_base_iostream::tell ( void  )
virtualinherited

Implements octave_base_stream.

Definition at line 42 of file oct-iostrm.cc.

References octave_base_iostream::invalid_operation().

Member Data Documentation

std::ostream* octave_ostream::os
private

Definition at line 143 of file oct-iostrm.h.

Referenced by eof().


The documentation for this class was generated from the following files: