Merge pull request #1844 from jrw972/monterey
[ACE_TAO.git] / TAO / tests / Portable_Interceptors / Dynamic / test.idl
blob30c692e6b11e673357e19b78fe64ed2574654cb4
1 // -*- IDL -*-
2 // ===================================================================
3 /**
4 * @file test.idl
6 * Simple IDL file to test portable interceptor support.
8 * @author Nanbor Wang <nanbor@cs.wustl.edu>
9 * @author Ossama Othman <ossama@dre.vanderbilt.edu>
11 // ===================================================================
13 module Test_Interceptors
15 exception Silly {};
17 /**
18 * @class Visual
20 * @brief Test interface for checking interceptor visually.
22 * Test interface for checking interceptor visually.
24 interface Visual
26 /**
27 * @class VarLenStruct
29 * @brief Variable length structure
31 * This structure is designed to exercise memory management in the
32 * @c PortableInterceptor::RequestInfo::result() method.
34 struct VarLenStruct
36 octet flag;
37 string message;
40 /// Normal operation.
41 void normal (in long arg, out string msg);
43 /// Normal operation with a return val.
44 long calculate (in long one, in long two);
46 readonly attribute VarLenStruct the_structure;
48 /// Throws a user exception.
49 void user () raises (Silly);
51 /// Throws a system exception.
52 void system ();
54 /// Shutdown the ORB.
55 oneway void shutdown ();