-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathShapeType.idl
More file actions
63 lines (54 loc) · 1.9 KB
/
ShapeType.idl
File metadata and controls
63 lines (54 loc) · 1.9 KB
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
/*****************************************************************************/
/* (c) Copyright, Real-Time Innovations, All rights reserved. */
/* */
/* Permission to modify and use for internal purposes granted. */
/* This software is provided "as is", without warranty, express or implied. */
/* */
/*****************************************************************************/
module rti {
module picture {
const short WIDTH = 640;
const short HEIGHT = 480;
@nested
struct PictureType {
short dim; // dimension: width or height
sequence<octet, WIDTH * HEIGHT> pixel; // pixels
};
};
module shapes {
struct ShapeType {
@key // identifies the instance (a.k.a data-object)
string<128> color;
long x;
long y;
long shapesize;
};
enum ShapeFillKind {
SOLID_FILL,
TRANSPARENT_FILL,
HORIZONTAL_HATCH_FILL,
VERTICAL_HATCH_FILL
};
struct ShapeTypeExtended : ShapeType {
ShapeFillKind fillKind;
float angle;
};
struct PictureShapeType : ShapeTypeExtended {
picture::PictureType picture;
};
};
};
// Names defined the DDS-XML file
module My {
module If {
const string PUB = "ShapesIfLib::Shapes_Pub";
const string SUB = "ShapesIfLib::Shapes_Sub";
};
module Topic {
module Shape {
const string TYPE = "ShapeType";
const string WRITER = "_pub::Shape_writer";
const string READER = "_sub::Shape_reader";
};
};
};