RTI Connext .NET API (legacy)
Version 6.1.2
|
A collection of attributes used to configure how data samples will be formatted when converted to a string. More...
#include <managed_topic.h>
Public Attributes | |
PrintFormatKind | kind |
The kind of format to be used when converting a data sample to a string. More... | |
Properties | |
System::Boolean | pretty_print [get, set] |
Choose whether to print a data sample in a more readable format or to eliminate all white space. More... | |
System::Boolean | enum_as_int [get, set] |
Choose whether to print enum values as integers or as strings. More... | |
System::Boolean | include_root_elements [get, set] |
Choose whether or not to include the root elements of the print format in the output string. More... | |
A collection of attributes used to configure how data samples will be formatted when converted to a string.
PrintFormatKind DDS::PrintFormatProperty::kind |
The kind of format to be used when converting a data sample to a string.
Data samples can be represented in a default, XML, or JSON format.
[default] PrintFormatKind::DEFAULT_PRINT_FORMAT
|
getset |
Choose whether to print a data sample in a more readable format or to eliminate all white space.
A value of true will add indentation and newlines to the string representation of the data sample making it more readable. For example:
A value of false will cause all white space in the string representation of the data sample to be eliminated. For example:
[default] true
|
getset |
Choose whether to print enum values as integers or as strings.
A value of true will cause enumeration literals to be printed using their integer value. For example:
A value of false will cause enumeration literals to be printed as strings using their member names. For example:
[default] false
|
getset |
Choose whether or not to include the root elements of the print format in the output string.
This field only applies if the DDS::PrintFormatProperty::kind is PrintFormatKind::XML_PRINT_FORMAT or PrintFormatKind::JSON_PRINT_FORMAT
If the value is true and the kind is PrintFormatKind::XML_PRINT_FORMAT then a top-level tag with the type's name in it will be included in the output. For example:
If the value is true and the kind is PrintFormatKind::JSON_PRINT_FORMAT then top-level opening and closing braces will be included in the output. For example:
If the value is false the elements described above will not be included in the output. For example:
[default] true