blob: b2fc8c73ad356b0ffa03e79656eabbdcdf254fdd (
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
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
|
// $Id$
/**
* @file VTopics_Base.idl
* @author Marijke Hengstmengel <mhengstmengel@remedy.nl>
*/
#ifndef VTOPICS_BASE_IDL
#define VTOPICS_BASE_IDL
#pragma ndds typesupport "Base/VTopics_BaseSupport.h"
typedef octet octet_array[5];
// Plain Topic
struct TestTopic {
string key; //@key
long x;
};
// String
struct TopicString {
string key; //@key
string x_str;
};
// Arrays
struct TopicArray {
string key; //@key
octet_array x_array;
};
// Unions
union X_Union switch (short) {
case 0:
string x_test;
case 1:
long x_long;
};
struct TopicUnion {
string key; //@key
X_Union x_uni;
};
// Sequence
struct test {
short x_test;
string x_teststr;
};
typedef sequence<test> testSeq;
struct TopicSeq {
string key; //@key
testSeq x_seq;
};
// ValueType
valuetype X_Valuetype {
public string type;
public long x_long;
};
struct TopicValuetype {
string key; //@key
X_Valuetype x_vt;
};
// Sequences
typedef sequence<TestTopic> TestTopicSeq;
typedef sequence<TopicString> TopicStringSeq;
typedef sequence<TopicArray> TopicArraySeq;
typedef sequence<TopicUnion> TopicUnionSeq;
typedef sequence<X_Union> X_UnionSeq;
typedef sequence<TopicSeq> TopicSeqSeq;
typedef sequence<TopicValuetype> TopicValuetypeSeq;
typedef sequence<X_Valuetype> X_ValuetypeSeq;
#endif
|