![]() |
OpenSplice C# API
v6.x
OpenSplice C# Data Distribution Service Data-Centric Publish-Subscribe API
|
IMultiTopic is a specialization of ITopicDescription that allows subscriptions to combine, filter and/or rearrange data coming from several Topics. More...
Public Member Functions | |
ReturnCode | GetExpressionParameters (ref string[] expressionParameters) |
ReturnCode | SetExpressionParameters (params string[] expressionParameters) |
Properties | |
string | SubscriptionExpression [get] |
![]() | |
string | Name [get] |
Gets the name of this ITopicDescription. More... | |
IDomainParticipant | Participant [get] |
Gets the IDomainParticipant associated with this ITopicDescription. More... | |
string | TypeName [get] |
Gets the name of the registered data type that is associated with this ITopicDescription. More... | |
IMultiTopic is a specialization of ITopicDescription that allows subscriptions to combine, filter and/or rearrange data coming from several Topics.
IMultiTopic allows a more sophisticated subscription that can select and combine data received from multiple Topics into a single data type (specified by the inherited typeName). The data will then be filtered (selection) and possibly re-arranged (aggregation and/or projection) according to an SQL expression with parameters to adapt the filter clause.
Definition at line 2545 of file DdsDcpsInterfaces.cs.
ReturnCode DDS.IMultiTopic.GetExpressionParameters | ( | ref string [] | expressionParameters | ) |
This operation obtains the expression parameters associated with the IIMultiTopic. That is, the parameters specified on the last successful cal l to SetExpressionParameters, or if SetExpressionParameters was never called, the parameters specified when the MultiTopic was created. The resulting reference holds a sequence of strings with the values of the parameters used in the SQL expression (i.e., the n tokens in the expression). The number of parameters in the result sequence will exactly match the number of n tokens in the filter expression associated with the MultiTopic.
expressionParameters | A sequence of strings with the parameter value used in the SQL expression. |
ReturnCode DDS.IMultiTopic.SetExpressionParameters | ( | params string [] | expressionParameters | ) |
This operation changes the expression parameters associated with the IMultiTopic. The parameter expressionParameters is a handle to a sequence of strings with the parameters used in the SQL expression. The number of parameters in expressionParameters must exactly match the number of n tokens in the subscription expression associated with the IMultiTopic. This is the subscription expression specified when the IMultiTopic was created.
expressionParameters | A sequence of strings with the parameter value used in the SQL expression. |
|
get |
This operation returns the subscription expression associated with the IMultiTopic. That is, the expression specified when the IMultiTopic was created. The subscription expression result is a string that specifies the criteria to select the data samples of interest. In other words, it identifies the selection and rearrangement of data from the associated ITopics. It is an SQL expression where the SELECT clause provides the fields to be kept, the FROM part provides the names of the Topics that are searched for those fields, and the WHERE clause gives the content filter. The ITopics combined may have different types but they are restricted in that the type of the fields used for the NATURAL JOIN operation must be the same
Definition at line 2562 of file DdsDcpsInterfaces.cs.