summaryrefslogtreecommitdiff
path: root/CIAO/connectors/dds4ccm/examples/ShapesContr/Base/Shapes_Base.idl
blob: c7e8bc65bc85316360e9978e841e233539117422 (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
/**
 * @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_BaseTypeSupportImpl.h"

#pragma DCPS_DATA_TYPE "org::omg::dds::demo::ShapeType"
#pragma DCPS_DATA_KEY "org::omg::dds::demo::ShapeType color"

module org {
  module omg {
    module dds {
      module demo {
        struct ShapeType {
          string color; //@key
          long x;
          long y;
          long shapesize;
        };
#if defined DDS4CCM_NEEDS_SEQUENCES_DEFINED
        typedef sequence<ShapeType> ShapeTypeSeq;
#endif
      };
    };
  };
};


#pragma keylist ShapeType color

#pragma DCPS_DATA_TYPE "org::omg::dds::demo::Attributes"
#pragma DCPS_DATA_KEY "org::omg::dds::demo::Attributes shape"
#pragma DCPS_DATA_KEY "org::omg::dds::demo::Attributes color"

module org {
  module omg {
    module dds {
      module demo {
        struct Attributes {
          string shape; //@key
          string color; //@key
          float speed;
        };
      };
    };
  };
};

// #pragma DCPS_DATA_SEQUENCE_TYPE "AttributesSeq"
// typedef sequence<Attributes> AttributesSeq;



#endif