Object-oriented Scientific Computing Library: Version 0.910
Public Member Functions | Protected Attributes
cli_readline Class Reference

An extension to cli which uses readline. More...

#include <cli_readline.h>

Inheritance diagram for cli_readline:
cli

Detailed Description

This header-only class requires the GNU readline library for use, but is not referenced by O2scl code at the moment to make the library usable without readline.

Definition at line 42 of file cli_readline.h.

Public Member Functions

 cli_readline (std::string fname=".cli_hist", size_t max_size=100)
virtual char * cli_gets (const char *c)
 Function to get a string from the user.

Protected Attributes

char * line_read
 Buffer for readline.
std::string histfile
 String containing filename.
size_t msize
 Maximum history file size.

Member Function Documentation

virtual char* cli_readline::cli_gets ( const char *  c) [inline, virtual]

Reimplemented from cli.

Definition at line 77 of file cli_readline.h.


The documentation for this class was generated from the following file:
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines

Documentation generated with Doxygen. Provided under the GNU Free Documentation License (see License Information).

Get Object-oriented Scientific Computing
Lib at SourceForge.net. Fast, secure and Free Open Source software
downloads.