trikRuntime
trikHal::trik::TrikInputDeviceFile Class Reference

Real implementation of input device file (a ordinary file from which we can read, actually). More...

#include <trikInputDeviceFile.h>

Inheritance diagram for trikHal::trik::TrikInputDeviceFile:
Collaboration diagram for trikHal::trik::TrikInputDeviceFile:

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
 

Detailed Description

Real implementation of input device file (a ordinary file from which we can read, actually).

Constructor & Destructor Documentation

TrikInputDeviceFile::TrikInputDeviceFile ( const QString &  fileName)

Constructor.

Parameters
fileName- name of a device file .

Member Function Documentation

void TrikInputDeviceFile::close ( )
overridevirtual

Close a file.

Implements trikHal::InputDeviceFileInterface.

bool TrikInputDeviceFile::open ( )
overridevirtual

Open a file. File name must be set previously.

Implements trikHal::InputDeviceFileInterface.

void TrikInputDeviceFile::reset ( )
overridevirtual

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

Implements trikHal::InputDeviceFileInterface.

QTextStream & TrikInputDeviceFile::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: