trikRuntime
trikHal::stub::StubEventFile Class Reference

Empty implementation of event file, it only logs calls to its methods and doen't emit any signals. More...

#include <stubEventFile.h>

Inheritance diagram for trikHal::stub::StubEventFile:
Collaboration diagram for trikHal::stub::StubEventFile:

Public Member Functions

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

Empty implementation of event file, it only logs calls to its methods and doen't emit any signals.

Constructor & Destructor Documentation

StubEventFile::StubEventFile ( const QString &  fileName)

Constructor.

Parameters
fileName- file name (with path, relative or absolute) of an event file.

Member Function Documentation

void StubEventFile::cancelWaiting ( )
overridevirtual

Abort all pending synchronous event loops.

Implements trikHal::EventFileInterface.

bool StubEventFile::close ( )
overridevirtual

Closes event file and stops listening for events.

Implements trikHal::EventFileInterface.

QString StubEventFile::fileName ( ) const
overridevirtual

Returns name of an event file.

Implements trikHal::EventFileInterface.

bool StubEventFile::isOpened ( ) const
overridevirtual

Returns true if a file is opened.

Implements trikHal::EventFileInterface.

bool StubEventFile::open ( )
overridevirtual

Opens event file and starts listening for events.

Implements trikHal::EventFileInterface.


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