line_reader Class Reference

#include <cio.h>

Inheritance diagram for line_reader:

Inheritance graph
[legend]
Collaboration diagram for line_reader:

Collaboration graph
[legend]

List of all members.

Public Types

typedef int(* keyproc )(int &key)

Public Member Functions

 line_reader (char *buffer, size_t bufsz, int wrap_col=get_number_of_cols())
virtual ~line_reader ()
int read_line (bool clear_previous=true)
std::string get_text () const
void set_input_history (input_history *ih)
void set_keyproc (keyproc fn)

Protected Member Functions

void cursorto (int newcpos)
virtual int process_key (int ch)
void backspace ()
void killword ()
void kill_to_begin ()
bool is_wordchar (int c)

Protected Attributes

char * buffer
size_t bufsz
input_historyhistory
GotoRegion region
coord_def start
keyproc keyfn
int wrapcol
char * cur
int length
int pos


Member Typedef Documentation

typedef int(* line_reader::keyproc)(int &key)


Constructor & Destructor Documentation

line_reader::line_reader ( char *  buffer,
size_t  bufsz,
int  wrap_col = get_number_of_cols() 
)

line_reader::~line_reader (  )  [virtual]


Member Function Documentation

int line_reader::read_line ( bool  clear_previous = true  ) 

Here is the call graph for this function:

std::string line_reader::get_text (  )  const

void line_reader::set_input_history ( input_history ih  ) 

void line_reader::set_keyproc ( keyproc  fn  ) 

void line_reader::cursorto ( int  newcpos  )  [protected]

Here is the call graph for this function:

int line_reader::process_key ( int  ch  )  [protected, virtual]

Reimplemented in stash_search_reader.

Here is the call graph for this function:

void line_reader::backspace (  )  [protected]

Here is the call graph for this function:

void line_reader::killword (  )  [protected]

Here is the call graph for this function:

void line_reader::kill_to_begin (  )  [protected]

Here is the call graph for this function:

bool line_reader::is_wordchar ( int  c  )  [protected]


Member Data Documentation

char* line_reader::buffer [protected]

size_t line_reader::bufsz [protected]

int line_reader::wrapcol [protected]

char* line_reader::cur [protected]

int line_reader::length [protected]

int line_reader::pos [protected]


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

Generated on Thu Jan 13 13:35:14 2011 by  doxygen 1.5.6