![]() |
Object-oriented Scientific Computing Library: Version 0.910
|
An extension to cli which uses readline. More...
#include <cli_readline.h>
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. |
virtual char* cli_readline::cli_gets | ( | const char * | c | ) | [inline, virtual] |
Reimplemented from cli.
Definition at line 77 of file cli_readline.h.
Documentation generated with Doxygen. Provided under the GNU Free Documentation License (see License Information).