#include "cmd-hist.h"
Public Member Functions | |
virtual | ~command_history ()=default |
Static Public Member Functions | |
static bool | add (const std::string &) |
static void | append (const std::string &="") |
static int | base () |
static void | clean_up_and_save (const std::string &="", int=-1) |
static void | clear () |
static int | current_number () |
static std::string | file () |
static std::string | get_entry (int) |
static int | goto_mark () |
static std::string | histcontrol () |
static void | ignore_entries (bool=true) |
static bool | ignoring_entries () |
static void | initialize (bool, const std::string &, int, const std::string &) |
static bool | is_initialized () |
static int | is_stifled () |
static int | length () |
static string_vector | list (int=-1, bool=false) |
static int | max_input_history () |
static void | process_histcontrol (const std::string &) |
static void | read (bool=true) |
static void | read (const std::string &, bool=true) |
static void | read_range (const std::string &, int=-1, int=-1, bool=true) |
static void | read_range (int=-1, int=-1, bool=true) |
static void | remove (int) |
static void | replace_entry (int, const std::string &) |
static void | set_file (const std::string &) |
static void | set_mark (int n) |
static void | set_size (int) |
static int | size () |
static void | stifle (int) |
static void | truncate_file (const std::string &="", int=-1) |
static int | unstifle () |
static int | where () |
static void | write (const std::string &="") |
Protected Member Functions | |
command_history () | |
virtual bool | do_add (const std::string &) |
virtual void | do_append (const std::string &) |
virtual int | do_base () const |
virtual void | do_clean_up_and_save (const std::string &, int) |
virtual void | do_clear () |
virtual int | do_current_number () const |
virtual std::string | do_file () |
virtual std::string | do_get_entry (int) const |
virtual int | do_goto_mark () |
virtual std::string | do_histcontrol () const |
virtual void | do_ignore_entries (bool) |
virtual bool | do_ignoring_entries () const |
virtual void | do_initialize (bool, const std::string &, int, const std::string &) |
virtual bool | do_is_initialized () const |
virtual int | do_is_stifled () const |
virtual int | do_length () const |
virtual string_vector | do_list (int, bool) const |
virtual int | do_max_input_history () const |
virtual void | do_process_histcontrol (const std::string &) |
virtual void | do_read (const std::string &, bool) |
virtual void | do_read_range (const std::string &, int, int, bool) |
virtual void | do_remove (int) |
virtual void | do_replace_entry (int, const std::string &) |
virtual void | do_set_file (const std::string &) |
virtual void | do_set_mark (int) |
virtual void | do_set_size (int) |
virtual int | do_size () const |
virtual void | do_stifle (int) |
virtual void | do_truncate_file (const std::string &, int) const |
virtual int | do_unstifle () |
virtual int | do_where () const |
virtual void | do_write (const std::string &) const |
void | error (const std::string &) const |
void | error (int, const std::string &msg="") const |
Protected Attributes | |
std::string | m_file |
int | m_history_control |
bool | m_ignoring_additions |
bool | m_initialized |
int | m_lines_in_file |
int | m_lines_this_session |
int | m_size |
Definition at line 37 of file cmd-hist.h.
|
inlineprotected |
Definition at line 41 of file cmd-hist.h.
|
virtualdefault |
|
static |
Definition at line 616 of file cmd-hist.cc.
References do_add().
Referenced by tree_evaluator::parse_and_execute(), and history_system::write_timestamp().
|
static |
Definition at line 734 of file cmd-hist.cc.
References do_append(), and f.
Referenced by history_system::do_history().
|
static |
Definition at line 656 of file cmd-hist.cc.
References do_base().
|
static |
Definition at line 768 of file cmd-hist.cc.
References do_clean_up_and_save(), and f.
Referenced by Fexec().
|
static |
Definition at line 631 of file cmd-hist.cc.
References do_clear().
Referenced by history_system::do_history().
|
static |
Definition at line 662 of file cmd-hist.cc.
References do_current_number().
Referenced by command_editor::do_decode_prompt_string().
|
protectedvirtual |
Definition at line 836 of file cmd-hist.cc.
Referenced by add().
|
protectedvirtual |
Definition at line 935 of file cmd-hist.cc.
References do_where(), error(), f, m_file, m_initialized, and m_lines_this_session.
Referenced by append().
|
protectedvirtual |
Definition at line 868 of file cmd-hist.cc.
Referenced by base(), and do_current_number().
|
protectedvirtual |
Definition at line 989 of file cmd-hist.cc.
References error(), f, m_file, and m_initialized.
Referenced by clean_up_and_save().
|
protectedvirtual |
Definition at line 846 of file cmd-hist.cc.
Referenced by clear().
|
protectedvirtual |
Definition at line 874 of file cmd-hist.cc.
References do_base(), do_where(), and m_size.
Referenced by current_number().
|
protectedvirtual |
|
protectedvirtual |
Definition at line 979 of file cmd-hist.cc.
Referenced by get_entry().
|
protectedvirtual |
Definition at line 900 of file cmd-hist.cc.
Referenced by goto_mark().
|
inlineprotectedvirtual |
Definition at line 152 of file cmd-hist.h.
Referenced by histcontrol().
|
protectedvirtual |
Definition at line 824 of file cmd-hist.cc.
References m_ignoring_additions.
Referenced by ignore_entries().
|
protectedvirtual |
Definition at line 830 of file cmd-hist.cc.
References m_ignoring_additions.
Referenced by ignoring_entries().
|
protectedvirtual |
Definition at line 779 of file cmd-hist.cc.
References m_initialized, process_histcontrol(), read(), set_file(), and set_size().
Referenced by initialize().
|
protectedvirtual |
Definition at line 794 of file cmd-hist.cc.
References m_initialized.
Referenced by is_initialized().
|
protectedvirtual |
Definition at line 890 of file cmd-hist.cc.
Referenced by is_stifled().
|
protectedvirtual |
Definition at line 856 of file cmd-hist.cc.
Referenced by length().
|
protectedvirtual |
Definition at line 973 of file cmd-hist.cc.
Referenced by list().
|
protectedvirtual |
Definition at line 862 of file cmd-hist.cc.
Referenced by max_input_history().
|
protectedvirtual |
Definition at line 775 of file cmd-hist.cc.
Referenced by process_histcontrol().
|
protectedvirtual |
|
protectedvirtual |
Definition at line 842 of file cmd-hist.cc.
Referenced by remove().
|
protectedvirtual |
Definition at line 985 of file cmd-hist.cc.
Referenced by replace_entry().
|
protectedvirtual |
|
protectedvirtual |
Definition at line 896 of file cmd-hist.cc.
Referenced by set_mark().
|
protectedvirtual |
|
protectedvirtual |
|
protectedvirtual |
Definition at line 880 of file cmd-hist.cc.
Referenced by stifle().
|
protectedvirtual |
Definition at line 958 of file cmd-hist.cc.
References error(), f, m_file, and m_initialized.
Referenced by truncate_file().
|
protectedvirtual |
Definition at line 884 of file cmd-hist.cc.
Referenced by unstifle().
|
protectedvirtual |
Definition at line 850 of file cmd-hist.cc.
Referenced by do_append(), do_current_number(), and where().
|
protectedvirtual |
Definition at line 920 of file cmd-hist.cc.
References error(), f, m_file, and m_initialized.
Referenced by write().
|
protected |
Definition at line 1014 of file cmd-hist.cc.
|
protected |
Definition at line 1004 of file cmd-hist.cc.
References current_liboctave_error_handler.
Referenced by do_append(), do_clean_up_and_save(), do_read(), do_read_range(), do_truncate_file(), and do_write().
|
static |
Definition at line 571 of file cmd-hist.cc.
References do_file().
Referenced by history_system::do_history(), Fhistory_file(), read(), and read_range().
|
static |
Definition at line 755 of file cmd-hist.cc.
References do_get_entry().
|
static |
Definition at line 694 of file cmd-hist.cc.
References do_goto_mark().
|
static |
Definition at line 584 of file cmd-hist.cc.
References do_histcontrol().
Referenced by Fhistory_control().
|
static |
Definition at line 603 of file cmd-hist.cc.
References do_ignore_entries().
Referenced by tree_evaluator::enter_debugger(), Fhistory_save(), and interpreter::initialize_history().
|
static |
Definition at line 610 of file cmd-hist.cc.
References do_ignoring_entries().
Referenced by tree_evaluator::enter_debugger(), Fexec(), and Fhistory_save().
|
static |
Definition at line 543 of file cmd-hist.cc.
References do_initialize().
Referenced by history_system::initialize().
|
static |
Definition at line 552 of file cmd-hist.cc.
References do_is_initialized().
|
static |
Definition at line 681 of file cmd-hist.cc.
References do_is_stifled().
|
static |
Definition at line 644 of file cmd-hist.cc.
References do_length().
|
static |
Definition at line 748 of file cmd-hist.cc.
References do_list().
Referenced by history_system::do_history(), history_system::initialize(), and event_manager::set_history().
|
static |
Definition at line 650 of file cmd-hist.cc.
References do_max_input_history().
|
static |
Definition at line 577 of file cmd-hist.cc.
References do_process_histcontrol().
Referenced by do_initialize(), and Fhistory_control().
|
static |
Definition at line 700 of file cmd-hist.cc.
References file(), and read().
Referenced by history_system::do_history(), do_initialize(), and read().
|
static |
Definition at line 706 of file cmd-hist.cc.
|
static |
Definition at line 719 of file cmd-hist.cc.
References do_read_range(), and f.
Definition at line 713 of file cmd-hist.cc.
References file(), and read_range().
Referenced by history_system::do_history(), and read_range().
|
static |
Definition at line 624 of file cmd-hist.cc.
References do_remove().
|
static |
Definition at line 761 of file cmd-hist.cc.
References do_replace_entry().
|
static |
Definition at line 560 of file cmd-hist.cc.
References do_set_file(), and f.
Referenced by history_system::do_history(), do_initialize(), and Fhistory_file().
|
static |
Definition at line 687 of file cmd-hist.cc.
References do_set_mark().
|
static |
Definition at line 590 of file cmd-hist.cc.
References do_set_size().
Referenced by do_initialize(), and Fhistory_size().
|
static |
|
static |
Definition at line 668 of file cmd-hist.cc.
References do_stifle().
|
static |
Definition at line 741 of file cmd-hist.cc.
References do_truncate_file(), and f.
|
static |
Definition at line 675 of file cmd-hist.cc.
References do_unstifle().
|
static |
Definition at line 638 of file cmd-hist.cc.
References do_where().
|
static |
Definition at line 727 of file cmd-hist.cc.
References do_write(), and f.
Referenced by history_system::do_history().
|
protected |
Definition at line 232 of file cmd-hist.h.
Referenced by do_append(), do_clean_up_and_save(), do_file(), do_set_file(), do_truncate_file(), and do_write().
|
protected |
Definition at line 223 of file cmd-hist.h.
|
protected |
Definition at line 220 of file cmd-hist.h.
Referenced by do_ignore_entries(), and do_ignoring_entries().
|
protected |
Definition at line 217 of file cmd-hist.h.
Referenced by do_append(), do_clean_up_and_save(), do_initialize(), do_is_initialized(), do_truncate_file(), and do_write().
|
protected |
Definition at line 226 of file cmd-hist.h.
|
protected |
Definition at line 229 of file cmd-hist.h.
Referenced by do_append().
|
protected |
Definition at line 235 of file cmd-hist.h.
Referenced by do_current_number(), do_set_size(), and do_size().