trikRuntime
|
Empty implementation of output device file. Only logs operations. More...
#include <stubOutputDeviceFile.h>
Public Member Functions | |
StubOutputDeviceFile (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 |
Empty implementation of output device file. Only logs operations.
|
explicit |
Constructor.
fileName | - file name (with path, relative or absolute) 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.