c++11 for readline + libwrapper

This commit is contained in:
Evgeniy Dushistov
2013-07-06 22:44:11 +00:00
parent 7274a61efa
commit 3812fad586
4 changed files with 116 additions and 122 deletions

View File

@@ -1,16 +1,14 @@
#ifndef _READLINE_HPP_
#define _READLINE_HPP_
#pragma once
#include <string>
using std::string;
class read_line {
class IReadLine {
public:
virtual ~read_line() {}
virtual bool read(const string &banner, string& line)=0;
virtual ~IReadLine() {}
virtual bool read(const std::string &banner, std::string& line) = 0;
virtual void add_to_history(const std::string& phrase) {}
};
extern string sdcv_readline;
extern read_line *create_readline_object();
#endif//!_READLINE_HPP_
extern std::string sdcv_readline;
extern IReadLine *create_readline_object();