summaryrefslogtreecommitdiff
path: root/CIAO/connectors/dds4ccm/performance-tests/Keyed/Base/Perf_Keyed_Test_Base.idl
blob: e49e32c985ff5b971ce81044a7afe459e1f2c315 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
// $Id$

/**
 * @file Perf_Keyed_Test_Base.idl
 * @author Marijke Hengstmengel (mhengstmengel@remedy.nl)
 */

#ifndef PERF_KEYED_TEST_BASE_IDL
#define PERF_KEYED_TEST_BASE_IDL

#pragma ndds typesupport "Base/Perf_Keyed_Test_BaseSupport.h"
#pragma opendds typesupport "Base/Perf_Keyed_Test_BaseTypeSupportImpl.h"

/// Flag used to indicate message is used for initialization only
const unsigned long INITIALIZE_SIZE = 1234;

/// Flag used to indicate end of test
const unsigned long FINISHED_SIZE = 1235;
const unsigned long OVERHEAD_BYTES = 31;

#pragma DCPS_DATA_TYPE "PerfKeyedTest"
#pragma DCPS_DATA_KEY "PerfKeyedTest key"

struct PerfKeyedTest {
  string key; //@key
  long entity_id;  //id of subscriber/publisher
  unsigned long seq_num;
  long latency_ping;
  string bin_data;
  unsigned long data_len;
  unsigned long long nanotime;
};


#if defined DDS4CCM_NEEDS_SEQUENCES_DEFINED
typedef sequence<PerfKeyedTest> PerfKeyedTestSeq;
#endif

#endif