mirror of
https://github.com/Dushistov/sdcv.git
synced 2025-12-15 09:21:55 +00:00
16 lines
353 B
C++
16 lines
353 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);
|