Sensor Scol plugin
Multi platform sensors for handled devices
Public Member Functions | Protected Attributes
SSensor Class Referenceabstract
Inheritance diagram for SSensor:
SQSensor

Public Member Functions

 SSensor (SSensorType type)
 
SSensorType GetType ()
 
bool IsEnabled ()
 
void SetEnabled (bool enabled)
 
bool IsPaused ()
 
void SetPaused (bool paused)
 
SSensorCbAddCallBack ()
 
void RemoveCallBack (SSensorCb *sensorCb)
 
void CallSensorCb (SSensorData data)
 
double GetElapsedTime (int64_t timeStamp)
 
virtual SSensorData GetData ()=0
 

Protected Attributes

SSensorType mType
 
bool mEnabled
 
bool mPaused
 
int64_t mLastTimeStamp
 
std::list< SSensorCb * > mAxisCallbacks
 

Detailed Description

Definition at line 60 of file SSensor.h.

Constructor & Destructor Documentation

◆ SSensor() [1/2]

SSensor ( )

Definition at line 81 of file SSensor.cpp.

◆ SSensor() [2/2]

SSensor ( SSensorType  type)

Definition at line 89 of file SSensor.cpp.

◆ ~SSensor()

~SSensor ( )

Definition at line 97 of file SSensor.cpp.

Member Function Documentation

◆ AddCallBack()

SSensorCb * AddCallBack ( )

Definition at line 135 of file SSensor.cpp.

◆ CallSensorCb()

void CallSensorCb ( SSensorData  data)

Definition at line 163 of file SSensor.cpp.

◆ GetElapsedTime()

double GetElapsedTime ( int64_t  timeStamp)

Definition at line 152 of file SSensor.cpp.

◆ GetType()

SSensorType GetType ( )

Definition at line 102 of file SSensor.cpp.

◆ IsEnabled()

bool IsEnabled ( )

Definition at line 107 of file SSensor.cpp.

◆ IsPaused()

bool IsPaused ( )

Definition at line 121 of file SSensor.cpp.

◆ RemoveCallBack()

void RemoveCallBack ( SSensorCb sensorCb)

Definition at line 143 of file SSensor.cpp.

◆ SetEnabled()

void SetEnabled ( bool  enabled)

Definition at line 112 of file SSensor.cpp.

◆ SetPaused()

void SetPaused ( bool  paused)

Definition at line 126 of file SSensor.cpp.

Field Documentation

◆ mAxisCallbacks

std::list<SSensorCb*> mAxisCallbacks
protected

Definition at line 71 of file SSensor.h.

◆ mEnabled

bool mEnabled
protected

Definition at line 68 of file SSensor.h.

◆ mLastTimeStamp

int64_t mLastTimeStamp
protected

Definition at line 70 of file SSensor.h.

◆ mPaused

bool mPaused
protected

Definition at line 69 of file SSensor.h.

◆ mType

SSensorType mType
protected

Definition at line 67 of file SSensor.h.


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