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

#include "pager.h"

Public Member Functions

 output_system (interpreter &interp)
 
 ~output_system ()=default
 
std::ostream & __diary__ ()
 
std::ostream & __stdout__ ()
 
void clear_external_pager ()
 
void close_diary ()
 
diary_streamdiary ()
 
std::string diary_file_name () const
 
std::string diary_file_name (const std::string &nm)
 
std::ofstreamexternal_diary_file ()
 
void flush_stdout ()
 
bool flushing_output_to_pager () const
 
bool flushing_output_to_pager (bool flag)
 
void open_diary ()
 
bool page_output_immediately () const
 
bool page_output_immediately (bool flag)
 
octave_value page_output_immediately (const octave_value_list &args, int nargout)
 
bool page_screen_output () const
 
bool page_screen_output (bool flag)
 
octave_value page_screen_output (const octave_value_list &args, int nargout)
 
pager_streampager ()
 
std::string PAGER () const
 
octave_value PAGER (const octave_value_list &args, int nargout)
 
std::string PAGER (const std::string &s)
 
std::string pager_command () const
 
std::string PAGER_FLAGS () const
 
octave_value PAGER_FLAGS (const octave_value_list &args, int nargout)
 
std::string PAGER_FLAGS (const std::string &s)
 
bool really_flush_to_pager () const
 
bool really_flush_to_pager (bool flag)
 
void reset ()
 
bool sync (const char *msg, int len)
 
bool write_to_diary_file () const
 
bool write_to_diary_file (bool flag)
 

Detailed Description

Definition at line 131 of file pager.h.

Constructor & Destructor Documentation

◆ output_system()

output_system::output_system ( interpreter interp)

Definition at line 275 of file pager.cc.

◆ ~output_system()

output_system::~output_system ( )
default

Member Function Documentation

◆ __diary__()

std::ostream& output_system::__diary__ ( )
inline

Definition at line 257 of file pager.h.

References diary_stream::stream().

Referenced by octave::__diary__().

◆ __stdout__()

std::ostream& output_system::__stdout__ ( )
inline

Definition at line 255 of file pager.h.

References pager_stream::stream().

Referenced by stream_list::stream_list(), and octave::__stdout__().

◆ clear_external_pager()

void output_system::clear_external_pager ( )

Definition at line 426 of file pager.cc.

References interpreter::get_child_list(), procstreambase::pid(), and child_list::remove().

Referenced by flush_stdout().

◆ close_diary()

void output_system::close_diary ( )

Definition at line 355 of file pager.cc.

References pager_stream::flush_current_contents_to_diary(), and octave_diary.

Referenced by octave::Fdiary(), and open_diary().

◆ diary()

diary_stream& output_system::diary ( )
inline

Definition at line 143 of file pager.h.

◆ diary_file_name() [1/2]

std::string output_system::diary_file_name ( ) const
inline

Definition at line 145 of file pager.h.

Referenced by octave::Fdiary().

◆ diary_file_name() [2/2]

std::string output_system::diary_file_name ( const std::string &  nm)
inline

Definition at line 147 of file pager.h.

◆ external_diary_file()

std::ofstream& output_system::external_diary_file ( )
inline

Definition at line 241 of file pager.h.

Referenced by diary_buf::sync().

◆ flush_stdout()

void output_system::flush_stdout ( )

Definition at line 336 of file pager.cc.

References clear_external_pager(), and pager_stream::stream().

Referenced by octave::flush_stdout(), and reset().

◆ flushing_output_to_pager() [1/2]

bool output_system::flushing_output_to_pager ( ) const
inline

Definition at line 227 of file pager.h.

◆ flushing_output_to_pager() [2/2]

bool output_system::flushing_output_to_pager ( bool  flag)
inline

Definition at line 232 of file pager.h.

◆ open_diary()

void output_system::open_diary ( )

Definition at line 378 of file pager.cc.

References close_diary(), error(), and pager_stream::set_diary_skip().

Referenced by octave::Fdiary().

◆ page_output_immediately() [1/3]

bool output_system::page_output_immediately ( ) const
inline

Definition at line 179 of file pager.h.

◆ page_output_immediately() [2/3]

bool output_system::page_output_immediately ( bool  flag)
inline

Definition at line 184 of file pager.h.

◆ page_output_immediately() [3/3]

octave_value output_system::page_output_immediately ( const octave_value_list args,
int  nargout 
)

Definition at line 300 of file pager.cc.

References octave::set_internal_variable().

Referenced by octave::Fpage_output_immediately().

◆ page_screen_output() [1/3]

bool output_system::page_screen_output ( ) const
inline

Definition at line 194 of file pager.h.

◆ page_screen_output() [2/3]

bool output_system::page_screen_output ( bool  flag)
inline

Definition at line 196 of file pager.h.

◆ page_screen_output() [3/3]

octave_value output_system::page_screen_output ( const octave_value_list args,
int  nargout 
)

Definition at line 308 of file pager.cc.

References octave::set_internal_variable().

Referenced by octave::Fmore(), and octave::Fpage_screen_output().

◆ pager()

pager_stream& output_system::pager ( )
inline

Definition at line 141 of file pager.h.

◆ PAGER() [1/3]

std::string output_system::PAGER ( ) const
inline

Definition at line 156 of file pager.h.

◆ PAGER() [2/3]

octave_value output_system::PAGER ( const octave_value_list args,
int  nargout 
)

Definition at line 285 of file pager.cc.

References octave::set_internal_variable().

Referenced by octave::FPAGER().

◆ PAGER() [3/3]

std::string output_system::PAGER ( const std::string &  s)
inline

Definition at line 158 of file pager.h.

◆ pager_command()

std::string output_system::pager_command ( ) const

Definition at line 316 of file pager.cc.

◆ PAGER_FLAGS() [1/3]

std::string output_system::PAGER_FLAGS ( ) const
inline

Definition at line 167 of file pager.h.

◆ PAGER_FLAGS() [2/3]

octave_value output_system::PAGER_FLAGS ( const octave_value_list args,
int  nargout 
)

Definition at line 292 of file pager.cc.

References octave::set_internal_variable().

Referenced by octave::FPAGER_FLAGS().

◆ PAGER_FLAGS() [3/3]

std::string output_system::PAGER_FLAGS ( const std::string &  s)
inline

Definition at line 169 of file pager.h.

◆ really_flush_to_pager() [1/2]

bool output_system::really_flush_to_pager ( ) const
inline

Definition at line 215 of file pager.h.

◆ really_flush_to_pager() [2/2]

bool output_system::really_flush_to_pager ( bool  flag)
inline

Definition at line 220 of file pager.h.

◆ reset()

void output_system::reset ( )

Definition at line 327 of file pager.cc.

References flush_stdout(), pager_stream::reset(), and diary_stream::reset().

◆ sync()

bool output_system::sync ( const char *  msg,
int  len 
)

◆ write_to_diary_file() [1/2]

bool output_system::write_to_diary_file ( ) const
inline

Definition at line 203 of file pager.h.

Referenced by octave::Fdiary(), and diary_buf::sync().

◆ write_to_diary_file() [2/2]

bool output_system::write_to_diary_file ( bool  flag)
inline

Definition at line 208 of file pager.h.


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