|
CLI
2.9
|
Generic input/output device. More...
#include <io_device.h>

Public Member Functions | |
| IODevice (const char *const STR_DbgName, const bool B_AutoDelete) | |
| Constructor. More... | |
| virtual | ~IODevice (void) |
| Destructor. More... | |
| virtual const KEY | GetKey (void) const =0 |
| Input key capture handler. More... | |
| virtual const ResourceString | GetLocation (void) const |
| Input location accessor. More... | |
| virtual const bool | WouldInput (const IODevice &CLI_Device) const |
| Stack overflow protection. More... | |
Public Member Functions inherited from OutputDevice | |
| const tk::String | GetDebugName (void) const |
| Debug name accessor. More... | |
| const int | UseInstance (const CallInfo &CLI_CallInfo) |
| Ensures instance validity. More... | |
| const int | FreeInstance (const CallInfo &CLI_CallInfo) |
| Releases the instance. More... | |
| const int | GetInstanceUsers (void) const |
| Instance user count accessor. More... | |
| const bool | OpenUp (const CallInfo &CLI_CallInfo) |
| Checks the device is opened. More... | |
| const bool | CloseDown (const CallInfo &CLI_CallInfo) |
| Indicates the device the client does not need the device to opened anymore. More... | |
| const int | GetOpenUsers (void) const |
| Open state user count accessor. More... | |
| const OutputDevice & | operator<< (const std::string &STR_Out) const |
| Output operator. More... | |
| const OutputDevice & | operator<< (const tk::String &STR_Out) const |
| Output operator. More... | |
| const OutputDevice & | operator<< (const char *const STR_Out) const |
| Output operator. More... | |
| const OutputDevice & | operator<< (const char C_Out) const |
| Output operator. More... | |
| const OutputDevice & | operator<< (const KEY E_Key) const |
| Output operator. More... | |
| const OutputDevice & | operator<< (const uint8_t UI8_Out) const |
| Output operator. More... | |
| const OutputDevice & | operator<< (const int16_t I16_Out) const |
| Output operator. More... | |
| const OutputDevice & | operator<< (const uint16_t UI16_Out) const |
| Output operator. More... | |
| const OutputDevice & | operator<< (const int32_t I32_Out) const |
| Output operator. More... | |
| const OutputDevice & | operator<< (const uint32_t UI32_Out) const |
| Output operator. More... | |
| const OutputDevice & | operator<< (const int64_t I64_Out) const |
| Output operator. More... | |
| const OutputDevice & | operator<< (const uint64_t UI64_Out) const |
| Output operator. More... | |
| const OutputDevice & | operator<< (const float F_Out) const |
| Output operator. More... | |
| const OutputDevice & | operator<< (const double D_Out) const |
| Output operator. More... | |
| const OutputDevice & | operator<< (const void *const PV_Out) const |
| Output operator. More... | |
| const OutputDevice & | operator<< (const IOEndl &CLI_IOEndl) const |
| Output operator. More... | |
| const ResourceString | GetLastError (void) const |
| Last error accessor. More... | |
| virtual void | PutString (const char *const STR_Out) const =0 |
| Output handler. More... | |
| virtual void | Beep (void) const |
| Beep handler. More... | |
| virtual void | CleanScreen (void) const |
| Clean screen. More... | |
| virtual const ScreenInfo | GetScreenInfo (void) const |
| Screen info accessor. More... | |
| virtual const bool | WouldOutput (const OutputDevice &CLI_Device) const |
| Stack overflow protection. More... | |
Public Member Functions inherited from Object | |
| virtual | ~Object (void)=0 |
| Pure virtual destructor. More... | |
Static Public Member Functions | |
| static IODevice & | GetNullDevice (void) |
| Null device singleton. More... | |
| static IODevice & | GetStdIn (void) |
| Standard input device singleton. More... | |
Static Public Member Functions inherited from OutputDevice | |
| static OutputDevice & | GetNullDevice (void) |
| Null device singleton. More... | |
| static OutputDevice & | GetStdOut (void) |
| Standard output device singleton. More... | |
| static OutputDevice & | GetStdErr (void) |
| Standard error device singleton. More... | |
Protected Member Functions | |
| const KEY | Char2Key (const int I_Char) const |
| Common char translation. More... | |
Protected Member Functions inherited from OutputDevice | |
| OutputDevice (const char *const STR_DbgName, const bool B_AutoDelete) | |
| Constructor. More... | |
| virtual | ~OutputDevice (void) |
| Destructor. More... | |
| virtual const bool | OpenDevice (void)=0 |
| Device opening handler. More... | |
| virtual const bool | CloseDevice (void)=0 |
| Device closure handler. More... | |
Protected Member Functions inherited from Object | |
| Object (void) | |
| Default constructor only available to sub-classes. More... | |
Additional Inherited Members | |
Protected Attributes inherited from OutputDevice | |
| ResourceString | m_cliLastError |
|
explicit |
Constructor.
| STR_DbgName | Debug name. |
| B_AutoDelete | Auto-deletion flag. |
|
virtual |
Destructor.
|
protected |
Common char translation.
| I_Char | Common char to translate. |
|
pure virtual |
Input key capture handler.
Implemented in TelnetConnection, IOMux, InputFileDevice, SingleCommand, NonBlockingIODevice, and Console.
|
virtual |
Input location accessor.
Reimplemented in IOMux, and InputFileDevice.
|
static |
Null device singleton.
|
static |
Standard input device singleton.
|
virtual |
Stack overflow protection.
| CLI_Device | Other device that the callee device should check it would input characters from. |
Determines whether the current device would input the given device in any ways. Default implementation checks whether CLI_Device is the self device.
Reimplemented in IOMux.