summaryrefslogtreecommitdiff
path: root/CIAO/connectors/dds4ccm/examples/Shapes/Base/Shapes_Base.idl
blob: fff47bea45fdc8e0098d45e89d2488c6bafe6633 (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
// $Id$

/**
 * @file Shapes_Base.idl
 * @author Marcel Smit <msmit@remedy.nl>
 */

#ifndef SHAPES_BASE_IDL
#define SHAPES_BASE_IDL

#pragma ndds typesupport "Base/Shapes_BaseSupport.h"
#pragma opendds typesupport "Base/Shapes_BaseTypeSupportC.h"

#pragma DCPS_DATA_TYPE "ShapeType"
#pragma DCPS_DATA_KEY "ShapeType color"

struct ShapeType {
  string color; //@key
  long x;
  long y;
  long shapesize;
};

#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;
};

typedef sequence<ShapeType> ShapeType_Seq;

#endif