Skip to content

Commit

Permalink
Refs #20739: Replace tabs with spaces in monitorservice_types.idl
Browse files Browse the repository at this point in the history
Signed-off-by: Mario Dominguez <[email protected]>
  • Loading branch information
Mario-DL committed Apr 4, 2024
1 parent ae5d33e commit d493ab0
Showing 1 changed file with 93 additions and 93 deletions.
186 changes: 93 additions & 93 deletions include/fastdds/statistics/monitorservice_types.idl
Original file line number Diff line number Diff line change
Expand Up @@ -22,99 +22,99 @@ module eprosima {
module fastdds {
module statistics {

enum ConnectionMode
{
DATA_SHARING,
INTRAPROCESS,
TRANSPORT
};

struct Connection
{
ConnectionMode mode;
detail::GUID_s guid;
sequence<detail::Locator_s> announced_locators;
sequence<detail::Locator_s> used_locators;
};

struct QosPolicyCount_s
{
unsigned long policy_id;
unsigned long count;
};

struct BaseStatus_s
{
unsigned long total_count;
};

typedef sequence<QosPolicyCount_s> QosPolicyCountSeq_s;

struct IncompatibleQoSStatus_s
{
unsigned long total_count;
unsigned long last_policy_id;
QosPolicyCountSeq_s policies;
};

struct LivelinessChangedStatus_s
{
unsigned long alive_count;
unsigned long not_alive_count;
octet last_publication_handle[16];
};

struct DeadlineMissedStatus_s
{
unsigned long total_count;
octet last_instance_handle[16];
};

typedef BaseStatus_s LivelinessLostStatus_s;
typedef BaseStatus_s InconsistentTopicStatus_s;
typedef BaseStatus_s SampleLostStatus_s;

enum StatusKind
{
PROXY,
CONNECTION_LIST,
INCOMPATIBLE_QOS,
INCONSISTENT_TOPIC,
LIVELINESS_LOST,
LIVELINESS_CHANGED,
DEADLINE_MISSED,
SAMPLE_LOST,
STATUSES_SIZE
};

union MonitorServiceData switch(StatusKind)
{
case PROXY:
sequence<octet> entity_proxy;
case CONNECTION_LIST:
sequence<Connection> connection_list;
case INCOMPATIBLE_QOS:
IncompatibleQoSStatus_s incompatible_qos_status;
case INCONSISTENT_TOPIC:
InconsistentTopicStatus_s inconsistent_topic_status;
case LIVELINESS_LOST:
LivelinessLostStatus_s liveliness_lost_status;
case LIVELINESS_CHANGED:
LivelinessChangedStatus_s liveliness_changed_status;
case DEADLINE_MISSED:
DeadlineMissedStatus_s deadline_missed_status;
case SAMPLE_LOST:
SampleLostStatus_s sample_lost_status;
case STATUSES_SIZE:
octet statuses_size;
};

struct MonitorServiceStatusData
{
@Key detail::GUID_s local_entity;
@Key StatusKind status_kind;
MonitorServiceData value;
};
enum ConnectionMode
{
DATA_SHARING,
INTRAPROCESS,
TRANSPORT
};

struct Connection
{
ConnectionMode mode;
detail::GUID_s guid;
sequence<detail::Locator_s> announced_locators;
sequence<detail::Locator_s> used_locators;
};

struct QosPolicyCount_s
{
unsigned long policy_id;
unsigned long count;
};

struct BaseStatus_s
{
unsigned long total_count;
};

typedef sequence<QosPolicyCount_s> QosPolicyCountSeq_s;

struct IncompatibleQoSStatus_s
{
unsigned long total_count;
unsigned long last_policy_id;
QosPolicyCountSeq_s policies;
};

struct LivelinessChangedStatus_s
{
unsigned long alive_count;
unsigned long not_alive_count;
octet last_publication_handle[16];
};

struct DeadlineMissedStatus_s
{
unsigned long total_count;
octet last_instance_handle[16];
};

typedef BaseStatus_s LivelinessLostStatus_s;
typedef BaseStatus_s InconsistentTopicStatus_s;
typedef BaseStatus_s SampleLostStatus_s;

enum StatusKind
{
PROXY,
CONNECTION_LIST,
INCOMPATIBLE_QOS,
INCONSISTENT_TOPIC,
LIVELINESS_LOST,
LIVELINESS_CHANGED,
DEADLINE_MISSED,
SAMPLE_LOST,
STATUSES_SIZE
};

union MonitorServiceData switch(StatusKind)
{
case PROXY:
sequence<octet> entity_proxy;
case CONNECTION_LIST:
sequence<Connection> connection_list;
case INCOMPATIBLE_QOS:
IncompatibleQoSStatus_s incompatible_qos_status;
case INCONSISTENT_TOPIC:
InconsistentTopicStatus_s inconsistent_topic_status;
case LIVELINESS_LOST:
LivelinessLostStatus_s liveliness_lost_status;
case LIVELINESS_CHANGED:
LivelinessChangedStatus_s liveliness_changed_status;
case DEADLINE_MISSED:
DeadlineMissedStatus_s deadline_missed_status;
case SAMPLE_LOST:
SampleLostStatus_s sample_lost_status;
case STATUSES_SIZE:
octet statuses_size;
};

struct MonitorServiceStatusData
{
@Key detail::GUID_s local_entity;
@Key StatusKind status_kind;
MonitorServiceData value;
};

}; // namespace statisitcs
}; // namespace fastdds
Expand Down

0 comments on commit d493ab0

Please sign in to comment.