trikRuntime
trikHal::InputDeviceFileInterface Class Referenceabstract

Input device file abstraction. Can read from a device file, thus communicating with a device driver. More...

#include <inputDeviceFileInterface.h>

Inheritance diagram for trikHal::InputDeviceFileInterface:

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...
 

Detailed Description

Input device file abstraction. Can read from a device file, thus communicating with a device driver.

Constructor & Destructor Documentation

trikHal::InputDeviceFileInterface::InputDeviceFileInterface ( )
default
virtual trikHal::InputDeviceFileInterface::~InputDeviceFileInterface ( )
virtualdefault

Member Function Documentation

virtual void trikHal::InputDeviceFileInterface::close ( )
pure virtual
virtual bool trikHal::InputDeviceFileInterface::open ( )
pure virtual

Open a file. File name must be set previously.

Implemented in trikHal::stub::StubInputDeviceFile, and trikHal::trik::TrikInputDeviceFile.

virtual void trikHal::InputDeviceFileInterface::reset ( )
pure virtual

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

Implemented in trikHal::stub::StubInputDeviceFile, and trikHal::trik::TrikInputDeviceFile.

virtual QTextStream& trikHal::InputDeviceFileInterface::stream ( )
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.


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