OpenSplice ISO C++ 2 DCPS  v6.x
ISO C++ 2 OpenSplice Data Distribution Service Data-Centric Publish-Subscribe API
dds::core::xtypes::DynamicData Class Reference

#include "DynamicData.hpp"

Inheritance diagram for dds::core::xtypes::DynamicData:
Inheritance graph

Public Member Functions

 DynamicData (const DynamicType &type)
 
uint32_t member_id (const std::string &name) const
 
MemberType member_type (uint32_t id) const
 
MemberType member_type (const std::string &name) const
 
DynamicType type () const
 
template<typename T >
void value (uint32_T mid, const T &v) const
 
template<typename T >
value (const std::string &mid, const T &v) const
 
template<typename T >
value (uint32_T mid) const
 
template<typename T >
value (const std::string &mid) const
 

Private Member Functions

bool is_nil () const
 
template<typename R >
bool operator!= (const R &ref) const
 
bool operator!= (const null_type nil) const
 
DELEGATE * operator-> ()
 
const DELEGATE * operator-> () const
 
template<typename R >
bool operator== (const R &ref) const
 
bool operator== (const null_type) const
 

Detailed Description

This class is used to read/write data for DynamicTypes. It allows reading and writing of samples in a type-safe manner but without any compile-time knowledge of the type being read or written.

Definition at line 57 of file DynamicData.hpp.

Constructor & Destructor Documentation

◆ DynamicData()

dds::core::xtypes::DynamicData::DynamicData ( const DynamicType &  type)

Member Function Documentation

◆ member_id()

uint32_t dds::core::xtypes::DynamicData::member_id ( const std::string &  name) const

◆ member_type() [1/2]

MemberType dds::core::xtypes::DynamicData::member_type ( uint32_t  id) const

◆ member_type() [2/2]

MemberType dds::core::xtypes::DynamicData::member_type ( const std::string &  name) const

◆ type()

DynamicType dds::core::xtypes::DynamicData::type ( ) const

◆ value() [1/4]

template<typename T >
void dds::core::xtypes::DynamicData::value ( uint32_T  mid,
const T &  v 
) const

◆ value() [2/4]

template<typename T >
T dds::core::xtypes::DynamicData::value ( const std::string &  mid,
const T &  v 
) const

◆ value() [3/4]

template<typename T >
T dds::core::xtypes::DynamicData::value ( uint32_T  mid) const

◆ value() [4/4]

template<typename T >
T dds::core::xtypes::DynamicData::value ( const std::string &  mid) const

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