trikRuntime
|
Real implementation of input device file (a ordinary file from which we can read, actually). More...
#include <trikInputDeviceFile.h>
Public Member Functions | |
TrikInputDeviceFile (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 |
Real implementation of input device file (a ordinary file from which we can read, actually).
TrikInputDeviceFile::TrikInputDeviceFile | ( | const QString & | fileName | ) |
Constructor.
fileName | - name 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.