CoreDX Data Distribution Service
The High Performance, Small Footprint DDS from Twin Oaks Computing, Inc
DynamicTypeSupport Class Reference

The DynamicTypeSupport interface extends the TypeSupport interface defined by the DDS specification. This TypeSupport operates on DynamicData samples. More...

Inherits TypeSupport, and DynamicTypeSupport.

Public Member Functions

ReturnCode_t register_type (DomainParticipant participant, String type_name)
 Register the TypeSupport with the DomainParticipant.
 
override string get_typename ()
 Returns the name of the type supported by this TypeSupport instance. More...
 
string get_type_name ()
 Returns the name of the type supported by this TypeSupport instance. More...
 
DynamicType get_type ()
 Returns the DynamicType that is supported by this TypeSupport instance. More...
 

Static Public Member Functions

static DynamicTypeSupport create_type_support (DDS_DynamicType type)
 Create and return a new DynamicTypeSupport object capable of supporting the given type. More...
 
static ReturnCode_t delete_type_support (DynamicTypeSupport type_support)
 Delete the given type support object, which was previously created by a call to DynamicTypeSupport::create_type_support. More...
 

Detailed Description

The DynamicTypeSupport interface extends the TypeSupport interface defined by the DDS specification. This TypeSupport operates on DynamicData samples.

See also
DynamicType
DynamicTypeBuilderFactory
DynamicTypeBuilder

Member Function Documentation

◆ create_type_support()

static DynamicTypeSupport create_type_support ( DDS_DynamicType  type)
inlinestatic

Create and return a new DynamicTypeSupport object capable of supporting the given type.

The new type support has a "copy" of the given 'type' parameter, such that subsequent changes to, or deletions of, the 'type' parameter do not impact the new type support.

Any object returned by this operation should eventually be deleted by calling DynamicTypeSupport::delete_type_support.

Parameter type - The type for which to create a type support.

Return values
nilIf an error occurs, or the parameter is invalid

◆ delete_type_support()

static ReturnCode_t delete_type_support ( DynamicTypeSupport  type_support)
inlinestatic

Delete the given type support object, which was previously created by a call to DynamicTypeSupport::create_type_support.

Return values
DDS_RETCODE_BAD_PARAMETERinvalid parameter
DDS_RETCODE_OKon success

◆ get_type()

DynamicType get_type ( )
inline

Returns the DynamicType that is supported by this TypeSupport instance.

The application should not modify the returned DynamicType.

◆ get_type_name()

string get_type_name ( )
inline

Returns the name of the type supported by this TypeSupport instance.

The returned string is owned by the TypeSupport, and must not be free'd or modified.

◆ get_typename()

override string get_typename ( )
inline

Returns the name of the type supported by this TypeSupport instance.

The returned string is owned by the TypeSupport, and must not be free'd or modified.


© 2009-2020 Twin Oaks Computing, Inc
Castle Rock, CO 80108
All rights reserved.