trikRuntime
trikControl::FifoInterface Class Referenceabstract

Interface that represents linux FIFO file, which is commonly used by various sensors. More...

#include <fifoInterface.h>

Inheritance diagram for trikControl::FifoInterface:
Collaboration diagram for trikControl::FifoInterface:

Public Slots

virtual QString read ()=0
 Reads data from this FIFO file, returning all available data as string. More...
 
virtual bool hasData () const =0
 Returns true if FIFO has new data in it. More...
 

Signals

void newData (const QString &data)
 Emitted when new string is arrived to FIFO file. Emitted several times if more than one string arrives at once. More...
 

Additional Inherited Members

- Public Types inherited from trikControl::DeviceInterface
enum  Status {
  Status::permanentFailure, Status::temporaryFailure, Status::off, Status::starting,
  Status::ready, Status::stopping
}
 Device status. More...
 
- Public Member Functions inherited from trikControl::DeviceInterface
 DeviceInterface ()=default
 
virtual ~DeviceInterface ()=default
 
virtual Status status () const =0
 Returns current status of the device. More...
 
- Static Public Member Functions inherited from trikControl::DeviceInterface
static Status combine (const DeviceInterface &underlying, const DeviceInterface::Status &dependent)
 Helper method to return status of a device relying on other device to work. More...
 

Detailed Description

Interface that represents linux FIFO file, which is commonly used by various sensors.

Member Function Documentation

virtual bool trikControl::FifoInterface::hasData ( ) const
pure virtualslot

Returns true if FIFO has new data in it.

void trikControl::FifoInterface::newData ( const QString &  data)
signal

Emitted when new string is arrived to FIFO file. Emitted several times if more than one string arrives at once.

virtual QString trikControl::FifoInterface::read ( )
pure virtualslot

Reads data from this FIFO file, returning all available data as string.


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