RTI Connext Java API
Version 6.0.0
|
Policy helpers that facilitate management of the data tags in the input policy. More...
Static Public Member Functions | |
static int | get_number_of_tags (DataTagQosPolicy policy) |
Gets the number of data tags in the input policy. | |
static void | assert_tag (DataTagQosPolicy policy, String name, String value) |
Asserts the tag identified by name in the input policy. | |
static void | add_tag (DataTagQosPolicy policy, String name, String value) |
Adds a new tag to the input policy. | |
static Tag | lookup_tag (DataTagQosPolicy policy, String name) |
Searches by tag name for a tag in the input policy. | |
static void | remove_tag (DataTagQosPolicy policy, String name) |
Removes a tag from the input policy. | |
Policy helpers that facilitate management of the data tags in the input policy.
|
static |
Gets the number of data tags in the input policy.
policy | <<in>> Input policy. |
|
static |
Asserts the tag identified by name in the input policy.
If the tag already exists, this function replaces its current value with the new one.
If the tag identified by name does not exist, this function adds it to the tag set.
This function increases the maximum number of elements of the policy sequence by 10 when this number is not enough to store the new tag.
|
static |
Adds a new tag to the input policy.
This function will allocate memory to store the (name, value) pair. The memory allocated is owned by RTI Connext.
If the maximum number of elements of the policy sequence is not enough to store the new tag, this function will increase it by 10.
If the tag already exists, the function will fail with com.rti.dds.infrastructure.RETCODE_PRECONDITION_NOT_MET.
|
static |
|
static |
Removes a tag from the input policy.
If the tag does not exist, the function fails with com.rti.dds.infrastructure.RETCODE_PRECONDITION_NOT_MET.