Public Member Functions | Protected Member Functions | Private Member Functions | Private Attributes | List of all members
karto::SensorData Class Reference

#include <Karto.h>

Inheritance diagram for karto::SensorData:
Inheritance graph
[legend]

Public Member Functions

void AddCustomData (CustomData *pCustomData)
 
const CustomDataVectorGetCustomData () const
 
const NameGetSensorName () const
 
kt_int32s GetStateId () const
 
kt_double GetTime () const
 
kt_int32s GetUniqueId () const
 
void SetStateId (kt_int32s stateId)
 
void SetTime (kt_double time)
 
void SetUniqueId (kt_int32u uniqueId)
 
virtual ~SensorData ()
 
- Public Member Functions inherited from karto::Object
virtual const char * GetClassName () const =0
 
const NameGetName () const
 
virtual kt_objecttype GetObjectType () const =0
 
AbstractParameterGetParameter (const std::string &rName) const
 
virtual ParameterManagerGetParameterManager ()
 
const ParameterVectorGetParameters () const
 
 Object ()
 
 Object (const Name &rName)
 
template<typename T >
void SetParameter (const std::string &rName, T value)
 
virtual ~Object ()
 

Protected Member Functions

 SensorData (const Name &rSensorName)
 
- Protected Member Functions inherited from karto::NonCopyable
 NonCopyable ()
 
virtual ~NonCopyable ()
 

Private Member Functions

const SensorDataoperator= (const SensorData &)
 
 SensorData (const SensorData &)
 

Private Attributes

CustomDataVector m_CustomData
 
Name m_SensorName
 
kt_int32s m_StateId
 
kt_double m_Time
 
kt_int32s m_UniqueId
 

Detailed Description

SensorData is a base class for all sensor data

Definition at line 4811 of file Karto.h.

Constructor & Destructor Documentation

karto::SensorData::~SensorData ( )
virtual

Destructor

Definition at line 102 of file Karto.cpp.

karto::SensorData::SensorData ( const Name rSensorName)
protected

Construct a SensorData object with a sensor name

Definition at line 93 of file Karto.cpp.

karto::SensorData::SensorData ( const SensorData )
private

Restrict the copy constructor

Member Function Documentation

void karto::SensorData::AddCustomData ( CustomData pCustomData)
inline

Add a CustomData object to sensor data

Parameters
pCustomData

Definition at line 4892 of file Karto.h.

const CustomDataVector& karto::SensorData::GetCustomData ( ) const
inline

Get all custom data objects assigned to sensor data

Returns
CustomDataVector&

Definition at line 4901 of file Karto.h.

const Name& karto::SensorData::GetSensorName ( ) const
inline

Get the sensor that created this sensor data

Returns
sensor

Definition at line 4883 of file Karto.h.

kt_int32s karto::SensorData::GetStateId ( ) const
inline

Gets sensor data id

Returns
sensor id

Definition at line 4829 of file Karto.h.

kt_double karto::SensorData::GetTime ( ) const
inline

Gets sensor data time

Returns
time

Definition at line 4865 of file Karto.h.

kt_int32s karto::SensorData::GetUniqueId ( ) const
inline

Gets sensor unique id

Returns
unique id

Definition at line 4847 of file Karto.h.

const SensorData& karto::SensorData::operator= ( const SensorData )
private

Restrict the assignment operator

void karto::SensorData::SetStateId ( kt_int32s  stateId)
inline

Sets sensor data id

Parameters
stateIdid

Definition at line 4838 of file Karto.h.

void karto::SensorData::SetTime ( kt_double  time)
inline

Sets sensor data time

Parameters
time

Definition at line 4874 of file Karto.h.

void karto::SensorData::SetUniqueId ( kt_int32u  uniqueId)
inline

Sets sensor unique id

Parameters
uniqueId

Definition at line 4856 of file Karto.h.

Member Data Documentation

CustomDataVector karto::SensorData::m_CustomData
private

Definition at line 4944 of file Karto.h.

Name karto::SensorData::m_SensorName
private

Sensor that created this sensor data

Definition at line 4937 of file Karto.h.

kt_int32s karto::SensorData::m_StateId
private

ID unique to individual sensor

Definition at line 4927 of file Karto.h.

kt_double karto::SensorData::m_Time
private

Time the sensor data was created

Definition at line 4942 of file Karto.h.

kt_int32s karto::SensorData::m_UniqueId
private

ID unique across all sensor data

Definition at line 4932 of file Karto.h.


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


open_karto
Author(s):
autogenerated on Mon Jun 10 2019 14:02:19