RefleX
Build DDS Applications in Modern C++ without IDL
 All Classes Namespaces Files Functions Variables Typedefs Enumerator Friends Macros Pages
Public Types | Public Member Functions | List of all members
reflex::sub::GenericDataReader< T > Class Template Reference

A datareader for adapted aggregate types. More...

#include <generic_dr.h>

Public Types

typedef
GenericDataReaderListener< T > 
ListenerType
 

Public Member Functions

 GenericDataReader (DDSDomainParticipant *participant, const char *topic_name, ListenerType *listener, const char *type_name=0, DDS_DynamicDataTypeProperty_t props=DDS_DYNAMIC_DATA_TYPE_PROPERTY_DEFAULT)
 
 GenericDataReader (DDSDomainParticipant *participant, const DDS_DataReaderQos &drqos, const char *topic_name, ListenerType *listener, const char *type_name=0, DDS_DynamicDataTypeProperty_t props=DDS_DYNAMIC_DATA_TYPE_PROPERTY_DEFAULT)
 
DDS_ReturnCode_t take (std::vector< Sample< T >> &data, int max_samples=DDS_LENGTH_UNLIMITED, DDS_SampleStateMask sample_states=DDS_ANY_SAMPLE_STATE, DDS_ViewStateMask view_states=DDS_ANY_VIEW_STATE, DDS_InstanceStateMask instance_states=DDS_ANY_INSTANCE_STATE)
 
DDS_ReturnCode_t take_w_condition (std::vector< Sample< T >> &data, int max_samples, DDSReadCondition *cond)
 
DDSDynamicDataReader * underlying ()
 Return the underlying DDSDynamicDataReader. More...
 
DDSDynamicDataReader * operator-> ()
 Return the underlying DDSDynamicDataReader. More...
 
const
DDS_DynamicDataTypeProperty_t & 
get_properties () const
 
const SafeTypeCode< T > & get_safe_typecode () const
 
const DDS_TypeCode * get_typecode () const
 
const DDSDynamicDataTypeSupport * get_type_support () const
 

Detailed Description

template<class T>
class reflex::sub::GenericDataReader< T >

A datareader for adapted aggregate types.

Member Typedef Documentation

Constructor & Destructor Documentation

template<class T>
reflex::sub::GenericDataReader< T >::GenericDataReader ( DDSDomainParticipant *  participant,
const char *  topic_name,
ListenerType listener,
const char *  type_name = 0,
DDS_DynamicDataTypeProperty_t  props = DDS_DYNAMIC_DATA_TYPE_PROPERTY_DEFAULT 
)
inline
template<class T>
reflex::sub::GenericDataReader< T >::GenericDataReader ( DDSDomainParticipant *  participant,
const DDS_DataReaderQos &  drqos,
const char *  topic_name,
ListenerType listener,
const char *  type_name = 0,
DDS_DynamicDataTypeProperty_t  props = DDS_DYNAMIC_DATA_TYPE_PROPERTY_DEFAULT 
)
inline

Member Function Documentation

template<class T>
const DDS_DynamicDataTypeProperty_t& reflex::sub::GenericDataReader< T >::get_properties ( ) const
inline

Return the underlying DynamicData properties.

template<class T>
const SafeTypeCode<T>& reflex::sub::GenericDataReader< T >::get_safe_typecode ( ) const
inline

Return the underlying SafeTypeCode object.

template<class T>
const DDSDynamicDataTypeSupport* reflex::sub::GenericDataReader< T >::get_type_support ( ) const
inline

Return the underlying DynamicDataTypeSupport.

template<class T>
const DDS_TypeCode* reflex::sub::GenericDataReader< T >::get_typecode ( ) const
inline

Return the underlying TypeCode object.

template<class T>
DDSDynamicDataReader* reflex::sub::GenericDataReader< T >::operator-> ( )
inline

Return the underlying DDSDynamicDataReader.

template<class T>
DDS_ReturnCode_t reflex::sub::GenericDataReader< T >::take ( std::vector< Sample< T >> &  data,
int  max_samples = DDS_LENGTH_UNLIMITED,
DDS_SampleStateMask  sample_states = DDS_ANY_SAMPLE_STATE,
DDS_ViewStateMask  view_states = DDS_ANY_VIEW_STATE,
DDS_InstanceStateMask  instance_states = DDS_ANY_INSTANCE_STATE 
)
inline
template<class T>
DDS_ReturnCode_t reflex::sub::GenericDataReader< T >::take_w_condition ( std::vector< Sample< T >> &  data,
int  max_samples,
DDSReadCondition *  cond 
)
inline
template<class T>
DDSDynamicDataReader* reflex::sub::GenericDataReader< T >::underlying ( )
inline

Return the underlying DDSDynamicDataReader.


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