trikRuntime
|
Input device file abstraction. Can read from a device file, thus communicating with a device driver. More...
#include <inputDeviceFileInterface.h>
Public Member Functions | |
InputDeviceFileInterface ()=default | |
virtual | ~InputDeviceFileInterface ()=default |
virtual bool | open ()=0 |
Open a file. File name must be set previously. More... | |
virtual void | close ()=0 |
Close a file. More... | |
virtual QTextStream & | stream ()=0 |
Returns temporary reference to a stream which can be used to read from a file. More... | |
virtual void | reset ()=0 |
Resets input file, moving file cursor to the beginning of the file. More... | |
Input device file abstraction. Can read from a device file, thus communicating with a device driver.
|
default |
|
virtualdefault |
|
pure virtual |
Close a file.
Implemented in trikHal::stub::StubInputDeviceFile, and trikHal::trik::TrikInputDeviceFile.
|
pure virtual |
Open a file. File name must be set previously.
Implemented in trikHal::stub::StubInputDeviceFile, and trikHal::trik::TrikInputDeviceFile.
|
pure virtual |
Resets input file, moving file cursor to the beginning of the file.
Implemented in trikHal::stub::StubInputDeviceFile, and trikHal::trik::TrikInputDeviceFile.
|
pure virtual |
Returns temporary reference to a stream which can be used to read from a file.
Implemented in trikHal::stub::StubInputDeviceFile, and trikHal::trik::TrikInputDeviceFile.