DDS-Specific Primitive Types
[Topic Module]

Basic DDS value types for use in user data types. More...

Defines

#define DDS_BOOLEAN_TRUE
 Defines "true" value of DDS_Boolean data type.
#define DDS_BOOLEAN_FALSE
 Defines "false" value of DDS_Boolean data type.

Typedefs

typedef RTICdrChar DDS_Char
 Defines a character data type, equivalent to IDL/CDR char.
typedef RTICdrWchar DDS_Wchar
 Defines a wide character data type, equivalent to IDL/CDR wchar.
typedef RTICdrOctet DDS_Octet
 Defines an opaque byte data type, equivalent to IDL/CDR octet.
typedef RTICdrShort DDS_Short
 Defines a short integer data type, equivalent to IDL/CDR short.
typedef RTICdrUnsignedShort DDS_UnsignedShort
 Defines an unsigned short integer data type, equivalent to IDL/CDR unsigned short.
typedef RTICdrLong DDS_Long
 Defines a long integer data type, equivalent to IDL/CDR long.
typedef RTICdrUnsignedLong DDS_UnsignedLong
 Defines an unsigned long integer data type, equivalent to IDL/CDR unsigned long.
typedef RTICdrLongLong DDS_LongLong
 Defines an extra-long integer data type, equivalent to IDL/CDR long long.
typedef RTICdrUnsignedLongLong DDS_UnsignedLongLong
 Defines an unsigned extra-long data type, equivalent to IDL/CDR unsigned long long.
typedef RTICdrFloat DDS_Float
 Defines a single-precision floating-point data type, equivalent to IDL/CDR float.
typedef RTICdrDouble DDS_Double
 Defines a double-precision floating-point data type, equivalent to IDL/CDR double.
typedef RTICdrLongDouble DDS_LongDouble
 Defines an extra-precision floating-point data type, equivalent to IDL/CDR long double.
typedef RTICdrBoolean DDS_Boolean
 Defines a Boolean data type, equivalent to IDL/CDR boolean.
typedef RTICdrEnum DDS_Enum
 Defines an enumerated data type.

Detailed Description

Basic DDS value types for use in user data types.

As part of the finalization of the DDS standard, a number of DDS-specific primitive types will be introduced. By using these types, you will ensure that your data is serialized consistently across platforms even if the C/C++ built-in types have different sizes on those platforms.

In this version of RTI Data Distribution Service, the DDS primitive types are defined using the OMG's Common Data Representation (CDR) standard. In a future version of RTI Data Distribution Service, you will be given the choice of whether to use these CDR-based types or C/C++ built-in types through a flag provided to the rtiddsgen tool.


Define Documentation

#define DDS_BOOLEAN_TRUE

Defines "true" value of DDS_Boolean data type.

#define DDS_BOOLEAN_FALSE

Defines "false" value of DDS_Boolean data type.

Examples:
HelloWorld.cxx.


Typedef Documentation

typedef RTICdrChar DDS_Char

Defines a character data type, equivalent to IDL/CDR char.

An 8-bit quantity that encodes a single byte charater from any byte-oriented code set.

typedef RTICdrWchar DDS_Wchar

Defines a wide character data type, equivalent to IDL/CDR wchar.

An 16-bit quantity that encodes a wide character from any character set.

typedef RTICdrOctet DDS_Octet

Defines an opaque byte data type, equivalent to IDL/CDR octet.

An 8-bit quantity that is guaranteed not to undergo any conversion when transmitted by the middleware.

typedef RTICdrShort DDS_Short

Defines a short integer data type, equivalent to IDL/CDR short.

A 16-bit signed short integer value.

typedef RTICdrUnsignedShort DDS_UnsignedShort

Defines an unsigned short integer data type, equivalent to IDL/CDR unsigned short.

A 16-bit unsigned short integer value.

typedef RTICdrLong DDS_Long

Defines a long integer data type, equivalent to IDL/CDR long.

A 32-bit signed long integer value.

typedef RTICdrUnsignedLong DDS_UnsignedLong

Defines an unsigned long integer data type, equivalent to IDL/CDR unsigned long.

A 32-bit unsigned long integer value.

typedef RTICdrLongLong DDS_LongLong

Defines an extra-long integer data type, equivalent to IDL/CDR long long.

A 64-bit signed long long integer value.

typedef RTICdrUnsignedLongLong DDS_UnsignedLongLong

Defines an unsigned extra-long data type, equivalent to IDL/CDR unsigned long long.

An 64-bit unsigned long long integer value.

typedef RTICdrFloat DDS_Float

Defines a single-precision floating-point data type, equivalent to IDL/CDR float.

A 32-bit floating-point value.

typedef RTICdrDouble DDS_Double

Defines a double-precision floating-point data type, equivalent to IDL/CDR double.

A 64-bit floating-point value.

typedef RTICdrLongDouble DDS_LongDouble

Defines an extra-precision floating-point data type, equivalent to IDL/CDR long double.

A 128-bit floating-point value.

Since some architectures do not support long double, RTI has defined character arrays that match the expected size of this type. On systems that do have native long double, you have to define RTI_CDR_SIZEOF_LONG_DOUBLE as 16 to map them to native types.

typedef RTICdrBoolean DDS_Boolean

Defines a Boolean data type, equivalent to IDL/CDR boolean.

An 8-bit Boolean value that is used to denote a data item that can only take one of the values DDS_BOOLEAN_TRUE (1) or DDS_BOOLEAN_FALSE (0).

typedef RTICdrEnum DDS_Enum

Defines an enumerated data type.

Encoded as unsigned long value. By default, the first enum identifier has the numeric value zero (0). Successive enum identifiers take ascending numeric values, in order of declaration from left to right.


RTI Data Distribution Service C++ API Version 4.5e Copyright © 23 Oct 2011 Real-Time Innovations, Inc