Orocos Real-Time Toolkit  2.9.0
OperationInterface.idl
Go to the documentation of this file.
1 #ifndef ORO_CORBA_OPERATION_REPOSITORY_IDL
2 #define ORO_CORBA_OPERATION_REPOSITORY_IDL
3 
4 #ifdef CORBA_IS_TAO
5 //resolves LNK2005
6 #include <tao/orb.idl>
7 #endif
8 
9 module RTT
10 {
11  module corba
12  {
13  typedef sequence<any> CAnyArguments;
14 
21  {
22  string name;
23  string description;
24  string type;
25  };
26 
27  typedef sequence<CArgumentDescription> CArgumentDescriptions;
28 
29  typedef sequence<string> CTypeList;
30 
31  struct COperation
32  {
33  string name;
34  string description;
35  CArgumentDescriptions arguments;
36  CTypeList collect_types;
37  string result_type;
38  boolean send_oneway;
39  };
40 
45  {
46  long which_arg;
47  long max_arg;
48  };
49 
54  {
55  long wanted;
56  long received;
57  };
58 
63  {
64  long whicharg;
65  string expected;
66  string received;
67  };
68 
73  {
74  string name;
75  };
76 
78 
83  exception CCallInterrupted
84  {
85  };
86 
87  exception CCallError
88  {
89  string what;
90  };
91 
98  interface CSendHandle {
99 
100  CSendStatus collect(out CAnyArguments args) raises(CCallError);
101 
102  CSendStatus collectIfDone(out CAnyArguments args) raises(CCallError);
103 
107  CSendStatus checkStatus();
112  any ret() raises(CCallError);
113 
122  void checkArguments(in CAnyArguments args) raises (
125 
131  void dispose();
132  };
133 
139  {
140  typedef sequence<COperation> COperationDescriptions;
141 
145  COperationDescriptions getOperations();
146 
150  CArgumentDescriptions getArguments(in string operation) raises (CNoSuchNameException);
151 
156  unsigned short getArity(in string operation) raises (CNoSuchNameException);
157 
162  unsigned short getCollectArity(in string operation) raises (CNoSuchNameException);
163 
167  string getResultType(in string operation) raises (CNoSuchNameException);
168 
172  string getArgumentType(in string operation, in unsigned short nbr) raises (CNoSuchNameException, CWrongArgumentException);
173 
177  string getCollectType(in string operation, in unsigned short nbr) raises (CNoSuchNameException, CWrongArgumentException);
178 
182  string getDescription(in string operation) raises (CNoSuchNameException);
183 
188  void checkOperation(in string operation, in CAnyArguments args) raises ( CNoSuchNameException,
191 
196  any callOperation(in string operation, inout CAnyArguments args) raises ( CNoSuchNameException,
200  CCallError);
201 
206  CSendHandle sendOperation(in string operation, in CAnyArguments args) raises ( CNoSuchNameException,
210 
215  oneway void sendOperationOneway(in string operation, in CAnyArguments args);
216 
217  };
218 
219  };
220 };
221 #endif
CArgumentDescriptions arguments
Is thrown when an operation does not exist.
Is thrown when a wrong type of arguments is provided.
Is thrown when a wrong argument number is queried.
sequence< any > CAnyArguments
Is thrown if the calling or sending of an operation was interrupted.
sequence< COperation > COperationDescriptions
A handler object that allows us to collect the results of a send.
When querying an operation for the kinds of arguments it takes, this structure is returned for each a...
Exposes the operations this service offers.
Is thrown when a wrong number of arguments is provided.
string type
Argument description.
sequence< CArgumentDescription > CArgumentDescriptions
Contains TaskContext, Activity, OperationCaller, Operation, Property, InputPort, OutputPort, Attribute.
Definition: Activity.cpp:52
sequence< string > CTypeList