Navigation

Operators and Keywords

Function List:

C++ API

command_history Class Reference

#include <cmd-hist.h>

Collaboration diagram for command_history:

List of all members.

Public Member Functions

virtual ~command_history (void)

Static Public Member Functions

static void initialize (bool, const std::string &, int, const std::string &)
static bool is_initialized (void)
static void set_file (const std::string &)
static std::string file (void)
static void process_histcontrol (const std::string &)
static std::string histcontrol (void)
static void set_size (int)
static int size (void)
static void ignore_entries (bool=true)
static bool ignoring_entries (void)
static void add (const std::string &)
static void remove (int)
static int where (void)
static int length (void)
static int max_input_history (void)
static int base (void)
static int current_number (void)
static void stifle (int)
static int unstifle (void)
static int is_stifled (void)
static void set_mark (int n)
static int goto_mark (void)
static void read (bool=true)
static void read (const std::string &, bool=true)
static void read_range (int=-1, int=-1, bool=true)
static void read_range (const std::string &, int=-1, int=-1, bool=true)
static void write (const std::string &=std::string())
static void append (const std::string &=std::string())
static void truncate_file (const std::string &=std::string(), int=-1)
static string_vector list (int=-1, bool=false)
static std::string get_entry (int)
static void replace_entry (int, const std::string &)
static void clean_up_and_save (const std::string &=std::string(), int=-1)

Protected Member Functions

 command_history (void)
virtual void do_set_file (const std::string &)
virtual std::string do_file (void)
virtual void do_process_histcontrol (const std::string &)
virtual std::string do_histcontrol (void) const
virtual void do_initialize (bool, const std::string &, int, const std::string &)
virtual bool do_is_initialized (void) const
virtual void do_set_size (int)
virtual int do_size (void) const
virtual void do_ignore_entries (bool)
virtual bool do_ignoring_entries (void) const
virtual void do_add (const std::string &)
virtual void do_remove (int)
virtual int do_where (void) const
virtual int do_length (void) const
virtual int do_max_input_history (void) const
virtual int do_base (void) const
virtual int do_current_number (void) const
virtual void do_stifle (int)
virtual int do_unstifle (void)
virtual int do_is_stifled (void) const
virtual void do_set_mark (int)
virtual int do_goto_mark (void)
virtual void do_read (const std::string &, bool)
virtual void do_read_range (const std::string &, int, int, bool)
virtual void do_write (const std::string &) const
virtual void do_append (const std::string &)
virtual void do_truncate_file (const std::string &, int) const
virtual string_vector do_list (int, bool) const
virtual std::string do_get_entry (int) const
virtual void do_replace_entry (int, const std::string &)
virtual void do_clean_up_and_save (const std::string &, int)
void error (int) const
void error (const std::string &) const

Protected Attributes

bool initialized
bool ignoring_additions
int history_control
int lines_in_file
int lines_this_session
std::string xfile
int xsize

Constructor & Destructor Documentation

command_history::command_history ( void   )  [inline, protected]
virtual command_history::~command_history ( void   )  [inline, virtual]

Member Function Documentation

void command_history::add ( const std::string &  s  )  [static]
void command_history::append ( const std::string &  f = std::string ()  )  [static]
int command_history::base ( void   )  [static]
void command_history::clean_up_and_save ( const std::string &  f = std::string (),
int  n = -1 
) [static]
int command_history::current_number ( void   )  [static]
void command_history::do_add ( const std::string &   )  [protected, virtual]
void command_history::do_append ( const std::string &  f_arg  )  [protected, virtual]
int command_history::do_base ( void   )  const [protected, virtual]
void command_history::do_clean_up_and_save ( const std::string &  f_arg,
int   
) [protected, virtual]
int command_history::do_current_number ( void   )  const [protected, virtual]
std::string command_history::do_file ( void   )  [protected, virtual]
std::string command_history::do_get_entry ( int   )  const [protected, virtual]
int command_history::do_goto_mark ( void   )  [protected, virtual]
virtual std::string command_history::do_histcontrol ( void   )  const [inline, protected, virtual]
void command_history::do_ignore_entries ( bool  flag  )  [protected, virtual]
bool command_history::do_ignoring_entries ( void   )  const [protected, virtual]
void command_history::do_initialize ( bool  read_history_file,
const std::string &  f_arg,
int  sz,
const std::string &  control_arg 
) [protected, virtual]
bool command_history::do_is_initialized ( void   )  const [protected, virtual]
int command_history::do_is_stifled ( void   )  const [protected, virtual]
int command_history::do_length ( void   )  const [protected, virtual]
string_vector command_history::do_list ( int  ,
bool   
) const [protected, virtual]
int command_history::do_max_input_history ( void   )  const [protected, virtual]
void command_history::do_process_histcontrol ( const std::string &   )  [protected, virtual]
void command_history::do_read ( const std::string &  f,
bool   
) [protected, virtual]
void command_history::do_read_range ( const std::string &  f,
int  ,
int  ,
bool   
) [protected, virtual]
void command_history::do_remove ( int   )  [protected, virtual]
void command_history::do_replace_entry ( int  ,
const std::string &   
) [protected, virtual]
void command_history::do_set_file ( const std::string &  f  )  [protected, virtual]
void command_history::do_set_mark ( int   )  [protected, virtual]
void command_history::do_set_size ( int  n  )  [protected, virtual]
int command_history::do_size ( void   )  const [protected, virtual]
void command_history::do_stifle ( int   )  [protected, virtual]
void command_history::do_truncate_file ( const std::string &  f_arg,
int   
) const [protected, virtual]
int command_history::do_unstifle ( void   )  [protected, virtual]
int command_history::do_where ( void   )  const [protected, virtual]
void command_history::do_write ( const std::string &  f_arg  )  const [protected, virtual]
void command_history::error ( int  err_num  )  const [protected]
void command_history::error ( const std::string &  s  )  const [protected]
std::string command_history::file ( void   )  [static]
std::string command_history::get_entry ( int  n  )  [static]
int command_history::goto_mark ( void   )  [static]
std::string command_history::histcontrol ( void   )  [static]
void command_history::ignore_entries ( bool  flag = true  )  [static]
bool command_history::ignoring_entries ( void   )  [static]
void command_history::initialize ( bool  read_history_file,
const std::string &  f_arg,
int  sz,
const std::string &  control_arg 
) [static]
bool command_history::is_initialized ( void   )  [static]
int command_history::is_stifled ( void   )  [static]
int command_history::length ( void   )  [static]
string_vector command_history::list ( int  limit = -1,
bool  number_lines = false 
) [static]
int command_history::max_input_history ( void   )  [static]
void command_history::process_histcontrol ( const std::string &  control_arg  )  [static]
void command_history::read ( bool  must_exist = true  )  [static]
void command_history::read ( const std::string &  f,
bool  must_exist = true 
) [static]
void command_history::read_range ( const std::string &  f,
int  from = -1,
int  to = -1,
bool  must_exist = true 
) [static]
void command_history::read_range ( int  from = -1,
int  to = -1,
bool  must_exist = true 
) [static]
void command_history::remove ( int  n  )  [static]
void command_history::replace_entry ( int  which,
const std::string &  line 
) [static]
void command_history::set_file ( const std::string &  f_arg  )  [static]
void command_history::set_mark ( int  n  )  [static]
void command_history::set_size ( int  n  )  [static]
int command_history::size ( void   )  [static]
void command_history::stifle ( int  n  )  [static]
void command_history::truncate_file ( const std::string &  f = std::string (),
int  n = -1 
) [static]
int command_history::unstifle ( void   )  [static]
int command_history::where ( void   )  [static]
void command_history::write ( const std::string &  f = std::string ()  )  [static]

Member Data Documentation

std::string command_history::xfile [protected]
int command_history::xsize [protected]

The documentation for this class was generated from the following files:
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Defines