trikRuntime
|
Real implementation for output device file (a file to which we can only write). More...
#include <trikOutputDeviceFile.h>
Public Member Functions | |
TrikOutputDeviceFile (const QString &fileName) | |
Constructor. More... | |
bool | open () override |
Open a file. File name must be set previously. More... | |
void | close () override |
Close a file. More... | |
void | write (const QString &data) override |
Write data to a file using UTF-8 encoding. More... | |
QString | fileName () const override |
Returns name of a file. More... | |
Public Member Functions inherited from trikHal::OutputDeviceFileInterface | |
OutputDeviceFileInterface ()=default | |
virtual | ~OutputDeviceFileInterface ()=default |
Real implementation for output device file (a file to which we can only write).
TrikOutputDeviceFile::TrikOutputDeviceFile | ( | const QString & | fileName | ) |
Constructor.
fileName | - name of a device file . |
|
overridevirtual |
Close a file.
Implements trikHal::OutputDeviceFileInterface.
|
overridevirtual |
Returns name of a file.
Implements trikHal::OutputDeviceFileInterface.
|
overridevirtual |
Open a file. File name must be set previously.
Implements trikHal::OutputDeviceFileInterface.
|
overridevirtual |
Write data to a file using UTF-8 encoding.
Implements trikHal::OutputDeviceFileInterface.