trikRuntime
trikHal::OutputDeviceFileInterface Class Referenceabstract

Output device file abstraction. More...

#include <outputDeviceFileInterface.h>

Inheritance diagram for trikHal::OutputDeviceFileInterface:

Public Member Functions

 OutputDeviceFileInterface ()=default
 
virtual ~OutputDeviceFileInterface ()=default
 
virtual bool open ()=0
 Open a file. File name must be set previously. More...
 
virtual void close ()=0
 Close a file. More...
 
virtual void write (const QString &data)=0
 Write data to a file using UTF-8 encoding. More...
 
virtual QString fileName () const =0
 Returns name of a file. More...
 

Detailed Description

Output device file abstraction.

Can only write to a device file, thus sending commands to a device driver. Flushes its contents after every write.

Constructor & Destructor Documentation

trikHal::OutputDeviceFileInterface::OutputDeviceFileInterface ( )
default
virtual trikHal::OutputDeviceFileInterface::~OutputDeviceFileInterface ( )
virtualdefault

Member Function Documentation

virtual void trikHal::OutputDeviceFileInterface::close ( )
pure virtual
virtual QString trikHal::OutputDeviceFileInterface::fileName ( ) const
pure virtual

Returns name of a file.

Implemented in trikHal::stub::StubOutputDeviceFile, and trikHal::trik::TrikOutputDeviceFile.

virtual bool trikHal::OutputDeviceFileInterface::open ( )
pure virtual

Open a file. File name must be set previously.

Implemented in trikHal::stub::StubOutputDeviceFile, and trikHal::trik::TrikOutputDeviceFile.

virtual void trikHal::OutputDeviceFileInterface::write ( const QString &  data)
pure virtual

Write data to a file using UTF-8 encoding.

Implemented in trikHal::stub::StubOutputDeviceFile, and trikHal::trik::TrikOutputDeviceFile.


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