mirror of
https://github.com/Dushistov/sdcv.git
synced 2025-12-16 09:51:56 +00:00
c++11 for readline + libwrapper
This commit is contained in:
@@ -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();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user