#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 43 of file cmd-hist.h.
|
virtualdefault |
|
static |
Definition at line 617 of file cmd-hist.cc.
References do_add().
Referenced by history_system::write_timestamp().
|
static |
Definition at line 735 of file cmd-hist.cc.
References do_append(), and f.
Referenced by history_system::do_history().
|
static |
Definition at line 657 of file cmd-hist.cc.
References do_base().
|
static |
Definition at line 769 of file cmd-hist.cc.
References do_clean_up_and_save(), f, and n.
Referenced by octave::Fexec().
|
static |
Definition at line 632 of file cmd-hist.cc.
References do_clear().
Referenced by history_system::do_history().
|
static |
Definition at line 663 of file cmd-hist.cc.
References do_current_number().
Referenced by command_editor::do_decode_prompt_string().
|
protectedvirtual |
Definition at line 837 of file cmd-hist.cc.
Referenced by add().
|
protectedvirtual |
Definition at line 936 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 869 of file cmd-hist.cc.
Referenced by base(), and do_current_number().
|
protectedvirtual |
Definition at line 990 of file cmd-hist.cc.
References error(), f, m_file, and m_initialized.
Referenced by clean_up_and_save().
|
protectedvirtual |
Definition at line 847 of file cmd-hist.cc.
Referenced by clear().
|
protectedvirtual |
Definition at line 875 of file cmd-hist.cc.
References do_base(), do_where(), and m_size.
Referenced by current_number().
|
protectedvirtual |
|
protectedvirtual |
Definition at line 980 of file cmd-hist.cc.
Referenced by get_entry().
|
protectedvirtual |
Definition at line 901 of file cmd-hist.cc.
Referenced by goto_mark().
|
inlineprotectedvirtual |
Definition at line 154 of file cmd-hist.h.
Referenced by histcontrol().
|
protectedvirtual |
Definition at line 825 of file cmd-hist.cc.
References m_ignoring_additions.
Referenced by ignore_entries().
|
protectedvirtual |
Definition at line 831 of file cmd-hist.cc.
References m_ignoring_additions.
Referenced by ignoring_entries().
|
protectedvirtual |
Definition at line 780 of file cmd-hist.cc.
References m_initialized, process_histcontrol(), read(), set_file(), and set_size().
Referenced by initialize().
|
protectedvirtual |
Definition at line 795 of file cmd-hist.cc.
References m_initialized.
Referenced by is_initialized().
|
protectedvirtual |
Definition at line 891 of file cmd-hist.cc.
Referenced by is_stifled().
|
protectedvirtual |
Definition at line 857 of file cmd-hist.cc.
Referenced by length().
|
protectedvirtual |
Definition at line 974 of file cmd-hist.cc.
Referenced by list().
|
protectedvirtual |
Definition at line 863 of file cmd-hist.cc.
Referenced by max_input_history().
|
protectedvirtual |
Definition at line 776 of file cmd-hist.cc.
Referenced by process_histcontrol().
|
protectedvirtual |
|
protectedvirtual |
|
protectedvirtual |
Definition at line 843 of file cmd-hist.cc.
Referenced by remove().
|
protectedvirtual |
Definition at line 986 of file cmd-hist.cc.
Referenced by replace_entry().
|
protectedvirtual |
|
protectedvirtual |
Definition at line 897 of file cmd-hist.cc.
Referenced by set_mark().
|
protectedvirtual |
|
protectedvirtual |
|
protectedvirtual |
Definition at line 881 of file cmd-hist.cc.
Referenced by stifle().
|
protectedvirtual |
Definition at line 959 of file cmd-hist.cc.
References error(), f, m_file, and m_initialized.
Referenced by truncate_file().
|
protectedvirtual |
Definition at line 885 of file cmd-hist.cc.
Referenced by unstifle().
|
protectedvirtual |
Definition at line 851 of file cmd-hist.cc.
Referenced by do_append(), do_current_number(), and where().
|
protectedvirtual |
Definition at line 921 of file cmd-hist.cc.
References error(), f, m_file, and m_initialized.
Referenced by write().
|
protected |
Definition at line 1015 of file cmd-hist.cc.
|
protected |
Definition at line 1005 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 572 of file cmd-hist.cc.
References do_file().
Referenced by history_system::do_history(), octave::Fhistory_file(), read(), and read_range().
|
static |
Definition at line 756 of file cmd-hist.cc.
References do_get_entry(), and n.
|
static |
Definition at line 695 of file cmd-hist.cc.
References do_goto_mark().
|
static |
Definition at line 585 of file cmd-hist.cc.
References do_histcontrol().
Referenced by octave::Fhistory_control().
|
static |
Definition at line 604 of file cmd-hist.cc.
References do_ignore_entries().
Referenced by tree_evaluator::enter_debugger(), octave::Fhistory_save(), and interpreter::initialize_history().
|
static |
Definition at line 611 of file cmd-hist.cc.
References do_ignoring_entries().
Referenced by tree_evaluator::enter_debugger(), octave::Fexec(), and octave::Fhistory_save().
|
static |
Definition at line 544 of file cmd-hist.cc.
References do_initialize().
Referenced by history_system::initialize().
|
static |
Definition at line 553 of file cmd-hist.cc.
References do_is_initialized().
|
static |
Definition at line 682 of file cmd-hist.cc.
References do_is_stifled().
|
static |
Definition at line 645 of file cmd-hist.cc.
References do_length().
|
static |
Definition at line 749 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 651 of file cmd-hist.cc.
References do_max_input_history().
|
static |
Definition at line 578 of file cmd-hist.cc.
References do_process_histcontrol().
Referenced by do_initialize(), and octave::Fhistory_control().
|
static |
Definition at line 701 of file cmd-hist.cc.
References file().
Referenced by history_system::do_history(), and do_initialize().
|
static |
Definition at line 707 of file cmd-hist.cc.
|
static |
Definition at line 720 of file cmd-hist.cc.
References do_read_range(), and f.
|
static |
Definition at line 714 of file cmd-hist.cc.
References file().
Referenced by history_system::do_history().
|
static |
Definition at line 625 of file cmd-hist.cc.
References do_remove(), and n.
|
static |
Definition at line 762 of file cmd-hist.cc.
References do_replace_entry().
|
static |
Definition at line 561 of file cmd-hist.cc.
References do_set_file(), f, and octave::sys::file_ops::tilde_expand().
Referenced by history_system::do_history(), do_initialize(), and octave::Fhistory_file().
|
static |
Definition at line 688 of file cmd-hist.cc.
References do_set_mark(), and n.
|
static |
Definition at line 591 of file cmd-hist.cc.
References do_set_size(), and n.
Referenced by do_initialize(), and octave::Fhistory_size().
|
static |
Definition at line 598 of file cmd-hist.cc.
References do_size().
Referenced by octave::Fhistory_size().
|
static |
Definition at line 669 of file cmd-hist.cc.
References do_stifle(), and n.
|
static |
Definition at line 742 of file cmd-hist.cc.
References do_truncate_file(), f, and n.
|
static |
Definition at line 676 of file cmd-hist.cc.
References do_unstifle().
|
static |
Definition at line 639 of file cmd-hist.cc.
References do_where().
|
static |
Definition at line 728 of file cmd-hist.cc.
References do_write(), and f.
Referenced by history_system::do_history().
|
protected |
Definition at line 234 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 225 of file cmd-hist.h.
|
protected |
Definition at line 222 of file cmd-hist.h.
Referenced by do_ignore_entries(), and do_ignoring_entries().
|
protected |
Definition at line 219 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 228 of file cmd-hist.h.
|
protected |
Definition at line 231 of file cmd-hist.h.
Referenced by do_append().
|
protected |
Definition at line 237 of file cmd-hist.h.
Referenced by do_current_number(), do_set_size(), and do_size().