RTI Connext Traditional C++ API Version 7.1.0
|
Basic DDS value types for use in user data types. More...
Macros | |
#define | DDS_BOOLEAN_TRUE |
Defines "true" value of DDS_Boolean data type. More... | |
#define | DDS_BOOLEAN_FALSE |
Defines "false" value of DDS_Boolean data type. More... | |
Typedefs | |
typedef RTICdrChar | DDS_Char |
Defines a character data type, equivalent to IDL/CDR char . More... | |
typedef RTICdrWchar | DDS_Wchar |
Defines a wide character data type, equivalent to IDL/CDR wchar . More... | |
typedef RTICdrOctet | DDS_Octet |
Defines an opaque byte data type, equivalent to IDL/CDR octet . More... | |
typedef RTICdrOctet | DDS_UInt8 |
Defines a data type, equivalent to IDL/CDR uint8 . More... | |
typedef RTICdrInt8 | DDS_Int8 |
Defines a data type, equivalent to IDL/CDR int8 . More... | |
typedef RTICdrShort | DDS_Short |
Defines a short integer data type, equivalent to IDL/CDR short . More... | |
typedef RTICdrUnsignedShort | DDS_UnsignedShort |
Defines an unsigned short integer data type, equivalent to IDL/CDR unsigned short . More... | |
typedef RTICdrLong | DDS_Long |
Defines a long integer data type, equivalent to IDL/CDR long . More... | |
typedef RTICdrUnsignedLong | DDS_UnsignedLong |
Defines an unsigned long integer data type, equivalent to IDL/CDR unsigned long . More... | |
typedef RTICdrLongLong | DDS_LongLong |
Defines an extra-long integer data type, equivalent to IDL/CDR long long . More... | |
typedef RTICdrUnsignedLongLong | DDS_UnsignedLongLong |
Defines an unsigned extra-long data type, equivalent to IDL/CDR unsigned long long . More... | |
typedef RTICdrFloat | DDS_Float |
Defines a single-precision floating-point data type, equivalent to IDL/CDR float . More... | |
typedef RTICdrDouble | DDS_Double |
Defines a double-precision floating-point data type, equivalent to IDL/CDR double . More... | |
typedef RTICdrLongDouble | DDS_LongDouble |
Defines an extra-precision floating-point data type, equivalent to IDL/CDR long double . More... | |
typedef RTICdrBoolean | DDS_Boolean |
Defines a Boolean data type, equivalent to IDL/CDR boolean . More... | |
typedef RTICdrEnum | DDS_Enum |
Defines an enumerated data type. More... | |
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 Connext, the DDS primitive types are defined using the OMG's Common Data Representation (CDR) standard. In a future version of RTI Connext, 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.
Typedef's that begin with RTICdr are defined in <NDDSHOME>/include/ndds/cdr/cdr_type.h, which uses types that are further defined in <NDDSHOME>/include/ndds/osapi/osapi_type.h.
#define DDS_BOOLEAN_TRUE |
Defines "true" value of DDS_Boolean data type.
#define DDS_BOOLEAN_FALSE |
Defines "false" value of DDS_Boolean data type.
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
.
A 16-bit quantity that contains a wide character encoded in UTF-16.
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 RTICdrOctet DDS_UInt8 |
Defines a data type, equivalent to IDL/CDR uint8
.
An 8-bit quantity that is guaranteed not to undergo any conversion when transmitted by the middleware.
typedef RTICdrInt8 DDS_Int8 |
Defines a data type, equivalent to IDL/CDR int8
.
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
.
A 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 a signed 32-bit integer value. By default, the first enum identifier has the numeric value zero (0) (unless the value is provided explicitly). Successive enum identifiers take ascending numeric values, in order of declaration from left to right.