mirror of
https://github.com/Dushistov/sdcv.git
synced 2025-12-16 09:51:56 +00:00
15 lines
343 B
C++
15 lines
343 B
C++
#pragma once
|
|
|
|
#include <string>
|
|
|
|
class IReadLine {
|
|
public:
|
|
virtual ~IReadLine() {}
|
|
virtual bool read(const std::string &banner, std::string& line) = 0;
|
|
virtual void add_to_history(const std::string&) {}
|
|
};
|
|
|
|
extern std::string sdcv_readline;
|
|
extern IReadLine *create_readline_object();
|
|
extern bool stdio_getline(FILE *in, std::string &str);
|