12 #ifndef ECL_DEVICES_CONSOLE_HPP_ 13 #define ECL_DEVICES_CONSOLE_HPP_ 19 #include "detail/character_buffer.hpp" 21 #include <ecl/errors/handlers.hpp> 22 #include <ecl/exceptions/standard_exception.hpp> 48 OConsole() : error_handler(
NoError) {}
49 virtual ~OConsole() {}
62 bool open() {
return true; }
103 const Error& error()
const {
return error_handler; }
105 devices::CharStringBuffer buffer;
125 EConsole() : error_handler(
NoError) {}
126 virtual ~EConsole() {}
139 bool open() {
return true; }
180 const Error& error()
const {
return error_handler; }
183 devices::CharStringBuffer buffer;
208 IConsole() : error_handler(
NoError) {}
209 virtual ~IConsole() {}
221 bool open() {
return true; }
258 const Error& error()
const {
return error_handler; }
274 class is_source<IConsole> :
public True {
284 class is_sink<OConsole> :
public True {};
292 class is_sink<EConsole> :
public True {};
#define ecl_devices_PUBLIC
#define ecl_assert_throw_decl(exception)
Assure throw exception declaration.