#include "oct-hist.h"
Public Member Functions | |
history_system (interpreter &interp) | |
~history_system ()=default | |
void | do_edit_history (const octave_value_list &args=octave_value_list()) |
string_vector | do_history (const octave_value_list &args=octave_value_list(), int nargout=0) |
void | do_run_history (const octave_value_list &args=octave_value_list()) |
void | initialize (bool read_history_file=false) |
bool | input_from_tmp_file () const |
bool | input_from_tmp_file (bool flag) |
octave_value | input_from_tmp_file (const octave_value_list &args, int nargout) |
std::string | timestamp_format_string () const |
octave_value | timestamp_format_string (const octave_value_list &args, int nargout) |
std::string | timestamp_format_string (const std::string &file) |
void | write_timestamp () |
Definition at line 41 of file oct-hist.h.
history_system::history_system | ( | interpreter & | interp | ) |
Definition at line 263 of file oct-hist.cc.
|
default |
void history_system::do_edit_history | ( | const octave_value_list & | args = octave_value_list () | ) |
Definition at line 450 of file oct-hist.cc.
Referenced by octave::Fedit_history().
string_vector history_system::do_history | ( | const octave_value_list & | args = octave_value_list () , |
int | nargout = 0 |
||
) |
Definition at line 321 of file oct-hist.cc.
References command_history::append(), command_history::clear(), event_manager::clear_history(), err_wrong_type_arg(), error(), command_history::file(), interpreter::get_event_manager(), octave_value::int_value(), octave_value::is_string(), octave_value::isnumeric(), len, octave_value_list::length(), command_history::list(), octave_stdout, panic_impossible, command_history::read(), command_history::read_range(), command_history::set_file(), event_manager::set_history(), octave_value::string_value(), and command_history::write().
Referenced by octave::Fhistory().
void history_system::do_run_history | ( | const octave_value_list & | args = octave_value_list () | ) |
Definition at line 514 of file oct-hist.cc.
Referenced by octave::Frun_history().
void history_system::initialize | ( | bool | read_history_file = false | ) |
Definition at line 269 of file oct-hist.cc.
References interpreter::get_event_manager(), command_history::initialize(), command_history::list(), and event_manager::set_history().
Referenced by interpreter::initialize_history().
|
inline |
Definition at line 58 of file oct-hist.h.
|
inline |
Definition at line 63 of file oct-hist.h.
octave_value history_system::input_from_tmp_file | ( | const octave_value_list & | args, |
int | nargout | ||
) |
Definition at line 299 of file oct-hist.cc.
References octave::set_internal_variable().
Referenced by base_lexer::input_from_tmp_history_file().
|
inline |
Definition at line 71 of file oct-hist.h.
octave_value history_system::timestamp_format_string | ( | const octave_value_list & | args, |
int | nargout | ||
) |
Definition at line 307 of file oct-hist.cc.
References octave::set_internal_variable().
Referenced by octave::Fhistory_timestamp_format_string().
|
inline |
Definition at line 76 of file oct-hist.h.
void history_system::write_timestamp | ( | ) |
Definition at line 281 of file oct-hist.cc.
References command_history::add(), event_manager::append_history(), and interpreter::get_event_manager().
Referenced by octave::Fexec().