~ubuntu-branches/ubuntu/breezy/ace/breezy

« back to all changes in this revision

Viewing changes to TAO/performance-tests/Cubit/TAO/DII_Cubit/cubit.idl

  • Committer: Bazaar Package Importer
  • Author(s): Adam Conrad, Benjamin Montgomery, Adam Conrad
  • Date: 2005-09-18 22:51:38 UTC
  • mfrom: (1.2.1 upstream) (2.1.1 sarge) (0.1.2 woody)
  • Revision ID: james.westby@ubuntu.com-20050918225138-seav22q6fyylb536
Tags: 5.4.7-3ubuntu1
[ Benjamin Montgomery ]
* Added a patch for amd64 and powerpc that disables the compiler
  option -fvisibility-inlines-hidden

[ Adam Conrad ]
* Added DPATCH_OPTION_CPP=1 to debian/patches/00options to make
  Benjamin's above changes work correctly with dpatch.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
/* -*- C++ -*- */
2
 
// cubit.idl,v 1.2 2002/07/26 13:10:22 elliott_c Exp
3
 
 
4
 
interface Cubit
5
 
{
6
 
  // = TITLE
7
 
  //    Defines an interface that encapsulates operations that cube
8
 
  //    numbers.
9
 
  //
10
 
  // = DESCRIPTION
11
 
  //    This interface encapsulates operations that cube
12
 
  //    octets, shorts, longs, structs and unions.
13
 
 
14
 
  oneway void cube_oneway ();
15
 
  // Test the basic latency of a nil oneway operation.
16
 
 
17
 
  void cube_void ();
18
 
  // Test the basic latency of a nil operation.
19
 
 
20
 
  octet cube_octet (in octet o);
21
 
  // cube an octet
22
 
 
23
 
  short cube_short (in short s);
24
 
  // cube a short
25
 
 
26
 
  long  cube_long (in long l);
27
 
  // cube a long
28
 
 
29
 
  struct Many
30
 
  {
31
 
    octet o;            // + 3 bytes padding (normally) ...
32
 
    long l;
33
 
    short s;            // + 2 bytes padding (normally) ...
34
 
  };
35
 
 
36
 
  Many cube_struct (in Many values);
37
 
  // Cube a struct
38
 
 
39
 
  any cube_any(in any value);
40
 
 
41
 
  any cube_any_struct(in any value);
42
 
 
43
 
  enum discrim
44
 
  {
45
 
    e_0th,
46
 
    e_1st,
47
 
    e_2nd,
48
 
    e_3rd
49
 
  };
50
 
  // Enumeration of the different elements in a union.
51
 
 
52
 
  union oneof switch (discrim)
53
 
    {
54
 
      // this is an easy union to interpret; no padding
55
 
      // is needed between discriminant and value.
56
 
    case e_0th:
57
 
      octet o;
58
 
    case e_1st:
59
 
      short s;
60
 
    case e_2nd:
61
 
      long l;
62
 
    case e_3rd:
63
 
      Many cm;
64
 
 
65
 
      // default:
66
 
      // Many cm;
67
 
    };
68
 
  // Union of different types.
69
 
 
70
 
  oneof cube_union (in oneof values);
71
 
  // cube a union.
72
 
 
73
 
  typedef sequence<long> long_seq;
74
 
  void cube_long_sequence (in long_seq input,
75
 
                           out long_seq output);
76
 
  // Cube several longs.
77
 
 
78
 
  typedef sequence<octet> octet_seq;
79
 
  void cube_octet_sequence (in octet_seq input, out octet_seq output);
80
 
  // Cube an octet sequence.
81
 
 
82
 
  typedef sequence<Many> many_seq;
83
 
  void cube_many_sequence (in many_seq input,
84
 
                           out many_seq output);
85
 
  // Cube several manys.
86
 
 
87
 
  oneway void shutdown ();
88
 
  // shutdown the application.
89
 
 
90
 
  // = The following types provide a torture-test for structs.
91
 
  struct RtiPacketHeader
92
 
  {
93
 
    unsigned long packetLength; // this is probably redundant
94
 
    unsigned short federationHandle;
95
 
    unsigned long channelHandle;
96
 
    unsigned long packetColor;
97
 
  };
98
 
 
99
 
  struct HandleValuePair
100
 
  {
101
 
    unsigned short handle;
102
 
    octet_seq data;
103
 
  };
104
 
 
105
 
  enum MessageHeaderTypes
106
 
  {
107
 
    objectUpdate,
108
 
    interaction
109
 
    // others omitted
110
 
  };
111
 
 
112
 
  typedef sequence<HandleValuePair> HandleValuePairSeq;
113
 
  struct RtiObjectUpdateMessageHeader
114
 
  {
115
 
    unsigned long updateLength; // probably redundant
116
 
    unsigned long updateTag;
117
 
    unsigned long objectHandle;
118
 
    double timestamp;
119
 
    unsigned long long eventRetractionHandle;
120
 
    unsigned short classHandle;
121
 
    unsigned short sendingFederateHandle;
122
 
    string userTag;
123
 
    octet_seq regionData;
124
 
    octet transportationHandle;
125
 
    octet orderingHandle;
126
 
    HandleValuePairSeq messagePayload;
127
 
  };
128
 
 
129
 
  struct RtiInteractionMessageHeader
130
 
  {
131
 
    unsigned long updateLength;
132
 
    // similar to object update
133
 
  };
134
 
 
135
 
  union MessageUnion switch(MessageHeaderTypes)
136
 
    {
137
 
    case objectUpdate:
138
 
      RtiObjectUpdateMessageHeader oumh;
139
 
    case interaction:
140
 
      RtiInteractionMessageHeader imh;
141
 
    };
142
 
 
143
 
  typedef sequence <MessageUnion> MessageUnionSeq;
144
 
  struct RtiPacket
145
 
  {
146
 
    RtiPacketHeader packetHeader;
147
 
    MessageUnionSeq msgs;
148
 
  };
149
 
 
150
 
  void cube_rti_data (in RtiPacket input,
151
 
                      out RtiPacket output);
152
 
  
153
 
  // A work around for problems with SHMIOP since this test uses
154
 
  // this. 
155
 
  void ping ();
156
 
};
157
 
 
158
 
interface Cubit_Factory
159
 
{
160
 
  // = TITLE
161
 
  //    Creates Cubit objects.
162
 
 
163
 
  Cubit make_cubit ();
164
 
};