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

A datawriter for adapted aggregate types. More...

#include <generic_dw.h>

Public Member Functions

 GenericDataWriter (DDSDomainParticipant *participant, const char *topic_name, const char *type_name=0, DDS_DynamicDataTypeProperty_t props=DDS_DYNAMIC_DATA_TYPE_PROPERTY_DEFAULT)
 
 GenericDataWriter (DDSDomainParticipant *participant, DDS_DataWriterQos &dwqos, const char *topic_name, const char *type_name=0, DDSDataWriterListener *listener=0, DDS_DynamicDataTypeProperty_t props=DDS_DYNAMIC_DATA_TYPE_PROPERTY_DEFAULT)
 
DDS_ReturnCode_t write (const T &data, const DDS_InstanceHandle_t &handle=DDS_HANDLE_NIL)
 Publish an instance of type T. More...
 
DDS_ReturnCode_t write_w_params (const T &data, DDS_WriteParams_t &params)
 Publish an instance of type T. More...
 
DDSDynamicDataWriter * underlying ()
 Return the underlying DDSDynamicDataWriter. More...
 
DDSDynamicDataWriter * operator-> ()
 Return the underlying DDSDynamicDataWriter. 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::pub::GenericDataWriter< T >

A datawriter for adapted aggregate types.

Constructor & Destructor Documentation

template<class T >
reflex::pub::GenericDataWriter< T >::GenericDataWriter ( DDSDomainParticipant *  participant,
const char *  topic_name,
const char *  type_name = 0,
DDS_DynamicDataTypeProperty_t  props = DDS_DYNAMIC_DATA_TYPE_PROPERTY_DEFAULT 
)
inline
template<class T >
reflex::pub::GenericDataWriter< T >::GenericDataWriter ( DDSDomainParticipant *  participant,
DDS_DataWriterQos &  dwqos,
const char *  topic_name,
const char *  type_name = 0,
DDSDataWriterListener *  listener = 0,
DDS_DynamicDataTypeProperty_t  props = DDS_DYNAMIC_DATA_TYPE_PROPERTY_DEFAULT 
)
inline

Member Function Documentation

template<class T >
const DDS_DynamicDataTypeProperty_t& reflex::pub::GenericDataWriter< T >::get_properties ( ) const
inline

Return the underlying DynamicData properties.

template<class T >
const SafeTypeCode<T>& reflex::pub::GenericDataWriter< T >::get_safe_typecode ( ) const
inline

Return the underlying SafeTypeCode object.

template<class T >
const DDSDynamicDataTypeSupport* reflex::pub::GenericDataWriter< T >::get_type_support ( ) const
inline

Return the underlying DynamicDataTypeSupport.

template<class T >
const DDS_TypeCode* reflex::pub::GenericDataWriter< T >::get_typecode ( ) const
inline

Return the underlying TypeCode object.

template<class T >
DDSDynamicDataWriter* reflex::pub::GenericDataWriter< T >::operator-> ( )
inline

Return the underlying DDSDynamicDataWriter.

template<class T >
DDSDynamicDataWriter* reflex::pub::GenericDataWriter< T >::underlying ( )
inline

Return the underlying DDSDynamicDataWriter.

template<class T >
DDS_ReturnCode_t reflex::pub::GenericDataWriter< T >::write ( const T &  data,
const DDS_InstanceHandle_t &  handle = DDS_HANDLE_NIL 
)
inline

Publish an instance of type T.

Parameters
dataAn object of type T
handle(Optional) A handle to a DDS instance
Returns
DDS_RETCODE_OK if successful.
template<class T >
DDS_ReturnCode_t reflex::pub::GenericDataWriter< T >::write_w_params ( const T &  data,
DDS_WriteParams_t &  params 
)
inline

Publish an instance of type T.

Parameters
dataAn object of type T
paramsSpecial parameters for publishing a value
Returns
DDS_RETCODE_OK if successful.

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