CoreDX Data Distribution Service
The High Performance, Small Footprint DDS from Twin Oaks Computing, Inc
com.toc.coredx.dynamictype.DynamicTypeSupport Class Reference

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

Inherits DDS.DynamicTypeSupport.

Public Member Functions

ReturnCode_t register_type (DomainParticipant participant, String type_name)
 Register the TypeSupport with the DomainParticipant.
 
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...
 
String get_fully_qualified_typename ()
 
DDS.DynamicType get_type ()
 Returns the DynamicType that is supported by this TypeSupport instance. More...
 
long getCTypeSupport ()
 
DataReader create_datareader (Subscriber sub, TopicDescription td, SWIGTYPE_p__DataReader jni_dr)
 
DataWriter create_datawriter (Publisher pub, Topic topic, SWIGTYPE_p__DataWriter jni_dw)
 
DynamicData alloc ()
 

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 (DDS.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

◆ alloc()

DynamicData com.toc.coredx.dynamictype.DynamicTypeSupport.alloc ( )

Private, access to raw marshal / unmarshal

Implements com.toc.coredx.DDS.TypeSupport.

◆ create_datareader()

DataReader com.toc.coredx.dynamictype.DynamicTypeSupport.create_datareader ( Subscriber  sub,
TopicDescription  td,
SWIGTYPE_p__DataReader  jni_dr 
)

Private.

Implements com.toc.coredx.DDS.TypeSupport.

◆ create_datawriter()

DataWriter com.toc.coredx.dynamictype.DynamicTypeSupport.create_datawriter ( Publisher  pub,
Topic  topic,
SWIGTYPE_p__DataWriter  jni_dw 
)

Private.

Implements com.toc.coredx.DDS.TypeSupport.

◆ create_type_support()

static DynamicTypeSupport com.toc.coredx.dynamictype.DynamicTypeSupport.create_type_support ( DDS.DynamicType  type)
static

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 com.toc.coredx.dynamictype.DynamicTypeSupport.delete_type_support ( DDS.DynamicTypeSupport  type_support)
static

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_fully_qualified_typename()

String com.toc.coredx.dynamictype.DynamicTypeSupport.get_fully_qualified_typename ( )

Returns the fully-qualified name of the data type supported by this object.

Implements com.toc.coredx.DDS.TypeSupport.

◆ get_type()

DDS.DynamicType com.toc.coredx.dynamictype.DynamicTypeSupport.get_type ( )

Returns the DynamicType that is supported by this TypeSupport instance.

The application should not modify the returned DynamicType.

Implements com.toc.coredx.DDS.TypeSupport.

◆ get_type_name()

String com.toc.coredx.dynamictype.DynamicTypeSupport.get_type_name ( )

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.

Implements com.toc.coredx.DDS.TypeSupport.

◆ get_typename()

String com.toc.coredx.dynamictype.DynamicTypeSupport.get_typename ( )

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.

Implements com.toc.coredx.DDS.TypeSupport.

◆ getCTypeSupport()

long com.toc.coredx.dynamictype.DynamicTypeSupport.getCTypeSupport ( )

Private.

Implements com.toc.coredx.DDS.TypeSupport.


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