RTI Connext C# API
6.1.0
|
A factory for creating DynamicTypes. More...
Inherits IDisposable.
Inherited by MonotonicDynamicTypeFactory.
Classes | |
struct | WideCharType |
An empty struct used only as a type argument to GetPrimitiveType<T> to disambiguate between IDL char (UTF-8 character) and IDL wchar (UTF-16 character). More... | |
Public Member Functions | |
PrimitiveType< T > | GetPrimitiveType< T > () |
Gets the DynamicType that represents a primitive type. More... | |
DynamicType | GetPrimitiveType (TypeKind primitiveKind) |
Gets the DynamicType that represents a primitive type. More... | |
StructBuilder | BuildStruct () |
Returns a StructBuilder that allows creating an StructType. More... | |
StructBuilder | BuildStruct (StructType structType) |
Returns a builder that allows creating a new StructType from an existing StructType. More... | |
UnionBuilder | BuildUnion () |
Returns a UnionBuilder that allows creating an UnionType. More... | |
UnionBuilder | BuildUnion (UnionType unionType) |
Returns a builder that allows creating a new UnionType from an existing UnionType. More... | |
EnumBuilder | BuildEnum () |
Returns an EnumBuilder that allows creating an EnumType. More... | |
EnumBuilder | BuildEnum (EnumType enumType) |
Returns a builder that allows creating a new EnumType from an existing EnumType. More... | |
virtual StringType | CreateString (uint bounds=StringType.Unbounded) |
Creates a StringType with the given bounds. More... | |
virtual WideStringType | CreateWideString (uint bounds=WideStringType.Unbounded) |
Creates a WideStringType with the given bounds. More... | |
virtual SequenceType | CreateSequence (DynamicType elementType, uint bounds=uint.MaxValue) |
Creates a SequenceType of a certain type and bounds. More... | |
ArrayType | CreateArray (DynamicType elementType, uint singleDimension) |
Creates a single-dimension ArrayType of a certain type and size. More... | |
virtual ArrayType | CreateArray (DynamicType elementType, IEnumerable< uint > dimensions) |
Creates an ArrayType of a certain type and specified dimensions. More... | |
virtual AliasType | CreateAlias (string name, DynamicType relatedType, bool isExternal=false) |
Creates an AliasType. More... | |
virtual void | Dispose () |
Disposes the DynamicTypeFactory. More... | |
Properties | |
static DynamicTypeFactory | Instance [get] |
A singleton for the factory. More... | |
A factory for creating DynamicTypes.
The full documentation is available in the C API: DDS_TypeCodeFactory
EnumBuilder BuildEnum | ( | ) |
Returns an EnumBuilder that allows creating an EnumType.
EnumBuilder BuildEnum | ( | EnumType | enumType | ) |
StructBuilder BuildStruct | ( | ) |
Returns a StructBuilder that allows creating an StructType.
StructBuilder BuildStruct | ( | StructType | structType | ) |
Returns a builder that allows creating a new StructType from an existing StructType.
structType | The type to duplicate |
UnionBuilder BuildUnion | ( | ) |
Returns a UnionBuilder that allows creating an UnionType.
UnionBuilder BuildUnion | ( | UnionType | unionType | ) |
|
virtual |
Creates an AliasType.
name | The type name |
relatedType | The aliased type |
isExternal | Whether the aliased type is external |
|
virtual |
Creates an ArrayType of a certain type and specified dimensions.
elementType | The DynamicType of the elements contained in the array. |
dimensions | Size for each of the dimensions in the array. |
ArrayType CreateArray | ( | DynamicType | elementType, |
uint | singleDimension | ||
) |
Creates a single-dimension ArrayType of a certain type and size.
elementType | The DynamicType of the elements contained in the array. |
singleDimension | The size of the array. |
|
virtual |
Creates a SequenceType of a certain type and bounds.
elementType | The DynamicType of the elements contained in the sequence. |
bounds | The bounds for a sequence SequenceType.Bounds. For unlimited bounds, use SequenceType.Unbounded. |
|
virtual |
Creates a StringType with the given bounds.
bounds | The bounds for a string StringType.Bounds. For unlimited bounds, use StringType.Unbounded. |
|
virtual |
Creates a WideStringType with the given bounds.
bounds | The bounds for a wide string WideStringType.Bounds. For unlimited bounds, use WideStringType.Unbounded. |
|
virtual |
Disposes the DynamicTypeFactory.
Note: it is not necessary to manually dispose this object.
DynamicType GetPrimitiveType | ( | TypeKind | primitiveKind | ) |
Gets the DynamicType that represents a primitive type.
primitiveKind | A type kind represneting a primitive type, such as TypeKind.Int32. |
ArgumentException | When primitiveKind is not a primitive TypeKind |
PrimitiveType<T> GetPrimitiveType< T > | ( | ) |
Gets the DynamicType that represents a primitive type.
T | The primitive type to obtain, such as int |
See also GetPrimitiveType(TypeKind)
ArgumentException | When T is not a valid primitive type. |
|
staticget |
A singleton for the factory.