RTI Routing Service
Version 5.3.0
|
This module contains common definitions such as stream info and type info. More...
Modules | |
Standard Error Codes | |
Standard error codes. | |
Standard Type Representation Kinds | |
Standard type Representation kinds. | |
Standard Data Representation Kinds | |
Standard data representation kinds. | |
Data Structures | |
struct | RTI_RoutingServiceNameValue |
Configuration property. More... | |
struct | RTI_RoutingServiceProperties |
Set of configuration properties. More... | |
struct | RTI_RoutingServiceVersion |
Represents the version of a plugin or RTI Routing Service itself. More... | |
struct | RTI_RoutingServiceTypeInfo |
Type information. More... | |
struct | RTI_RoutingServiceStringSeq |
Definition of a String sequence. More... | |
struct | RTI_RoutingServiceStreamInfo |
Stream information. More... | |
Macros | |
#define | RTI_ROUTING_SERVICE_ERROR_MAX_LENGTH 1024 |
Maximum length of an error message. | |
Typedefs | |
typedef struct RTI_RoutingServiceEnvironmentImpl | RTI_RoutingServiceEnvironment |
The environment permits the return of error information in the RTI Routing Service API and information retreival (version and verbosity). | |
typedef int | RTI_RoutingServiceTypeRepresentationKind |
Type representation kind. | |
typedef void * | RTI_RoutingServiceTypeRepresentation |
Type representation. | |
typedef int | RTI_RoutingServiceDataRepresentationKind |
Data representation kind. | |
typedef void * | RTI_RoutingServiceSample |
Stream sample. | |
typedef void * | RTI_RoutingServiceSampleInfo |
Stream sample info. | |
Enumerations | |
enum | RTI_RoutingServiceVerbosity { RTI_ROUTING_SERVICE_VERBOSITY_NONE = 0, RTI_ROUTING_SERVICE_VERBOSITY_EXCEPTION, RTI_ROUTING_SERVICE_VERBOSITY_WARN, RTI_ROUTING_SERVICE_VERBOSITY_INFO, RTI_ROUTING_SERVICE_VERBOSITY_DEBUG } |
Verbosity used by Routing Service. More... | |
Functions | |
const char * | RTI_RoutingServiceProperties_lookup_property (const struct RTI_RoutingServiceProperties *self, const char *name) |
Searches for a property given its name. | |
void | RTI_RoutingServiceEnvironment_set_error_w_params (RTI_RoutingServiceEnvironment *self, int overwrite, int error_code, int native_error_code, const char *error_format,...) |
Assigns an error into the environment. | |
void | RTI_RoutingServiceEnvironment_set_error (RTI_RoutingServiceEnvironment *self, const char *error_format,...) |
Assigns an error into the environment. | |
void | RTI_RoutingServiceEnvironment_clear_error (RTI_RoutingServiceEnvironment *self) |
Clears an error (if any) set in this environment. | |
RTI_RoutingServiceVerbosity | RTI_RoutingServiceEnvironment_get_verbosity (const RTI_RoutingServiceEnvironment *self) |
Retrieves the verbosity that Routing Service is using. | |
void | RTI_RoutingServiceEnvironment_get_version (const RTI_RoutingServiceEnvironment *self, struct RTI_RoutingServiceVersion *version) |
Retrieves the Routing Service version. | |
int | RTI_RoutingServiceEnvironment_error_occurred (const RTI_RoutingServiceEnvironment *self) |
Checks whether an error has been set in this environment. | |
const char * | RTI_RoutingServiceEnvironment_get_error_message (const RTI_RoutingServiceEnvironment *self) |
Returns the error message this environment contains. | |
struct RTI_RoutingServiceStreamInfo * | RTI_RoutingServiceStreamInfo_new_discovered (const char *stream_name, const char *registered_type_name, RTI_RoutingServiceTypeRepresentationKind type_representation_kind, RTI_RoutingServiceTypeRepresentation type_representation) |
Creates a stream info for a newly discovered stream. | |
struct RTI_RoutingServiceStreamInfo * | RTI_RoutingServiceStreamInfo_new_disposed (const char *stream_name) |
Creates a stream info for a disposed stream. | |
void | RTI_RoutingServiceStreamInfo_delete (struct RTI_RoutingServiceStreamInfo *self) |
Destroys a stream info. | |
This module contains common definitions such as stream info and type info.
#define RTI_ROUTING_SERVICE_ERROR_MAX_LENGTH 1024 |
Maximum length of an error message.
Error messages longer than this value are truncated.
typedef struct RTI_RoutingServiceEnvironmentImpl RTI_RoutingServiceEnvironment |
The environment permits the return of error information in the RTI Routing Service API and information retreival (version and verbosity).
This is the last parameter of each operation.
typedef int RTI_RoutingServiceTypeRepresentationKind |
Type representation kind.
The range [0-100] is reserved for RTI use. Within that range are some predefined type representations (Standard Type Representation Kinds).
typedef void* RTI_RoutingServiceTypeRepresentation |
Type representation.
If the representation kind is RTI_ROUTING_SERVICE_TYPE_REPRESENTATION_DYNAMIC_TYPE, the representation will be an RTI Connext TypeCode.
If the representation kind is RTI_ROUTING_SERVICE_TYPE_REPRESENTATION_XML, the representation will be an XML string.
typedef int RTI_RoutingServiceDataRepresentationKind |
Data representation kind.
The range [0-100] is reserved for RTI use. Within that range are some predefined data representations (Standard Data Representation Kinds).
typedef void* RTI_RoutingServiceSample |
Stream sample.
Samples are data messages generated by adapters and transformations.
If the representation kind is RTI_ROUTING_SERVICE_DATA_REPRESENTATION_DYNAMIC_DATA, the sample will be a DynamicData object.
If the representation kind is RTI_ROUTING_SERVICE_DATA_REPRESENTATION_XML, the sample will be an XML string.
typedef void* RTI_RoutingServiceSampleInfo |
Stream sample info.
In DDS, this is a DDS_SampleInfo object.
Verbosity used by Routing Service.
const char* RTI_RoutingServiceProperties_lookup_property | ( | const struct RTI_RoutingServiceProperties * | self, |
const char * | name | ||
) |
Searches for a property given its name.
self | <<in>> Cannot be NULL. |
name | <<in>> Property name. Cannot be NULL. |
void RTI_RoutingServiceEnvironment_set_error_w_params | ( | RTI_RoutingServiceEnvironment * | self, |
int | overwrite, | ||
int | error_code, | ||
int | native_error_code, | ||
const char * | error_format, | ||
... | |||
) |
Assigns an error into the environment.
Routing Service will consider that a function call failed when an error has been set into the environment
self | <<in>> Cannot be NULL. |
overwrite | <<in>> If the environment already contains an error, setting this parameter to 1 will overwrite it. |
error_code | <<in>> One of the Standard Error Codes. |
native_error_code | <<in>> Native error code (specific to the transformation or adapter plugin). |
error_format | <<in>> String that contains the error text. It can optionally contain format tags that are substituted by the values specified in subsequent argument(s). Cannot be NULL. The format tags are the same tags used by the function printf in the ANSI C standard. |
void RTI_RoutingServiceEnvironment_set_error | ( | RTI_RoutingServiceEnvironment * | self, |
const char * | error_format, | ||
... | |||
) |
Assigns an error into the environment.
Routing Service will consider that a function call failed when an error has been set into the environment
This function sets the error code to RTI_ROUTING_SERVICE_ERROR and the native error code to 0.
If the environment already contains an error, the error is not overwritten.
self | <<in>> Cannot be NULL. |
error_format | <<in>> String that contains the error text. It can optionally contain format tags that are substituted by the values specified in subsequent argument(s). Cannot be NULL. The format tags are the same tags used by the function printf in the ANSI C standard. |
void RTI_RoutingServiceEnvironment_clear_error | ( | RTI_RoutingServiceEnvironment * | self | ) |
Clears an error (if any) set in this environment.
self | <<in>> Cannot be NULL. |
RTI_RoutingServiceVerbosity RTI_RoutingServiceEnvironment_get_verbosity | ( | const RTI_RoutingServiceEnvironment * | self | ) |
Retrieves the verbosity that Routing Service is using.
self | <<in>> Cannot be NULL. |
void RTI_RoutingServiceEnvironment_get_version | ( | const RTI_RoutingServiceEnvironment * | self, |
struct RTI_RoutingServiceVersion * | version | ||
) |
Retrieves the Routing Service version.
self | <<in>> Cannot be NULL. |
version | A container to copy the version |
int RTI_RoutingServiceEnvironment_error_occurred | ( | const RTI_RoutingServiceEnvironment * | self | ) |
Checks whether an error has been set in this environment.
self | <<in>> Cannot be NULL. |
const char* RTI_RoutingServiceEnvironment_get_error_message | ( | const RTI_RoutingServiceEnvironment * | self | ) |
Returns the error message this environment contains.
self | <<in>> Cannot be NULL. The error message or NULL if no error is set |
|
read |
Creates a stream info for a newly discovered stream.
stream_name | <<in>> Stream name. Cannot be NULL. |
registered_type_name | <<in>> Type name. Cannot be NULL. |
type_representation_kind | <<in>> Type representation kind. |
type_representation | <<in>> Type representation. Cannot be NULL. |
|
read |
Creates a stream info for a disposed stream.
Disposed streams are no longer available in a data domain.
stream_name | <<in>> Stream name. Cannot be NULL. |
void RTI_RoutingServiceStreamInfo_delete | ( | struct RTI_RoutingServiceStreamInfo * | self | ) |
Destroys a stream info.
self | <<in>> Cannot be NULL. |