Static Public Member Functions | |
static DDS_ReturnCode_t | register_type (DDSDomainParticipant *participant, const char *type_name="DDS::Octets") |
Allows an application to communicate to RTI Data Distribution Service the existence of the DDS_Octets data type. | |
static DDS_ReturnCode_t | unregister_type (DDSDomainParticipant *participant, const char *type_name="DDS::Octets") |
Allows an application to unregister the DDS_Octets data type from RTI Data Distribution Service. After calling unregister_type, no further communication using this type is possible. | |
static const char * | get_type_name () |
Get the default name for the DDS_Octets type. | |
static void | print_data (const DDS_Octets *a_data) |
<<eXtension>> Print value of data type to standard out. |
static DDS_ReturnCode_t DDSOctetsTypeSupport::register_type | ( | DDSDomainParticipant * | participant, | |
const char * | type_name = "DDS::Octets" | |||
) | [static] |
Allows an application to communicate to RTI Data Distribution Service the existence of the DDS_Octets data type.
By default, The DDS_Octets built-in type is automatically registered when a DomainParticipant is created using the type_name returned by DDSOctetsTypeSupport::get_type_name. Therefore, the usage of this function is optional and it is only required when the automatic built-in type registration is disabled using the participant property "dds.builtin_type.auto_register".
This method can also be used to register the same DDSOctetsTypeSupport with a DDSDomainParticipant using different values for the type_name.
If register_type
is called multiple times with the same DDSDomainParticipant and type_name
, the second (and subsequent) registrations are ignored by the operation.
participant | <<in>> the DDSDomainParticipant to register the data type DDS_Octets with. Cannot be NULL. | |
type_name | <<in>> the type name under with the data type DDS_Octets is registered with the participant; this type name is used when creating a new DDSTopic. (See DDSDomainParticipant::create_topic.) The name may not be NULL or longer than 255 characters. |
static DDS_ReturnCode_t DDSOctetsTypeSupport::unregister_type | ( | DDSDomainParticipant * | participant, | |
const char * | type_name = "DDS::Octets" | |||
) | [static] |
Allows an application to unregister the DDS_Octets data type from RTI Data Distribution Service. After calling unregister_type, no further communication using this type is possible.
type_name
is registered with the participant and all DDSTopic objects referencing the type have been destroyed. If the type is not registered with the participant, or if any DDSTopic is associated with the type, the operation will fail with DDS_RETCODE_ERROR. participant | <<in>> the DDSDomainParticipant to unregister the data type DDS_Octets from. Cannot be NULL. | |
type_name | <<in>> the type name under with the data type DDS_Octets is registered with the participant. The name should match a name that has been previously used to register a type with the participant. Cannot be NULL. |
static const char* DDSOctetsTypeSupport::get_type_name | ( | ) | [static] |
Get the default name for the DDS_Octets type.
Can be used for calling DDSOctetsTypeSupport::register_type or creating DDSTopic.
static void DDSOctetsTypeSupport::print_data | ( | const DDS_Octets * | a_data | ) | [static] |
<<eXtension>> Print value of data type to standard out.
The generated implementation of the operation knows how to print value of a data type.
a_data | <<in>> DDS_Octets to be printed. |