Navigation

Operators and Keywords

Function List:

C++ API

octave_stream Class Reference

#include <oct-stream.h>

Collaboration diagram for octave_stream:

List of all members.


Public Member Functions

 octave_stream (octave_base_stream *bs=0)
 ~octave_stream (void)
 octave_stream (const octave_stream &)
octave_streamoperator= (const octave_stream &)
int flush (void)
std::string getl (octave_idx_type max_len, bool &err, const std::string &who)
std::string getl (const octave_value &max_len, bool &err, const std::string &who)
std::string gets (octave_idx_type max_len, bool &err, const std::string &who)
std::string gets (const octave_value &max_len, bool &err, const std::string &who)
long skipl (long count, bool &err, const std::string &who)
long skipl (const octave_value &count, bool &err, const std::string &who)
int seek (long offset, int origin)
int seek (const octave_value &offset, const octave_value &origin)
long tell (void)
int rewind (void)
bool is_open (void) const
void close (void)
octave_value read (const Array< double > &size, octave_idx_type block_size, oct_data_conv::data_type input_type, oct_data_conv::data_type output_type, octave_idx_type skip, oct_mach_info::float_format flt_fmt, octave_idx_type &count)
octave_idx_type write (const octave_value &data, octave_idx_type block_size, oct_data_conv::data_type output_type, octave_idx_type skip, oct_mach_info::float_format flt_fmt)
template<class T >
octave_idx_type write (const Array< T > &, octave_idx_type block_size, oct_data_conv::data_type output_type, octave_idx_type skip, oct_mach_info::float_format flt_fmt)
octave_value scanf (const std::string &fmt, const Array< double > &size, octave_idx_type &count, const std::string &who)
octave_value scanf (const octave_value &fmt, const Array< double > &size, octave_idx_type &count, const std::string &who)
octave_value_list oscanf (const std::string &fmt, const std::string &who)
octave_value_list oscanf (const octave_value &fmt, const std::string &who)
int printf (const std::string &fmt, const octave_value_list &args, const std::string &who)
int printf (const octave_value &fmt, const octave_value_list &args, const std::string &who)
int puts (const std::string &s, const std::string &who)
int puts (const octave_value &s, const std::string &who)
bool eof (void) const
std::string error (bool clear, int &err_num)
std::string error (bool clear=false)
void error (const std::string &msg)
void error (const char *msg)
int file_number (void)
bool is_valid (void) const
bool ok (void) const
 operator bool () const
std::string name (void) const
int mode (void) const
oct_mach_info::float_format float_format (void) const
std::istream * input_stream (void)
std::ostreamoutput_stream (void)
void clearerr (void)

Static Public Member Functions

static std::string mode_as_string (int mode)

Constructor & Destructor Documentation

octave_stream::octave_stream ( octave_base_stream bs = 0  ) 

octave_stream::~octave_stream ( void   ) 

octave_stream::octave_stream ( const octave_stream s  ) 


Member Function Documentation

void octave_stream::clearerr ( void   )  [inline]

void octave_stream::close ( void   ) 

bool octave_stream::eof ( void   )  const

void octave_stream::error ( const char *  msg  )  [inline]

void octave_stream::error ( const std::string msg  )  [inline]

std::string octave_stream::error ( bool  clear = false  )  [inline]

std::string octave_stream::error ( bool  clear,
int err_num 
)

int octave_stream::file_number ( void   )  [inline]

oct_mach_info::float_format octave_stream::float_format ( void   )  const

int octave_stream::flush ( void   ) 

std::string octave_stream::getl ( const octave_value max_len,
bool err,
const std::string who 
)

std::string octave_stream::getl ( octave_idx_type  max_len,
bool err,
const std::string who 
)

std::string octave_stream::gets ( const octave_value max_len,
bool err,
const std::string who 
)

std::string octave_stream::gets ( octave_idx_type  max_len,
bool err,
const std::string who 
)

std::istream* octave_stream::input_stream ( void   )  [inline]

bool octave_stream::is_open ( void   )  const

bool octave_stream::is_valid ( void   )  const [inline]

int octave_stream::mode ( void   )  const

std::string octave_stream::mode_as_string ( int  mode  )  [static]

std::string octave_stream::name ( void   )  const

bool octave_stream::ok ( void   )  const [inline]

octave_stream::operator bool ( void   )  const [inline]

octave_stream & octave_stream::operator= ( const octave_stream s  ) 

octave_value_list octave_stream::oscanf ( const octave_value fmt,
const std::string who 
)

octave_value_list octave_stream::oscanf ( const std::string fmt,
const std::string who 
)

std::ostream* octave_stream::output_stream ( void   )  [inline]

int octave_stream::printf ( const octave_value fmt,
const octave_value_list args,
const std::string who 
)

int octave_stream::printf ( const std::string fmt,
const octave_value_list args,
const std::string who 
)

int octave_stream::puts ( const octave_value s,
const std::string who 
)

int octave_stream::puts ( const std::string s,
const std::string who 
)

octave_value octave_stream::read ( const Array< double > &  size,
octave_idx_type  block_size,
oct_data_conv::data_type  input_type,
oct_data_conv::data_type  output_type,
octave_idx_type  skip,
oct_mach_info::float_format  flt_fmt,
octave_idx_type count 
)

int octave_stream::rewind ( void   ) 

octave_value octave_stream::scanf ( const octave_value fmt,
const Array< double > &  size,
octave_idx_type count,
const std::string who 
)

octave_value octave_stream::scanf ( const std::string fmt,
const Array< double > &  size,
octave_idx_type count,
const std::string who 
)

int octave_stream::seek ( const octave_value offset,
const octave_value origin 
)

int octave_stream::seek ( long  offset,
int  origin 
)

long octave_stream::skipl ( const octave_value count,
bool err,
const std::string who 
)

long octave_stream::skipl ( long  count,
bool err,
const std::string who 
)

long octave_stream::tell ( void   ) 

template<class T >
octave_idx_type octave_stream::write ( const Array< T > &  data,
octave_idx_type  block_size,
oct_data_conv::data_type  output_type,
octave_idx_type  skip,
oct_mach_info::float_format  flt_fmt 
) [inline]

octave_idx_type octave_stream::write ( const octave_value data,
octave_idx_type  block_size,
oct_data_conv::data_type  output_type,
octave_idx_type  skip,
oct_mach_info::float_format  flt_fmt 
)


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