trikRuntime
|
Empty implementation of input device file. Only logs operations, returns empty stream. More...
#include <stubInputDeviceFile.h>
Public Member Functions | |
StubInputDeviceFile (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... | |
QTextStream & | stream () override |
Returns temporary reference to a stream which can be used to read from a file. More... | |
void | reset () override |
Resets input file, moving file cursor to the beginning of the file. More... | |
Public Member Functions inherited from trikHal::InputDeviceFileInterface | |
InputDeviceFileInterface ()=default | |
virtual | ~InputDeviceFileInterface ()=default |
Empty implementation of input device file. Only logs operations, returns empty stream.
|
explicit |
Constructor.
fileName | - file name (with path, relative or absolute) of a device file. |
|
overridevirtual |
Close a file.
Implements trikHal::InputDeviceFileInterface.
|
overridevirtual |
Open a file. File name must be set previously.
Implements trikHal::InputDeviceFileInterface.
|
overridevirtual |
Resets input file, moving file cursor to the beginning of the file.
Implements trikHal::InputDeviceFileInterface.
|
overridevirtual |
Returns temporary reference to a stream which can be used to read from a file.
Implements trikHal::InputDeviceFileInterface.