blob: 45a19c666d68045b4ee7b9475b9d8474ba001383 (
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
40
41
42
43
44
45
46
47
48
49
|
/**
* @file Throughput_Base.idl
* @author Marijke Hengstmengel (mhengstmengel@remedy.nl)
*/
#ifndef THROUGHPUT_BASE_IDL
#define THROUGHPUT_BASE_IDL
#pragma ndds typesupport "Base/Throughput_BaseSupport.h"
#pragma opendds typesupport "Base/Throughput_BaseTypeSupportImpl.h"
const short MAX_DATA_SEQUENCE_LENGTH = 8192;
typedef enum ThroughputCommandKind
{
THROUGHPUT_COMMAND_IDLE,
THROUGHPUT_COMMAND_START,
THROUGHPUT_COMMAND_COMPLETE
} CommandKind;
typedef sequence<octet, MAX_DATA_SEQUENCE_LENGTH> OctetSeq;
#pragma DCPS_DATA_TYPE "ThroughputTest"
struct ThroughputTest {
long key;
unsigned long long seq_num;
OctetSeq data;
};
#if defined DDS4CCM_NEEDS_SEQUENCES_DEFINED
typedef sequence<ThroughputTest> ThroughputTestSeq;
#endif
#pragma DCPS_DATA_TYPE "ThroughputCommand"
struct ThroughputCommand
{
CommandKind command;
unsigned long data_length;
unsigned long long current_publisher_effort;
unsigned long long final_publisher_effort;
};
#if defined DDS4CCM_NEEDS_SEQUENCES_DEFINED
typedef sequence<ThroughputCommand> ThroughputCommandSeq;
#endif
#endif
|