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 set_file (const std::string &)
static std::string file (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_set_size (int)
virtual int do_size (void)
virtual void do_ignore_entries (bool)
virtual bool do_ignoring_entries (void)
virtual void do_add (const std::string &)
virtual void do_remove (int)
virtual int do_where (void)
virtual int do_length (void)
virtual int do_max_input_history (void)
virtual int do_base (void)
virtual int do_current_number (void)
virtual void do_stifle (int)
virtual int do_unstifle (void)
virtual int do_is_stifled (void)
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 &)
virtual void do_append (const std::string &)
virtual void do_truncate_file (const std::string &, int)
virtual string_vector do_list (int, bool)
virtual std::string do_get_entry (int)
virtual void do_replace_entry (int, const std::string &)
virtual void do_clean_up_and_save (const std::string &, int)
void error (int)
void error (const std::string &)

Protected Attributes

bool ignoring_additions
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   )  [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   )  [protected, virtual]

std::string command_history::do_file ( void   )  [protected, virtual]

std::string command_history::do_get_entry ( int   )  [protected, virtual]

int command_history::do_goto_mark ( void   )  [protected, virtual]

void command_history::do_ignore_entries ( bool  flag  )  [protected, virtual]

bool command_history::do_ignoring_entries ( void   )  [protected, virtual]

int command_history::do_is_stifled ( void   )  [protected, virtual]

int command_history::do_length ( void   )  [protected, virtual]

string_vector command_history::do_list ( int  ,
bool   
) [protected, virtual]

int command_history::do_max_input_history ( void   )  [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   )  [protected, virtual]

void command_history::do_stifle ( int   )  [protected, virtual]

void command_history::do_truncate_file ( const std::string f_arg,
int   
) [protected, virtual]

int command_history::do_unstifle ( void   )  [protected, virtual]

int command_history::do_where ( void   )  [protected, virtual]

void command_history::do_write ( const std::string f_arg  )  [protected, virtual]

void command_history::error ( const std::string s  )  [protected]

void command_history::error ( int  err_num  )  [protected]

std::string command_history::file ( void   )  [static]

std::string command_history::get_entry ( int  n  )  [static]

int command_history::goto_mark ( void   )  [static]

void command_history::ignore_entries ( bool  flag = true  )  [static]

bool command_history::ignoring_entries ( 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::read ( const std::string f,
bool  must_exist = true 
) [static]

void command_history::read ( 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


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