summaryrefslogtreecommitdiff
path: root/trunk/TAO/tests/Portable_Interceptors/Dynamic/test.idl
diff options
context:
space:
mode:
Diffstat (limited to 'trunk/TAO/tests/Portable_Interceptors/Dynamic/test.idl')
-rw-r--r--trunk/TAO/tests/Portable_Interceptors/Dynamic/test.idl61
1 files changed, 61 insertions, 0 deletions
diff --git a/trunk/TAO/tests/Portable_Interceptors/Dynamic/test.idl b/trunk/TAO/tests/Portable_Interceptors/Dynamic/test.idl
new file mode 100644
index 00000000000..e46baae1473
--- /dev/null
+++ b/trunk/TAO/tests/Portable_Interceptors/Dynamic/test.idl
@@ -0,0 +1,61 @@
+// -*- IDL -*-
+// $Id$
+
+// ===================================================================
+/**
+ * @file test.idl
+ *
+ * $Id$
+ *
+ * Simple IDL file to test portable interceptor support.
+ *
+ * @author Nanbor Wang <nanbor@cs.wustl.edu>
+ * @author Ossama Othman <ossama@dre.vanderbilt.edu>
+ */
+// ===================================================================
+
+module Test_Interceptors
+{
+ exception Silly {};
+
+ /**
+ * @class Visual
+ *
+ * @brief Test interface for checking interceptor visually.
+ *
+ * Test interface for checking interceptor visually.
+ */
+ interface Visual
+ {
+ /**
+ * @class VarLenStruct
+ *
+ * @brief Variable length structure
+ *
+ * This structure is designed to exercise memory management in the
+ * @c PortableInterceptor::RequestInfo::result() method.
+ */
+ struct VarLenStruct
+ {
+ octet flag;
+ string message;
+ };
+
+ /// Normal operation.
+ void normal (in long arg, out string msg);
+
+ /// Normal operation with a return val.
+ long calculate (in long one, in long two);
+
+ readonly attribute VarLenStruct the_structure;
+
+ /// Throws a user exception.
+ void user () raises (Silly);
+
+ /// Throws a system exception.
+ void system ();
+
+ /// Shutdown the ORB.
+ oneway void shutdown ();
+ };
+};