Orocos Real-Time Toolkit  2.8.3
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> CDescriptions;
28 
33  {
34  long which_arg;
35  long max_arg;
36  };
37 
42  {
43  long wanted;
44  long received;
45  };
46 
51  {
52  long whicharg;
53  string expected;
54  string received;
55  };
56 
61  {
62  string name;
63  };
64 
66 
71  exception CCallInterrupted
72  {
73  };
74 
75  exception CCallError
76  {
77  string what;
78  };
79 
86  interface CSendHandle {
87 
88  CSendStatus collect(out CAnyArguments args) raises(CCallError);
89 
90  CSendStatus collectIfDone(out CAnyArguments args) raises(CCallError);
91 
95  CSendStatus checkStatus();
100  any ret() raises(CCallError);
101 
110  void checkArguments(in CAnyArguments args) raises (
113 
119  void dispose();
120  };
121 
127  {
128  typedef sequence<string> COperationList;
129 
133  COperationList getOperations();
134 
138  CDescriptions getArguments(in string operation) raises (CNoSuchNameException);
139 
144  unsigned short getArity(in string operation) raises (CNoSuchNameException);
145 
150  unsigned short getCollectArity(in string operation) raises (CNoSuchNameException);
151 
155  string getResultType(in string operation) raises (CNoSuchNameException);
156 
160  string getArgumentType(in string operation, in unsigned short nbr) raises (CNoSuchNameException, CWrongArgumentException);
161 
165  string getCollectType(in string operation, in unsigned short nbr) raises (CNoSuchNameException, CWrongArgumentException);
166 
170  string getDescription(in string operation) raises (CNoSuchNameException);
171 
176  void checkOperation(in string operation, in CAnyArguments args) raises ( CNoSuchNameException,
179 
184  any callOperation(in string operation, inout CAnyArguments args) raises ( CNoSuchNameException,
188  CCallError);
189 
194  CSendHandle sendOperation(in string operation, in CAnyArguments args) raises ( CNoSuchNameException,
198  };
199 
200  };
201 };
202 #endif
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.
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.
Contains TaskContext, Activity, OperationCaller, Operation, Property, InputPort, OutputPort, Attribute.
Definition: Activity.cpp:51
sequence< CArgumentDescription > CDescriptions