OpenRTM-aist 2.1.0
Loading...
Searching...
No Matches
RTC::Timestamp< DataType > Class Template Reference

#include <Timestamp.h>

Inheritance diagram for RTC::Timestamp< DataType >:
Collaboration diagram for RTC::Timestamp< DataType >:

Public Member Functions

 Timestamp (const char *ts_type)
 ~Timestamp () override=default
ReturnCode operator() (ConnectorInfo &info, DataType &data) override
 Virtual Callback method.
Public Member Functions inherited from RTC::ConnectorDataListenerT< DataType >
 ConnectorDataListenerT ()=default
 Constructor .
 ~ConnectorDataListenerT () override
 Destructor .
ReturnCode operator() (ConnectorInfo &info, ByteData &cdrdata, const std::string &marshalingtype) override
 Callback method.
Public Member Functions inherited from RTC::ConnectorDataListener
virtual ~ConnectorDataListener ()
 Destructor .

Public Attributes

std::string m_tstype
Public Attributes inherited from RTC::ConnectorDataListener
 USE_CONNLISTENER_STATUS

Additional Inherited Members

Public Types inherited from RTC::ConnectorListenerStatus
enum  Enum { NO_CHANGE = 0 , INFO_CHANGED = 1 << 0 , DATA_CHANGED = 1 << 1 , BOTH_CHANGED = INFO_CHANGED | DATA_CHANGED }
Static Public Member Functions inherited from RTC::ConnectorDataListener
static const char * toString (ConnectorDataListenerType type)
 Convert ConnectorDataListenerType into the string.

Constructor & Destructor Documentation

◆ Timestamp()

template<class DataType>
RTC::Timestamp< DataType >::Timestamp ( const char * ts_type)
inline

References m_tstype.

◆ ~Timestamp()

template<class DataType>
RTC::Timestamp< DataType >::~Timestamp ( )
overridedefault

Member Function Documentation

◆ operator()()

template<class DataType>
ReturnCode RTC::Timestamp< DataType >::operator() ( ConnectorInfo & info,
DataType & data )
inlineoverridevirtual

Virtual Callback method.

This method invokes the callback method of ConnectorDataListenerT. Data is converted into the variable type used in DataPort.

Implements RTC::ConnectorDataListenerT< DataType >.

References RTC::ConnectorListenerStatus::DATA_CHANGED, m_tstype, RTC::ConnectorListenerStatus::NO_CHANGE, RTC::ConnectorInfo::properties, and setTimestamp().

Member Data Documentation

◆ m_tstype

template<class DataType>
std::string RTC::Timestamp< DataType >::m_tstype

Referenced by operator()(), and Timestamp().


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