blob: e88f8982ae7db638bbc2588b08ae6f85679d8320 (
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
|
/**
* @file MultiTopic_Base.idl
* @author
*/
#ifndef MULTITOPIC_IDL
#define MULTITOPIC_IDL
#pragma ndds typesupport "Base/MultiTopic_BaseSupport.h"
#pragma opendds typesupport "Base/MultiTopic_BaseTypeSupportImpl.h"
#pragma DCPS_DATA_TYPE "ShapeType"
#pragma DCPS_DATA_KEY "ShapeType color"
struct ShapeType {
string color; //@key
long x;
long y;
long shapesize;
};
#pragma keylist ShapeType color
#pragma DCPS_DATA_TYPE "Attributes"
#pragma DCPS_DATA_KEY "Attributes shape"
#pragma DCPS_DATA_KEY "Attributes color"
struct Attributes {
string shape; //@key
string color; //@key
float speed;
};
#if defined DDS4CCM_NEEDS_SEQUENCES_DEFINED
typedef sequence<ShapeType> ShapeTypeSeq;
#endif
#if defined DDS4CCM_NEEDS_SEQUENCES_DEFINED
typedef sequence<Attributes> AttributesSeq;
#endif
#pragma keylist Attributes shape color
#endif
|