|
RTI Connext C# API Version 7.7.0
|
Base class for IDL-generated type support classes. It allows getting the DynamicType that describes the type T.
More...
Public Member Functions | |
| ISerializer< T > | CreateSerializer (short dataRepresentation=Core.Policy.DataRepresentation.Xcdr) |
| Creates an ISerializer that allows serializing and deserializing data as byte arrays. More... | |
| string | ToString (T sample) |
| Converts a data sample into a readable string. More... | |
| string | ToString (T sample, PrintFormatProperty format) |
| Converts a data sample into a string representation such as XML or JSON according to the specified formatting options. More... | |
| T | FromString (string str, PrintFormatKind formatKind=PrintFormatKind.Json) |
| Creates a data sample from a JSON string representation More... | |
| DynamicType | GetDynamicTypeInternal (bool isPublic=true) |
| For internal use only. More... | |
| virtual void | RegisterType (DomainParticipant participant, string typeName) |
| For internal use only. More... | |
| TAttribute | GetAttribute< TAttribute > (string propertyName) |
| Gets an Attribute (such as Omg.Types.KeyAttribute) from a property of this TypeSupport's type, T. More... | |
| virtual void | Dispose () |
| For internal use only. More... | |
Protected Member Functions | |
| TypeSupport (ITypePlugin plugin, Lazy< DynamicType > dynamicTypeConstructor) | |
| For internal use only. More... | |
Properties | |
| DynamicType | DynamicType [get] |
| The DynamicType that describes the IDL type T. More... | |
Properties inherited from Rti.Dds.Topics.ITypeSupport | |
| DynamicType | DynamicType [get] |
| The DynamicType that describes the IDL type. More... | |
Base class for IDL-generated type support classes. It allows getting the DynamicType that describes the type T.
| T | The IDL type managed by this TypeSupport |
|
inlineprotected |
For internal use only.
| ISerializer< T > Rti.Dds.Topics.TypeSupport< T >.CreateSerializer | ( | short | dataRepresentation = Core.Policy.DataRepresentation.Xcdr | ) |
Creates an ISerializer that allows serializing and deserializing data as byte arrays.
| dataRepresentation | The binary format that the serializer will use. The supported options are Core.Policy.DataRepresentation.Xcdr (default) and Core.Policy.DataRepresentation.Xcdr2 |
|
inline |
Converts a data sample into a readable string.
| sample | The data sample to stringify |
|
inline |
Converts a data sample into a string representation such as XML or JSON according to the specified formatting options.
| sample | The data sample to stringify |
| format | The format options |
|
inline |
Creates a data sample from a JSON string representation
| str | The json representation of the data |
| formatKind | The format kind of the string representation (the default and only supported value is PrintFormatKind.Json) |
| DynamicType Rti.Dds.Topics.TypeSupport< T >.GetDynamicTypeInternal | ( | bool | isPublic = true | ) |
For internal use only.
|
virtual |
For internal use only.
|
inline |
Gets an Attribute (such as Omg.Types.KeyAttribute) from a property of this TypeSupport's type, T.
| propertyName | The name of a property of the type T |
| TAttribute | The attribute type such as Omg.Types.KeyAttribute |
| ArgumentException | If the property doesn't exist in this type |
Some IDL annotations are mapped to C# attributes. This helper method can retrieve these attributes using C# reflection.
| TAttribute | : | Attribute |
|
inlinevirtual |
For internal use only.
The DynamicType that describes the IDL type T.
Implements Rti.Dds.Topics.ITypeSupport.