RTI Connext C# API Version 7.2.0
Omg.Dds.Subscription.DataState Class Reference

Information about a sample's SampleState, ViewState, and InstanceState. More...

Inherits IEquatable< DataState >.

Public Member Functions

DataState And (SampleState s)
 Creates a copy of this DataState with a new SampleState. More...
 
DataState And (ViewState s)
 Creates a copy of this DataState with a new ViewState. More...
 
DataState And (InstanceState s)
 Creates a copy of this DataState with a new InstanceState. More...
 
void Deconstruct (out SampleState sample, out ViewState view, out InstanceState instance)
 Deconstruct operation that allows unpacking a DataState into its three values: SampleState, ViewState and InstanceState. More...
 
bool Equals (DataState other)
 Equality comparison More...
 
override bool Equals (object obj)
 Equality comparison More...
 
override int GetHashCode ()
 Get the hash code More...
 
override string ToString ()
 Print the three states More...
 

Static Public Member Functions

static DataState With (SampleState s)
 Creates a DataState with a specific SampleState. More...
 
static DataState With (ViewState s)
 Creates a DataState with a specific ViewState More...
 
static DataState With (InstanceState s)
 Creates a DataState with a specific InstanceState. More...
 
static DataState With (SampleState sample=SampleState.Any, ViewState view=ViewState.Any, InstanceState instance=InstanceState.Any)
 Creates a DataState with specific SampleState, ViewState, and InstanceState. More...
 
static implicit operator DataState (SampleState s)
 Implicit conversion from SampleState to DataState. More...
 
static implicit operator DataState (ViewState s)
 Implicit conversion from ViewState to DataState. More...
 
static implicit operator DataState (InstanceState s)
 Implicit conversion from InstanceState to DataState. More...
 
static implicit operator DataState ((SampleState sample, ViewState view, InstanceState instance) tuple)
 Implicit conversion from a tuple with the three states. More...
 

Properties

SampleState Sample = SampleState.Any [get]
 Gets the SampleState More...
 
ViewState View = ViewState.Any [get]
 Gets the ViewState. More...
 
InstanceState Instance = InstanceState.Any [get]
 Gets the InstanceState. More...
 
static DataState Any = new DataState() [get]
 A constant representing any sample, view or instance states. More...
 

Detailed Description

Information about a sample's SampleState, ViewState, and InstanceState.

Member Function Documentation

◆ With() [1/4]

static DataState Omg.Dds.Subscription.DataState.With ( SampleState  s)
static

Creates a DataState with a specific SampleState.

◆ With() [2/4]

static DataState Omg.Dds.Subscription.DataState.With ( ViewState  s)
static

Creates a DataState with a specific ViewState

◆ With() [3/4]

static DataState Omg.Dds.Subscription.DataState.With ( InstanceState  s)
static

Creates a DataState with a specific InstanceState.

◆ With() [4/4]

static DataState Omg.Dds.Subscription.DataState.With ( SampleState  sample = SampleState.Any,
ViewState  view = ViewState.Any,
InstanceState  instance = InstanceState.Any 
)
static

Creates a DataState with specific SampleState, ViewState, and InstanceState.

◆ And() [1/3]

DataState Omg.Dds.Subscription.DataState.And ( SampleState  s)

Creates a copy of this DataState with a new SampleState.

◆ And() [2/3]

DataState Omg.Dds.Subscription.DataState.And ( ViewState  s)

Creates a copy of this DataState with a new ViewState.

◆ And() [3/3]

DataState Omg.Dds.Subscription.DataState.And ( InstanceState  s)

Creates a copy of this DataState with a new InstanceState.

◆ operator DataState() [1/4]

static implicit Omg.Dds.Subscription.DataState.operator DataState ( SampleState  s)
static

Implicit conversion from SampleState to DataState.

◆ operator DataState() [2/4]

static implicit Omg.Dds.Subscription.DataState.operator DataState ( ViewState  s)
static

Implicit conversion from ViewState to DataState.

◆ operator DataState() [3/4]

static implicit Omg.Dds.Subscription.DataState.operator DataState ( InstanceState  s)
static

Implicit conversion from InstanceState to DataState.

◆ operator DataState() [4/4]

static implicit Omg.Dds.Subscription.DataState.operator DataState ( (SampleState sample, ViewState view, InstanceState instance)  tuple)
static

Implicit conversion from a tuple with the three states.

◆ Deconstruct()

void Omg.Dds.Subscription.DataState.Deconstruct ( out SampleState  sample,
out ViewState  view,
out InstanceState  instance 
)

Deconstruct operation that allows unpacking a DataState into its three values: SampleState, ViewState and InstanceState.

◆ Equals() [1/2]

bool Omg.Dds.Subscription.DataState.Equals ( DataState  other)
inline

Equality comparison

◆ Equals() [2/2]

override bool Omg.Dds.Subscription.DataState.Equals ( object  obj)

Equality comparison

◆ GetHashCode()

override int Omg.Dds.Subscription.DataState.GetHashCode ( )

Get the hash code

◆ ToString()

override string Omg.Dds.Subscription.DataState.ToString ( )

Print the three states

Property Documentation

◆ Sample

SampleState Omg.Dds.Subscription.DataState.Sample = SampleState.Any
get

Gets the SampleState

◆ View

ViewState Omg.Dds.Subscription.DataState.View = ViewState.Any
get

Gets the ViewState.

◆ Instance

InstanceState Omg.Dds.Subscription.DataState.Instance = InstanceState.Any
get

Gets the InstanceState.

◆ Any

DataState Omg.Dds.Subscription.DataState.Any = new DataState()
staticget

A constant representing any sample, view or instance states.