SensorValueBase Class Referenceabstract

The SensorValueBase class. More...

#include <RobotAPI/components/units/RobotUnit/SensorValues/SensorValueBase.h>

+ Inheritance diagram for SensorValueBase:

Public Types

template<class DerivedClass >
using SensorValueInfo = introspection::ClassMemberInfo< SensorValueBase, DerivedClass >
 

Public Member Functions

template<class T , class = typename std::enable_if<std::is_base_of<SensorValueBase, T>::value>::type>
void _copyTo (std::unique_ptr< T > &target) const
 
 ARMARX_META_MAKE_HAS_MEMBER_FNC_CHECK (SensorValueHasGetClassMemberInfo, GetClassMemberInfo, SensorValueInfo< T >(*)(void))
 
template<class T >
TasA ()
 
template<class T >
const TasA () const
 
template<class T >
T getDataFieldAs (std::size_t i) const
 
virtual void getDataFieldAs (std::size_t i, bool &out) const =0
 
virtual void getDataFieldAs (std::size_t i, Ice::Byte &out) const =0
 
virtual void getDataFieldAs (std::size_t i, Ice::Double &out) const =0
 
virtual void getDataFieldAs (std::size_t i, Ice::Float &out) const =0
 
virtual void getDataFieldAs (std::size_t i, Ice::Int &out) const =0
 
virtual void getDataFieldAs (std::size_t i, Ice::Long &out) const =0
 
virtual void getDataFieldAs (std::size_t i, Ice::Short &out) const =0
 
virtual void getDataFieldAs (std::size_t i, std::string &out) const =0
 
virtual std::vector< std::string > getDataFieldNames () const =0
 
virtual const std::type_info & getDataFieldType (std::size_t i) const =0
 
virtual std::size_t getNumberOfDataFields () const =0
 
virtual std::string getSensorValueType (bool withoutNamespaceSpecifier) const =0
 
template<class... Ts>
bool isA () const
 
virtual std::map< std::string, VariantBasePtrtoVariants (const IceUtil::Time &timestamp) const =0
 used to send the data to the DebugObserverTopic and to other Components (e.g. GUI widgets) More...
 
virtual ~SensorValueBase ()=default
 

Detailed Description

The SensorValueBase class.

Definition at line 40 of file SensorValueBase.h.

Member Typedef Documentation

◆ SensorValueInfo

Definition at line 67 of file SensorValueBase.h.

Constructor & Destructor Documentation

◆ ~SensorValueBase()

virtual ~SensorValueBase ( )
virtualdefault

Member Function Documentation

◆ _copyTo()

void _copyTo ( std::unique_ptr< T > &  target) const
inline

Definition at line 126 of file SensorValueBase.h.

+ Here is the call graph for this function:

◆ ARMARX_META_MAKE_HAS_MEMBER_FNC_CHECK()

ARMARX_META_MAKE_HAS_MEMBER_FNC_CHECK ( SensorValueHasGetClassMemberInfo  ,
GetClassMemberInfo  ,
SensorValueInfo< T *)(void 
)

◆ asA() [1/2]

T* asA ( )
inline

Definition at line 89 of file SensorValueBase.h.

◆ asA() [2/2]

const T* asA ( ) const
inline

Definition at line 82 of file SensorValueBase.h.

+ Here is the caller graph for this function:

◆ getDataFieldAs() [1/9]

T getDataFieldAs ( std::size_t  i) const
inline

Definition at line 112 of file SensorValueBase.h.

+ Here is the call graph for this function:

◆ getDataFieldAs() [2/9]

virtual void getDataFieldAs ( std::size_t  i,
bool &  out 
) const
pure virtual
+ Here is the caller graph for this function:

◆ getDataFieldAs() [3/9]

virtual void getDataFieldAs ( std::size_t  i,
Ice::Byte &  out 
) const
pure virtual

◆ getDataFieldAs() [4/9]

virtual void getDataFieldAs ( std::size_t  i,
Ice::Double &  out 
) const
pure virtual

◆ getDataFieldAs() [5/9]

virtual void getDataFieldAs ( std::size_t  i,
Ice::Float &  out 
) const
pure virtual

◆ getDataFieldAs() [6/9]

virtual void getDataFieldAs ( std::size_t  i,
Ice::Int &  out 
) const
pure virtual

◆ getDataFieldAs() [7/9]

virtual void getDataFieldAs ( std::size_t  i,
Ice::Long &  out 
) const
pure virtual

◆ getDataFieldAs() [8/9]

virtual void getDataFieldAs ( std::size_t  i,
Ice::Short &  out 
) const
pure virtual

◆ getDataFieldAs() [9/9]

virtual void getDataFieldAs ( std::size_t  i,
std::string &  out 
) const
pure virtual

◆ getDataFieldNames()

virtual std::vector<std::string> getDataFieldNames ( ) const
pure virtual

◆ getDataFieldType()

virtual const std::type_info& getDataFieldType ( std::size_t  i) const
pure virtual

◆ getNumberOfDataFields()

virtual std::size_t getNumberOfDataFields ( ) const
pure virtual
+ Here is the caller graph for this function:

◆ getSensorValueType()

virtual std::string getSensorValueType ( bool  withoutNamespaceSpecifier) const
pure virtual

◆ isA()

bool isA ( ) const
inline

Definition at line 75 of file SensorValueBase.h.

+ Here is the caller graph for this function:

◆ toVariants()

virtual std::map<std::string, VariantBasePtr> toVariants ( const IceUtil::Time &  timestamp) const
pure virtual

used to send the data to the DebugObserverTopic and to other Components (e.g. GUI widgets)


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