trikRuntime
trikHal::stub::StubFifo Class Reference

Empty implementation of Linux FIFO. Does not emit any events, only logs operations. More...

#include <stubFifo.h>

Inheritance diagram for trikHal::stub::StubFifo:
Collaboration diagram for trikHal::stub::StubFifo:

Public Member Functions

 StubFifo (const QString &fileName)
 Constructor. More...
 
bool open () override
 Opens FIFO file and starts listening for events. More...
 
bool close () override
 Closes FIFO file and stops listening for events. More...
 
QString fileName () override
 Returns file name of a FIFO file. More...
 

Public Attributes

const QString mFileName
 

Additional Inherited Members

- Signals inherited from trikHal::FifoInterface
void newData (const QString &data)
 Emitted when new data is read from FIFO. More...
 
void readError ()
 Emitted when something is wrong with opened FIFO file and reading failed. More...
 

Detailed Description

Empty implementation of Linux FIFO. Does not emit any events, only logs operations.

Constructor & Destructor Documentation

StubFifo::StubFifo ( const QString &  fileName)

Constructor.

Parameters
fileName- FIFO file name.

Member Function Documentation

bool StubFifo::close ( )
overridevirtual

Closes FIFO file and stops listening for events.

Returns
true, if closed successfully.

Implements trikHal::FifoInterface.

QString StubFifo::fileName ( )
overridevirtual

Returns file name of a FIFO file.

Implements trikHal::FifoInterface.

bool StubFifo::open ( )
overridevirtual

Opens FIFO file and starts listening for events.

Returns
true, if opened successfully.

Implements trikHal::FifoInterface.

Member Data Documentation

const QString trikHal::stub::StubFifo::mFileName

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