RTI Connext .Net APIs  Version 5.0.0
RTI.Connext.Infrastructure.Sample< T > Struct Template Reference

A data sample and related info received from the middleware. More...

Properties

SampleInfo Info [get, set]
 Gets or sets the sample information.
 
Data [get, set]
 Gets or sets the data this sample contains.
 
SampleIdentity_t Identity [get]
 Gets the identity of this sample.
 
SampleIdentity_t RelatedIdentity [get]
 Gets the identity of a sample that is related to this one.
 

Detailed Description

A data sample and related info received from the middleware.

Samples contain data received from the middleware and information associated to the data.

Template Parameters
TThe data type that this sample contains
See Also
RTI.Connext.RequestReply::Requester<TReq,TRep>::ReceiveReply(Sample<TRep>,Duration_t)
RTI.Connext.RequestReply::Requester<TReq,TRep>::TakeReply(Sample<TRep>)
RTI.Connext.RequestReply::Replier<TReq,TRep>::ReceiveRequest(Sample<TReq>,Duration_t)

Property Documentation

SampleInfo RTI.Connext.Infrastructure.Sample< T >.Info
getset

Gets or sets the sample information.

See Also
DDS::SampleInfo
Basic Requester example
T RTI.Connext.Infrastructure.Sample< T >.Data
getset

Gets or sets the data this sample contains.

See Also
Basic Requester example
SampleIdentity_t RTI.Connext.Infrastructure.Sample< T >.Identity
get

Gets the identity of this sample.

The identity is assigned by the middleware upon reception.

See Also
Correlating requests and replies
SampleIdentity_t RTI.Connext.Infrastructure.Sample< T >.RelatedIdentity
get

Gets the identity of a sample that is related to this one.

When a RTI.Connext.RequestReply::Requester<TReq,TRep> receives a reply, the reply Sample contains the identity of the related request.

Returns
The identity of another sample that is related to this one, or DDS::SampleIdentity_t::UNKNOWN_SAMPLE_IDENTITY if there is not a related sample.
See Also
RTI.Connext.RequestReply::Requester<TReq,TRep>::ReceiveReply(Sample<TRep>,Duration_t)
Correlating requests and replies

RTI Connext .Net APIs Version 5.0.0 Copyright © Thu Aug 30 2012 Real-Time Innovations, Inc