trikRuntime
trikHal::trik::TrikEventFile Class Reference

Real implementation of event file. More...

#include <trikEventFile.h>

Inheritance diagram for trikHal::trik::TrikEventFile:
Collaboration diagram for trikHal::trik::TrikEventFile:

Public Member Functions

 TrikEventFile (const QString &fileName, QThread &thread)
 Constructor. More...
 
 ~TrikEventFile () override
 
bool open () override
 Opens event file and starts listening for events. More...
 
bool close () override
 Closes event file and stops listening for events. More...
 
void cancelWaiting () override
 Abort all pending synchronous event loops. More...
 
QString fileName () const override
 Returns name of an event file. More...
 
bool isOpened () const override
 Returns true if a file is opened. More...
 

Additional Inherited Members

- Signals inherited from trikHal::EventFileInterface
void newEvent (int eventType, int code, int value, const trikKernel::TimeVal &eventTime)
 Emitted when there is new event in an event file. More...
 

Detailed Description

Real implementation of event file.

Constructor & Destructor Documentation

TrikEventFile::TrikEventFile ( const QString &  fileName,
QThread &  thread 
)

Constructor.

Parameters
fileName- file name (with path, relative or absolute) of an event file.
thread- background thread where all socket events will be processed.
trikHal::trik::TrikEventFile::~TrikEventFile ( )
inlineoverride

Member Function Documentation

void TrikEventFile::cancelWaiting ( )
overridevirtual

Abort all pending synchronous event loops.

Implements trikHal::EventFileInterface.

bool TrikEventFile::close ( )
overridevirtual

Closes event file and stops listening for events.

Implements trikHal::EventFileInterface.

QString TrikEventFile::fileName ( ) const
overridevirtual

Returns name of an event file.

Implements trikHal::EventFileInterface.

bool TrikEventFile::isOpened ( ) const
overridevirtual

Returns true if a file is opened.

Implements trikHal::EventFileInterface.

bool TrikEventFile::open ( )
overridevirtual

Opens event file and starts listening for events.

Implements trikHal::EventFileInterface.


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