RTI Connext C# API  6.1.0
PrintFormatProperty Class Reference

A collection of attributes used to configure how data samples will be formatted when converted to a string. More...

Inherits IEquatable< PrintFormatProperty >.

Public Member Functions

override bool Equals (object other)
 Compares for equality. More...
 
override int GetHashCode ()
 Calculates a hash code. More...
 
bool Equals (PrintFormatProperty other)
 Compares for equality. More...
 

Properties

PrintFormatKind Kind [get, set]
 The kind of format to be used when converting a data sample to a string. More...
 
bool PrettyPrint [get, set]
 Choose whether to print a data sample in a more readable format or to eliminate all white space. More...
 
bool EnumAsInt [get, set]
 Choose whether to print enum values as integers or as strings. More...
 
bool IncludeRootElements [get, set]
 Choose whether or not to include the root elements of the print format in the output string. More...
 

Detailed Description

A collection of attributes used to configure how data samples will be formatted when converted to a string.

See also
Rti.Types.Dynamic.DynamicData.ToString(PrintFormatProperty).
TypeSupport<T>.ToString(T, PrintFormatProperty)

Member Function Documentation

◆ Equals() [1/2]

override bool Equals ( object  other)

Compares for equality.

◆ Equals() [2/2]

bool Equals ( PrintFormatProperty  other)

Compares for equality.

◆ GetHashCode()

override int GetHashCode ( )

Calculates a hash code.

Property Documentation

◆ EnumAsInt

bool EnumAsInt
getset

Choose whether to print enum values as integers or as strings.

The full documentation is available in the C API: DDS_PrintFormatProperty::enum_as_int

◆ IncludeRootElements

bool IncludeRootElements
getset

Choose whether or not to include the root elements of the print format in the output string.

The full documentation is available in the C API: DDS_PrintFormatProperty::include_root_elements

◆ Kind

PrintFormatKind Kind
getset

The kind of format to be used when converting a data sample to a string.

The full documentation is available in the C API: DDS_PrintFormatProperty::kind

◆ PrettyPrint

bool PrettyPrint
getset

Choose whether to print a data sample in a more readable format or to eliminate all white space.

The full documentation is available in the C API: DDS_PrintFormatProperty::pretty_print