CLI  2.9
OutputFileDevice Class Reference

Output file device. More...

#include <file_device.h>

Inheritance diagram for OutputFileDevice:

Public Member Functions

 OutputFileDevice (const char *const STR_OutputFileName, const bool B_AutoDelete)
 Constructor. More...
 
virtual ~OutputFileDevice (void)
 Destructor. More...
 
virtual void PutString (const char *const STR_Out) const
 Output handler. More...
 
virtual void Beep (void) const
 Beep handler. More...
 
const tk::String GetFileName (void) const
 File name accessor. 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 OutputDeviceoperator<< (const std::string &STR_Out) const
 Output operator. More...
 
const OutputDeviceoperator<< (const tk::String &STR_Out) const
 Output operator. More...
 
const OutputDeviceoperator<< (const char *const STR_Out) const
 Output operator. More...
 
const OutputDeviceoperator<< (const char C_Out) const
 Output operator. More...
 
const OutputDeviceoperator<< (const KEY E_Key) const
 Output operator. More...
 
const OutputDeviceoperator<< (const uint8_t UI8_Out) const
 Output operator. More...
 
const OutputDeviceoperator<< (const int16_t I16_Out) const
 Output operator. More...
 
const OutputDeviceoperator<< (const uint16_t UI16_Out) const
 Output operator. More...
 
const OutputDeviceoperator<< (const int32_t I32_Out) const
 Output operator. More...
 
const OutputDeviceoperator<< (const uint32_t UI32_Out) const
 Output operator. More...
 
const OutputDeviceoperator<< (const int64_t I64_Out) const
 Output operator. More...
 
const OutputDeviceoperator<< (const uint64_t UI64_Out) const
 Output operator. More...
 
const OutputDeviceoperator<< (const float F_Out) const
 Output operator. More...
 
const OutputDeviceoperator<< (const double D_Out) const
 Output operator. More...
 
const OutputDeviceoperator<< (const void *const PV_Out) const
 Output operator. More...
 
const OutputDeviceoperator<< (const IOEndl &CLI_IOEndl) const
 Output operator. More...
 
const ResourceString GetLastError (void) const
 Last error accessor. 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...
 

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 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 OutputDevice
static OutputDeviceGetNullDevice (void)
 Null device singleton. More...
 
static OutputDeviceGetStdOut (void)
 Standard output device singleton. More...
 
static OutputDeviceGetStdErr (void)
 Standard error device singleton. More...
 
- Protected Attributes inherited from OutputDevice
ResourceString m_cliLastError
 

Detailed Description

Output file device.

Definition at line 137 of file file_device.h.

Constructor & Destructor Documentation

◆ OutputFileDevice()

OutputFileDevice::OutputFileDevice ( const char *const  STR_OutputFileName,
const bool  B_AutoDelete 
)
explicit

Constructor.

Parameters
STR_OutputFileNameOutput file name.
B_AutoDeleteAuto-deletion flag.

◆ ~OutputFileDevice()

virtual OutputFileDevice::~OutputFileDevice ( void  )
virtual

Destructor.

Member Function Documentation

◆ Beep()

virtual void OutputFileDevice::Beep ( void  ) const
virtual

Beep handler.

Reimplemented from OutputDevice.

◆ CloseDevice()

virtual const bool OutputFileDevice::CloseDevice ( void  )
protectedvirtual

Device closure handler.

Returns
true for success, false otherwise.
Note
Devices have to be prepared to be called several times through this method. They should do the closure once only (unless they have been opened between CloseDevice() calls), and indicate no failure thereafter.

Implements OutputDevice.

◆ GetFileName()

const tk::String OutputFileDevice::GetFileName ( void  ) const

File name accessor.

Returns
File name.

◆ OpenDevice()

virtual const bool OutputFileDevice::OpenDevice ( void  )
protectedvirtual

Device opening handler.

Returns
true for success, false otherwise.
Note
Devices have to be prepared to be called several times through this method. They should do the opening once only (unless they have been closed between OpendDevice() calls), and indicate no failure thereafter.

Implements OutputDevice.

◆ PutString()

virtual void OutputFileDevice::PutString ( const char *const  STR_Out) const
virtual

Output handler.

Parameters
STR_OutOutput string.

Implements OutputDevice.


The documentation for this class was generated from the following file: