BioSignalPi  v2
Public Member Functions | Protected Member Functions | List of all members
EcgMock Class Reference

Mock version of an device The EcgMock device will return sine and cosine functions as data. More...

#include <ecgmock.h>

Inheritance diagram for EcgMock:
Inheritance graph
[legend]
Collaboration diagram for EcgMock:
Collaboration graph
[legend]

Public Member Functions

 EcgMock (DataStream &inputStream)
 
virtual ~EcgMock ()
 
virtual void getData (DataStream &)
 
virtual bool connected ()
 true as long as close() isn't called. More...
 
virtual void reconnect ()
 sets state=true More...
 
virtual void close ()
 sets state=false More...
 
virtual void stop ()
 
- Public Member Functions inherited from DeviceInterface
 DeviceInterface (DataStream &inputStream)
 
virtual ~DeviceInterface ()
 
virtual void init (DataStream &)
 

Protected Member Functions

virtual void run ()
 
- Protected Member Functions inherited from DeviceInterface
void updateStatusFunction (QString)
 
void sendSampleVectorFunction (QVector< QVector< QPointF > >)
 

Additional Inherited Members

- Signals inherited from DeviceInterface
void sendSampleVector (QVector< QVector< QPointF > >)
 
void updateStatus (QString)
 
- Protected Attributes inherited from DeviceInterface
DataStream & stream
 

Detailed Description

Mock version of an device The EcgMock device will return sine and cosine functions as data.

Call the EcgMock should render (sine(x),cosine(x),tan(x),sin(2x))

Author
Martin
Bug:
No known Bugs

Definition at line 21 of file ecgmock.h.

Constructor & Destructor Documentation

EcgMock::EcgMock ( DataStream &  inputStream)

Definition at line 15 of file ecgmock.cpp.

EcgMock::~EcgMock ( )
virtual

Definition at line 19 of file ecgmock.cpp.

Here is the call graph for this function:

Member Function Documentation

void EcgMock::close ( )
virtual

sets state=false

Implements DeviceInterface.

Definition at line 107 of file ecgmock.cpp.

Here is the caller graph for this function:

bool EcgMock::connected ( )
virtual

true as long as close() isn't called.

Implements DeviceInterface.

Definition at line 99 of file ecgmock.cpp.

void EcgMock::getData ( DataStream &  inputStream)
virtual
See also
DeviceInterface::getData();
Deprecated:
old function, not used
Parameters
DataStream&

Implements DeviceInterface.

Definition at line 28 of file ecgmock.cpp.

void EcgMock::reconnect ( )
virtual

sets state=true

Definition at line 103 of file ecgmock.cpp.

void EcgMock::run ( )
protectedvirtual

Implements DeviceInterface.

Definition at line 47 of file ecgmock.cpp.

void EcgMock::stop ( )
virtual

Implements DeviceInterface.

Definition at line 94 of file ecgmock.cpp.


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