|
CLI
2.9
|
Input file device class. More...
#include <file_device.h>

Public Member Functions | |
| InputFileDevice (const char *const STR_FileName, OutputDevice &CLI_Out, const bool B_AutoDelete) | |
| Constructor. More... | |
| virtual | ~InputFileDevice (void) |
| Destructor. More... | |
| InputFileDevice & | EnableSpecialCharacters (const bool B_EnableSpecialCharacters) |
| Special character enabling. More... | |
| virtual const KEY | GetKey (void) const |
| Input key capture handler. More... | |
| virtual const ResourceString | GetLocation (void) const |
| Input location accessor. More... | |
| virtual void | PutString (const char *const STR_Out) const |
| Output handler. More... | |
| virtual void | Beep (void) const |
| Beep handler. More... | |
| virtual void | CleanScreen (void) const |
| Clean screen. More... | |
| virtual const bool | WouldOutput (const OutputDevice &CLI_Device) const |
| Stack overflow protection. More... | |
| const tk::String | GetFileName (void) const |
| File name accessor. More... | |
| const int | GetCurrentLine (void) const |
| Current line accessor. More... | |
| const int | GetCurrentColumn (void) const |
| Current column accessor. More... | |
Public Member Functions inherited from IODevice | |
| IODevice (const char *const STR_DbgName, const bool B_AutoDelete) | |
| Constructor. More... | |
| virtual | ~IODevice (void) |
| Destructor. 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 const ScreenInfo | GetScreenInfo (void) const |
| Screen info accessor. More... | |
Public Member Functions inherited from Object | |
| virtual | ~Object (void)=0 |
| Pure virtual destructor. More... | |
Protected Member Functions | |
| virtual const bool | OpenDevice (void) |
| Device opening handler. More... | |
| virtual const bool | CloseDevice (void) |
| Device closure handler. More... | |
Protected Member Functions inherited from IODevice | |
| 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... | |
Protected Member Functions inherited from Object | |
| Object (void) | |
| Default constructor only available to sub-classes. More... | |
Additional Inherited Members | |
Static Public Member Functions inherited from IODevice | |
| 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 Attributes inherited from OutputDevice | |
| ResourceString | m_cliLastError |
Input file device class.
Definition at line 45 of file file_device.h.
|
explicit |
Constructor.
| STR_FileName | Input file name. |
| CLI_Out | Output device. This output device will be opened automatically when the input device is opened. |
| B_AutoDelete | Auto-deletion flag. |
|
virtual |
Destructor.
|
virtual |
Beep handler.
Reimplemented from OutputDevice.
|
virtual |
Clean screen.
Reimplemented from OutputDevice.
|
protectedvirtual |
Device closure handler.
Implements OutputDevice.
| InputFileDevice& InputFileDevice::EnableSpecialCharacters | ( | const bool | B_EnableSpecialCharacters | ) |
Special character enabling.
| B_EnableSpecialCharacters | true for enabling. false otherwise. |
| const int InputFileDevice::GetCurrentColumn | ( | void | ) | const |
Current column accessor.
| const int InputFileDevice::GetCurrentLine | ( | void | ) | const |
Current line accessor.
| const tk::String InputFileDevice::GetFileName | ( | void | ) | const |
File name accessor.
|
virtual |
|
virtual |
|
protectedvirtual |
Device opening handler.
Implements OutputDevice.
|
virtual |
|
virtual |
Stack overflow protection.
| CLI_Device | Other device that the callee device should check it would output characters to. |
Determines whether the current device would output the given device in any way. Default implementation checks whether CLI_Device is the self device.
Reimplemented from OutputDevice.