trikRuntime
trikHal::trik::TrikFifo Class Reference

Real implementation of FIFO. More...

#include <trikFifo.h>

Inheritance diagram for trikHal::trik::TrikFifo:
Collaboration diagram for trikHal::trik::TrikFifo:

Public Member Functions

 TrikFifo (const QString &fileName)
 Constructor. More...
 
 ~TrikFifo () override
 
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...
 

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

Real implementation of FIFO.

Constructor & Destructor Documentation

TrikFifo::TrikFifo ( const QString &  fileName)

Constructor.

Parameters
fileName- name of a FIFO file.
TrikFifo::~TrikFifo ( )
override

Member Function Documentation

bool TrikFifo::close ( )
overridevirtual

Closes FIFO file and stops listening for events.

Returns
true, if closed successfully.

Implements trikHal::FifoInterface.

QString TrikFifo::fileName ( )
overridevirtual

Returns file name of a FIFO file.

Implements trikHal::FifoInterface.

bool TrikFifo::open ( )
overridevirtual

Opens FIFO file and starts listening for events.

Returns
true, if opened successfully.

Implements trikHal::FifoInterface.


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