|
RTI Connext Traditional C++ API
Version 7.0.0
|
A collection of attributes used to configure how a TypeCode appears when converted to a string. More...
Public Attributes | |
| DDS_Long | indent |
| Configures how much indent should be added to the string representation of a DDS_TypeCode. More... | |
| DDS_Boolean | print_ordinals |
| Configures whether or not to print the ordinal value of each enumerator within a DDS_TypeCode. More... | |
A collection of attributes used to configure how a TypeCode appears when converted to a string.
To ensure that new objects are initialized to a known value, assign them with the static initializer DDS_TypeCode_PrintFormat_INITIALIZER.
| DDS_Long DDS_TypeCodePrintFormatProperty::indent |
Configures how much indent should be added to the string representation of a DDS_TypeCode.
Configures how much additional indent is applied when converting a TypeCode to a string. This value acts as a total offset on the string, increasing the indent applied to all elements by the same amount. With an indent of 0, a string representation of a TypeCode may appear as:
struct myType {
long x;
};Using an indent of 1, the same TypeCode would be printed as:
struct myType {
long x;
};I.e., the entire structure is indented.
| DDS_Boolean DDS_TypeCodePrintFormatProperty::print_ordinals |
Configures whether or not to print the ordinal value of each enumerator within a DDS_TypeCode.
When set to true, the ordinal value of each enumerator within an enum will be printed, otherwise only non-default ordinals are printed. Take for example the following enum:
enum myEnum {
RED,
GREEN = 3,
BLUE,
};When print_ordinals is set to false it would be printed as:
enum myEnum {
RED,
GREEN = 3,
BLUE,
};But with print_ordinals set to true it would be printed as:
enum myEnum {
RED = 0,
GREEN = 3,
BLUE = 4,
};