|
RefleX
Build DDS Applications in Modern C++ without IDL
|
Manage type-specific context, such as typecode, type-support, and dynamic data properties. More...
#include <type_manager.h>
Public Member Functions | |
| TypeManager (const DDS_DynamicDataTypeProperty_t &props=DDS_DynamicDataTypeProperty_t()) | |
| Create a type manager that uses the argument properties to create all the DynamicData objects. More... | |
| TypeManager (DDSDynamicDataTypeSupport *support) | |
| Create a type manager that uses the argument DynamicDataTypeSupport to create all the DynamicData objects. More... | |
| SafeDynamicData< T > | create_dynamicdata (const T &src) const |
| T | create_instance (const SafeDynamicData< T > &src) const |
| DDS_DynamicDataTypeProperty_t & | get_properties () |
| SafeTypeCode< T > & | get_safe_typecode () |
| DDS_TypeCode * | get_typecode () |
| DDSDynamicDataTypeSupport * | get_type_support () |
| 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 |
Manage type-specific context, such as typecode, type-support, and dynamic data properties.
This class manages the type related context necessary to create dynamic data objects from a user-defined type. It is a container of the typecode, type-support for type T. It also encapsulates the DynamicDataType properties used to create dynamic data objects. Instances of the TypeManager class are immutable.
|
inlineexplicit |
Create a type manager that uses the argument properties to create all the DynamicData objects.
| props | Properties that govern DynamicData objects |
|
inline |
Create a type manager that uses the argument DynamicDataTypeSupport to create all the DynamicData objects.
| support | An instance of DynamicDataTypeSupport. |
|
inline |
Creates a type-safe, exception-safe instance of SafeDynamicData from a source object. This function combines reflex::make_typecode and reflex::write_dynamicdata into one.
| src | The source object of type T |
|
inline |
Creates a instance of T from a SafeDynamicData object.
| src | The source SafeDynamicData object |
|
inline |
Return the underlying DynamicData properties.
|
inline |
Return the underlying DynamicData properties.
|
inline |
Return the underlying SafeTypeCode object.
|
inline |
Return the underlying SafeTypeCode object.
|
inline |
Return the underlying DynamicDataTypeSupport.
|
inline |
Return the underlying DynamicDataTypeSupport.
|
inline |
Return the underlying TypeCode object.
|
inline |
Return the underlying TypeCode object.
1.8.6