RTI Connext DDS Micro C++ API  2.4.14.2
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Macros Groups
User Data Type Support

Defines generic classes and macros to support user data types. More...

Classes

struct  FooTypeSupport
 <<interface>> <<generic>> User data type specific interface. More...

Macros

#define DDS_DATAWRITER_CPP(TDataWriter, TData)
 Declares the interface required to support a user data type specific data writer.
#define DDS_DATAREADER_CPP(TDataReader, TData)
 Declares the interface required to support a user data type-specific data reader.
#define DDS_TYPESUPPORT_CPP(TTypeSupport, TData)
 Declares the interface required to support a user data type.

Typedefs

typedef DDS_HANDLE_TYPE_NATIVE DDS_InstanceHandle_t
 Type definition for an instance handle.

Functions

DDS_Boolean DDS_InstanceHandle_equals (const DDS_InstanceHandle_t *self, const DDS_InstanceHandle_t *other)
 <<cert>> Compares this instance handle with another handle for equality.
DDS_Boolean DDS_InstanceHandle_is_nil (const DDS_InstanceHandle_t *self)
 <<cert>> Compare this handle to DDS_HANDLE_NIL

Variables

const DDS_InstanceHandle_t DDS_HANDLE_NIL
 <<cert>> The NIL instance handle.

Detailed Description

Defines generic classes and macros to support user data types.

Defines the DDS user data type support.

DDS specifies strongly typed interfaces to read and write user data. For each data class defined by the application, there is a number of specialised classes that are required to facilitate the type-safe interaction of the application with RTI Connext Micro.

RTI Connext Micro provides an automatic means to generate all these type-specific classes with the RTI IDL Compiler User Manual utility. The complete set of automatic classes created for a hypothetical user data type named Foo are shown below.

DDSUserDataSupport.png
"Classes auto-created for an application data type named Foo"

The macros defined here declare the strongly typed APIs needed to support an arbitrary user defined data of type Foo.


Macro Definition Documentation

#define DDS_DATAWRITER_CPP (   TDataWriter,
  TData 
)

Declares the interface required to support a user data type specific data writer.

Uses:
FooTypeSupport user data type, Foo
Defines:
FooDataWriter DDSDataWriter of type Foo, i.e. FooDataWriter
#define DDS_DATAREADER_CPP (   TDataReader,
  TData 
)

Declares the interface required to support a user data type-specific data reader.

Uses:
FooTypeSupport user data type, Foo FooSeq sequence of user data type, sequence<Foo>
Defines:
FooDataReader DDSDataReader of type Foo, i.e. FooDataReader
See also:
FooSeq
#define DDS_TYPESUPPORT_CPP (   TTypeSupport,
  TData 
)

Declares the interface required to support a user data type.

Defines:
FooTypeSupport TypeSupport of type Foo, i.e. FooTypeSupport

Typedef Documentation

typedef DDS_HANDLE_TYPE_NATIVE DDS_InstanceHandle_t

Type definition for an instance handle.

Handle to identiy different instances of the same DDSTopic of a certain type.

See also:
FooDataWriter::register_instance
DDS_SampleInfo::instance_handle

Function Documentation

DDS_Boolean DDS_InstanceHandle_equals ( const DDS_InstanceHandle_t self,
const DDS_InstanceHandle_t other 
)

<<cert>> Compares this instance handle with another handle for equality.

Parameters:
self<<in>> This handle. Cannot be NULL.
other<<in>> The other handle to be compared with this handle. Cannot be NULL.
Returns:
DDS_BOOLEAN_TRUE if the two handles have equal values, or DDS_BOOLEAN_FALSE otherwise.
MT Safety:
UNSAFE. This operation does not protect against the left or right side from being modified by another thread while the comparison is made.
See also:
DDS_InstanceHandle_is_nil
DDS_Boolean DDS_InstanceHandle_is_nil ( const DDS_InstanceHandle_t self)

<<cert>> Compare this handle to DDS_HANDLE_NIL

Returns:
DDS_BOOLEAN_TRUE if the given instance handle is equal to DDS_HANDLE_NIL or DDS_BOOLEAN_FALSE otherwise.
See also:
DDS_InstanceHandle_equals

Variable Documentation

const DDS_InstanceHandle_t DDS_HANDLE_NIL

<<cert>> The NIL instance handle.

Special DDS_InstanceHandle_t value

See also:
DDS_InstanceHandle_is_nil

RTI Connext DDS Micro C++ API 2.4.14.2 Copyright © Tue May 28 2024 Real-Time Innovations, Inc