CoreDX Data Distribution Service
The High Performance, Small Footprint DDS from Twin Oaks Computing, Inc
|
A DynamicTypeBuilder object represents the state of a particular type defined according to the Type System. It is used to instantiate concrete DynamicType objects. More...
Inherits DDS.DynamicTypeBuilder.
Public Member Functions | |
ReturnCode_t | get_descriptor (DDS.TypeDescriptorHolder descriptor) |
This operation provides a summary of the state of this type. More... | |
String | get_name () |
This convenience operation provides the fully qualified name of this type. I. More... | |
short | get_kind () |
This convenience operation indicates the kind of this type (e.g., integer, structure, etc.). More... | |
ReturnCode_t | get_member_by_name (DDS.DynamicTypeMemberHolder member, String name) |
This operation accesses a member by name. More... | |
ReturnCode_t | get_all_members_by_name (DDS.DynamicTypeMembersByNameHolder member) |
This operation provides access to the 'members_by_name' map. More... | |
ReturnCode_t | get_member (DDS.DynamicTypeMemberHolder member, int id) |
This operation accesses a member by id. More... | |
ReturnCode_t | get_all_members (DDS.DynamicTypeMembersByIdHolder member) |
This operation provides access to the 'members_by_id' map. More... | |
int | get_annotation_count () |
Return the number of annotations applied to this type. More... | |
ReturnCode_t | get_annotation (DDS.AnnotationDescriptorHolder descriptor, int idx) |
Access an annotation at the specified index. On success, the 'descriptor' parameter is set to the annotation. More... | |
boolean | equals (DDS.DynamicType other) |
Two types shall be considered equal if and only if all of their respective properties are equal. More... | |
ReturnCode_t | add_member (DDS.MemberDescriptor descriptor) |
Add a member to the type. More... | |
ReturnCode_t | apply_annotation (DDS.AnnotationDescriptor descriptor) |
Apply the given annotation to this type. More... | |
ReturnCode_t | apply_annotation_to_member (int member_id, DDS.AnnotationDescriptor descriptor) |
Apply the given annotation to the specified member of the type of DynamicTypeBuilder. More... | |
DynamicType | build () |
Create an immutable DynamicType object defined by the builder's current state. More... | |
A DynamicTypeBuilder object represents the state of a particular type defined according to the Type System. It is used to instantiate concrete DynamicType objects.
ReturnCode_t com.toc.coredx.dynamictype.DynamicTypeBuilder.add_member | ( | DDS.MemberDescriptor | descriptor | ) |
Add a member to the type.
RETCODE_PRECONDITION_NOT_MET | if the type does not have members or a member with the same id already exists |
RETCODE_BAD_PARAMETER | in the case of an invalid parameter |
RETCODE_OUT_OF_RESOURCES | in the case of a memory shortage |
RETCODE_OK | on success |
ReturnCode_t com.toc.coredx.dynamictype.DynamicTypeBuilder.apply_annotation | ( | DDS.AnnotationDescriptor | descriptor | ) |
Apply the given annotation to this type.
Parameter descriptor - A consistent descriptor for the annotation to apply.
RETCODE_BAD_PARAMETER | If this 'descriptor' parameter is not consistent |
ReturnCode_t com.toc.coredx.dynamictype.DynamicTypeBuilder.apply_annotation_to_member | ( | int | member_id, |
DDS.AnnotationDescriptor | descriptor | ||
) |
Apply the given annotation to the specified member of the type of DynamicTypeBuilder.
Parameter member_id - The id of the member to manipulate. Parameter descriptor - A consistent descriptor of the annotation to apply.
RETCODE_BAD_PARAMETER | If this 'descriptor' parameter is not consistent |
DDS_RETCODE_BAD_PARAMETER | If member_id does not identify a member in 'dtb' |
DynamicType com.toc.coredx.dynamictype.DynamicTypeBuilder.build | ( | ) |
Create an immutable DynamicType object defined by the builder's current state.
Subsequent changes to this builder, if any, shall have no effect on the state of any previously created DynamicType.
nil | in the case of an error |
boolean com.toc.coredx.dynamictype.DynamicTypeBuilder.equals | ( | DDS.DynamicType | other | ) |
Two types shall be considered equal if and only if all of their respective properties are equal.
zero | if not equal |
non-zero | if equal |
ReturnCode_t com.toc.coredx.dynamictype.DynamicTypeBuilder.get_all_members | ( | DDS.DynamicTypeMembersByIdHolder | member | ) |
This operation provides access to the 'members_by_id' map.
RETCODE_PRECONDITION_NOT_MET | if the type does not have members |
RETCODE_BAD_PARAMETER | in the case of an invalid parameter |
DDRETCODE_OK | on success |
ReturnCode_t com.toc.coredx.dynamictype.DynamicTypeBuilder.get_all_members_by_name | ( | DDS.DynamicTypeMembersByNameHolder | member | ) |
This operation provides access to the 'members_by_name' map.
RETCODE_PRECONDITION_NOT_MET | if the type does not have members |
RETCODE_BAD_PARAMETER | in the case of an invalid parameter |
RETCODE_OK | on success |
ReturnCode_t com.toc.coredx.dynamictype.DynamicTypeBuilder.get_annotation | ( | DDS.AnnotationDescriptorHolder | descriptor, |
int | idx | ||
) |
Access an annotation at the specified index. On success, the 'descriptor' parameter is set to the annotation.
int com.toc.coredx.dynamictype.DynamicTypeBuilder.get_annotation_count | ( | ) |
Return the number of annotations applied to this type.
uint | the number of annotations |
ReturnCode_t com.toc.coredx.dynamictype.DynamicTypeBuilder.get_descriptor | ( | DDS.TypeDescriptorHolder | descriptor | ) |
This operation provides a summary of the state of this type.
It overwrites the state of the application-provided 'descriptor' object.
RETCODE_BAD_PARAMETER | if the descriptor parameter is invalid |
RETCODE_OK | on success |
short com.toc.coredx.dynamictype.DynamicTypeBuilder.get_kind | ( | ) |
This convenience operation indicates the kind of this type (e.g., integer, structure, etc.).
Its result shall be the same as the kind indicated by the type’s descriptor property.
ReturnCode_t com.toc.coredx.dynamictype.DynamicTypeBuilder.get_member | ( | DDS.DynamicTypeMemberHolder | member, |
int | id | ||
) |
This operation accesses a member by id.
Several types are considered to have 'members"
On success, the 'member' parameter is set to the member that has a matching member id.
RETCODE_PRECONDITION_NOT_MET | if the type does not have members |
RETCODE_BAD_PARAMETER | in the case of an invalid parameter |
RETCODE_ERROR | if the member id is not present in the type |
RETCODE_OK | on success |
ReturnCode_t com.toc.coredx.dynamictype.DynamicTypeBuilder.get_member_by_name | ( | DDS.DynamicTypeMemberHolder | member, |
String | name | ||
) |
This operation accesses a member by name.
Several types are considered to have 'members"
On success, the 'member' parameter is set to the named member.
RETCODE_PRECONDITION_NOT_MET | if the type does not have members |
RETCODE_BAD_PARAMETER | in the case of an invalid parameter |
RETCODE_ERROR | if the named member is not present in the type |
RETCODE_OK | on success |
String com.toc.coredx.dynamictype.DynamicTypeBuilder.get_name | ( | ) |
This convenience operation provides the fully qualified name of this type. I.
t shall be identical to the name string that is a member of the descriptor property.