trikRuntime
|
Empty implementation of Linux FIFO. Does not emit any events, only logs operations. More...
#include <stubFifo.h>
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... | |
Empty implementation of Linux FIFO. Does not emit any events, only logs operations.
StubFifo::StubFifo | ( | const QString & | fileName | ) |
Constructor.
fileName | - FIFO file name. |
|
overridevirtual |
Closes FIFO file and stops listening for events.
Implements trikHal::FifoInterface.
|
overridevirtual |
Returns file name of a FIFO file.
Implements trikHal::FifoInterface.
|
overridevirtual |
Opens FIFO file and starts listening for events.
Implements trikHal::FifoInterface.
const QString trikHal::stub::StubFifo::mFileName |