GNU Octave 7.1.0
A high-level interpreted language, primarily intended for numerical computations, mostly compatible with Matlab
fstream Class Reference

#include "oct-fstrm.h"

Inheritance diagram for fstream:
Collaboration diagram for fstream:

Public Member Functions

 fstream (const fstream &)=delete
 
 fstream (const std::string &nm_arg, std::ios::openmode arg_md=std::ios::in|std::ios::out, mach_info::float_format flt_fmt=mach_info::native_float_format())
 
void do_close (void)
 
bool eof (void) const
 
std::istream * input_stream (void)
 
std::string name (void) const
 
fstreamoperator= (const fstream &)=delete
 
std::ostream * output_stream (void)
 
int seek (off_t offset, int origin)
 
off_t tell (void)
 

Static Public Member Functions

static stream create (const std::string &nm_arg, std::ios::openmode arg_md=std::ios::in|std::ios::out, mach_info::float_format flt_fmt=mach_info::native_float_format())
 

Protected Member Functions

 ~fstream (void)=default
 

Private Attributes

std::fstream m_fstream
 
std::string m_name
 

Detailed Description

Definition at line 38 of file oct-fstrm.h.

Constructor & Destructor Documentation

◆ fstream() [1/2]

fstream::fstream ( const std::string &  nm_arg,
std::ios::openmode  arg_md = std::ios::in | std::ios::out,
mach_info::float_format  flt_fmt = mach_info::native_float_format () 
)

Definition at line 45 of file oct-fstrm.cc.

References error(), m_fstream, and m_name.

◆ fstream() [2/2]

fstream::fstream ( const fstream )
delete

◆ ~fstream()

fstream::~fstream ( void  )
protecteddefault

Member Function Documentation

◆ create()

OCTAVE_NAMESPACE_BEGIN stream fstream::create ( const std::string &  nm_arg,
std::ios::openmode  arg_md = std::ios::in | std::ios::out,
mach_info::float_format  flt_fmt = mach_info::native_float_format () 
)
static

Definition at line 39 of file oct-fstrm.cc.

◆ do_close()

void fstream::do_close ( void  )

Definition at line 87 of file oct-fstrm.cc.

References m_fstream.

◆ eof()

bool fstream::eof ( void  ) const

Definition at line 81 of file oct-fstrm.cc.

References m_fstream.

◆ input_stream()

std::istream * fstream::input_stream ( void  )

Definition at line 93 of file oct-fstrm.cc.

References m_fstream.

◆ name()

std::string fstream::name ( void  ) const
inline

Definition at line 74 of file oct-fstrm.h.

◆ operator=()

fstream & fstream::operator= ( const fstream )
delete

◆ output_stream()

std::ostream * fstream::output_stream ( void  )

Definition at line 104 of file oct-fstrm.cc.

References m_fstream.

◆ seek()

int fstream::seek ( off_t  offset,
int  origin 
)

Definition at line 59 of file oct-fstrm.cc.

References error().

◆ tell()

off_t fstream::tell ( void  )

Definition at line 70 of file oct-fstrm.cc.

References error().

Member Data Documentation

◆ m_fstream

std::fstream fstream::m_fstream
private

Definition at line 88 of file oct-fstrm.h.

Referenced by fstream(), do_close(), eof(), input_stream(), and output_stream().

◆ m_name

std::string fstream::m_name
private

Definition at line 86 of file oct-fstrm.h.

Referenced by fstream().


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