GATE
|
Public Types | |
enum | ColorEnum { Color_Black = GATE_TERMINAL_COLOR_BLACK , Color_Blue = GATE_TERMINAL_COLOR_BLUE , Color_Green = GATE_TERMINAL_COLOR_GREEN , Color_Cyan = GATE_TERMINAL_COLOR_CYAN , Color_Red = GATE_TERMINAL_COLOR_RED , Color_Magenta = GATE_TERMINAL_COLOR_MAGENTA , Color_Orange = GATE_TERMINAL_COLOR_ORANGE , Color_White = GATE_TERMINAL_COLOR_WHITE , Color_Gray = GATE_TERMINAL_COLOR_GRAY , Color_Lightblue = GATE_TERMINAL_COLOR_LIGHTBLUE , Color_Lightgreen = GATE_TERMINAL_COLOR_LIGHTGREEN , Color_Lightcyan = GATE_TERMINAL_COLOR_LIGHTCYAN , Color_Lightred = GATE_TERMINAL_COLOR_LIGHTRED , Color_Lightmagenta = GATE_TERMINAL_COLOR_LIGHTMAGENTA , Color_Yellow = GATE_TERMINAL_COLOR_YELLOW , Color_Lightwhite = GATE_TERMINAL_COLOR_LIGHTWHITE } |
Public Types inherited from gate::Stream | |
typedef ObjectImpl< gate_stream_t > | object_impl_t |
Public Types inherited from gate::ObjectImpl< gate_stream_t > | |
typedef gate_stream_t | impl_t |
typedef ObjectImpl< gate_stream_t > | object_impl_t |
Public Member Functions | |
Terminal (gate_terminal_t *ptr_terminal) | |
Terminal (Terminal const &src) | |
Terminal & | operator= (Terminal const &src) |
void | getSize (uint16_t &width, uint16_t &height) |
void | getCursorPos (uint16_t &x, uint16_t &y) |
void | setCursorPos (uint16_t x, uint16_t y) |
void | setTextColor (ColorEnum color) |
ColorEnum | getTextColor () |
void | setBackColor (ColorEnum color) |
ColorEnum | getBackColor () |
Public Member Functions inherited from gate::Stream | |
Stream (gate_stream_t *strm) | |
Stream (Stream const &src) | |
size_t | read (char *buffer, size_t bufferlen) |
size_t | peek (char *buffer, size_t bufferlen) |
size_t | write (char const *buffer, size_t bufferlen) |
void | flush () |
size_t | readBlock (char *buffer, size_t bufferlen) |
size_t | writeBlock (char const *buffer, size_t bufferlen) |
Result< size_t > | tryRead (char *buffer, size_t bufferlen) noexcept |
Result< size_t > | tryPeek (char *buffer, size_t bufferlen) noexcept |
Result< size_t > | tryWrite (char const *buffer, size_t bufferlen) noexcept |
Result< Void > | tryFlush () noexcept |
Result< size_t > | tryReadBlock (char *buffer, size_t bufferlen) noexcept |
Result< size_t > | tryWriteBlock (char const *buffer, size_t bufferlen) noexcept |
void | print (char const *buffer, size_t bufferlen) |
void | print (int32_t const &num) |
void | print (uint32_t const &num) |
void | print (int64_t const &num) |
void | print (uint64_t const &num) |
void | print (real64_t const &num, unsigned intlen=0, unsigned decimallen=3, unsigned grouplen=0) |
void | print (unsigned int const &num) |
void | print (int const &num) |
void | print (unsigned long const &num) |
void | print (long const &num) |
void | println (String const &str) |
void | println (char const *str) |
void | println (char const *buffer, size_t bufferlen) |
void | read (StringBuilder &strbuilder) |
Stream & | operator<< (String const &str) |
Stream & | operator<< (gate_string_t const *str) |
Stream & | operator<< (char const *str) |
Stream & | operator<< (bool_t const &b) |
Stream & | operator<< (int8_t const &num) |
Stream & | operator<< (int16_t const &num) |
Stream & | operator<< (uint16_t const &num) |
Stream & | operator<< (int32_t const &num) |
Stream & | operator<< (uint32_t const &num) |
Stream & | operator<< (int64_t const &num) |
Stream & | operator<< (uint64_t const &num) |
Stream & | operator<< (real32_t const &num) |
Stream & | operator<< (real64_t const &num) |
Stream & | operator<< (unsigned int const &num) |
Stream & | operator<< (int const &num) |
Stream & | operator<< (unsigned long const &num) |
Stream & | operator<< (long const &num) |
Stream & | operator>> (String &str) |
Public Member Functions inherited from gate::ObjectImpl< gate_stream_t > | |
ObjectImpl (impl_t *impl) noexcept | |
ObjectImpl (ObjectImpl const &src) noexcept | |
ObjectImpl & | operator= (ObjectImpl const &that) noexcept |
impl_t * | c_impl () const noexcept |
Public Member Functions inherited from gate::Object | |
Object (gate_object_ptr_t obj_ptr) noexcept | |
Object (Object const &obj) noexcept | |
Object & | operator= (Object const &obj) noexcept |
String | getInterfaceName () |
gate_object_ptr_t | c_impl () noexcept |
bool_t | operator! () const noexcept |
bool_t | empty () const noexcept |
Additional Inherited Members | |
Static Public Member Functions inherited from gate::Stream | |
static void | transfer (Stream &src, Stream &dst) |
static void | transfer (gate_stream_t *src, gate_stream_t *dst) |
static Result< Void > | tryTransfer (Stream &src, Stream &dst) |
static Result< Void > | tryTransfer (gate_stream_t *src, gate_stream_t *dst) |
Static Public Attributes inherited from gate::Stream | |
static enumint_t const | Open_Read = GATE_STREAM_OPEN_READ |
static enumint_t const | Open_Write = GATE_STREAM_OPEN_WRITE |
static enumint_t const | Open_ReadWrite = GATE_STREAM_OPEN_READWRITE |
static enumint_t const | Open_Append = GATE_STREAM_OPEN_APPEND |
static enumint_t const | Open_AppendWrite = GATE_STREAM_OPEN_APPENDWRITE |
static enumint_t const | Open_AppendReadWrite = GATE_STREAM_OPEN_APPENDREADWRITE |
Protected Member Functions inherited from gate::ObjectImpl< gate_stream_t > | |
void | swap (object_impl_t &that) noexcept |
Protected Member Functions inherited from gate::Object | |
void | swap (Object &that) noexcept |
Protected Attributes inherited from gate::ObjectImpl< gate_stream_t > | |
impl_t * | impl_ptr |