trikRuntime
trikHal::stub::StubInputDeviceFile Class Reference

Empty implementation of input device file. Only logs operations, returns empty stream. More...

#include <stubInputDeviceFile.h>

Inheritance diagram for trikHal::stub::StubInputDeviceFile:
Collaboration diagram for trikHal::stub::StubInputDeviceFile:

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
 

Detailed Description

Empty implementation of input device file. Only logs operations, returns empty stream.

Constructor & Destructor Documentation

StubInputDeviceFile::StubInputDeviceFile ( const QString &  fileName)
explicit

Constructor.

Parameters
fileName- file name (with path, relative or absolute) of a device file.

Member Function Documentation

void StubInputDeviceFile::close ( )
overridevirtual

Close a file.

Implements trikHal::InputDeviceFileInterface.

bool StubInputDeviceFile::open ( )
overridevirtual

Open a file. File name must be set previously.

Implements trikHal::InputDeviceFileInterface.

void StubInputDeviceFile::reset ( )
overridevirtual

Resets input file, moving file cursor to the beginning of the file.

Implements trikHal::InputDeviceFileInterface.

QTextStream & StubInputDeviceFile::stream ( )
overridevirtual

Returns temporary reference to a stream which can be used to read from a file.

Implements trikHal::InputDeviceFileInterface.


The documentation for this class was generated from the following files: