CoreDX DDS C++ Reference Manual
Public Member Functions | Static Public Member Functions | Protected Member Functions | List of all members
DDS::DynamicTypeSupport Class Referenceabstract

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

Inherits TypeSupport.

Public Member Functions

virtual ReturnCode_t register_type (DomainParticipant *participant, const char *type_name)=0
 Register the TypeSupport with the DomainParticipant.
 
virtual const char * get_type_name ()=0
 Returns the name of the type supported by this TypeSupport instance. More...
 
virtual DynamicTypeget_type ()=0
 Returns the DynamicType that is supported by this TypeSupport instance. More...
 

Static Public Member Functions

static DynamicTypeSupportcreate_type_support (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...
 

Protected Member Functions

 DynamicTypeSupport ()
 

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

Constructor & Destructor Documentation

DDS::DynamicTypeSupport::DynamicTypeSupport ( )
protected

Constructor, Copy Constructor, Destructor, Assignment operator

Member Function Documentation

static DynamicTypeSupport* DDS::DynamicTypeSupport::create_type_support ( 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
static ReturnCode_t DDS::DynamicTypeSupport::delete_type_support ( 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
virtual DynamicType* DDS::DynamicTypeSupport::get_type ( )
pure virtual

Returns the DynamicType that is supported by this TypeSupport instance.

The application should not modify the returned DynamicType.

virtual const char* DDS::DynamicTypeSupport::get_type_name ( )
pure virtual

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-2017 Twin Oaks Computing, Inc
Castle Rock, CO 80108
All rights reserved.