summaryrefslogtreecommitdiff
path: root/TAO/tao/IOP_Codec.pidl
diff options
context:
space:
mode:
Diffstat (limited to 'TAO/tao/IOP_Codec.pidl')
-rw-r--r--TAO/tao/IOP_Codec.pidl68
1 files changed, 68 insertions, 0 deletions
diff --git a/TAO/tao/IOP_Codec.pidl b/TAO/tao/IOP_Codec.pidl
new file mode 100644
index 00000000000..33a00f86232
--- /dev/null
+++ b/TAO/tao/IOP_Codec.pidl
@@ -0,0 +1,68 @@
+// -*- IDL -*-
+/**
+ * @file IOP.pidl
+ *
+ * $Id$
+ *
+ * @brief Pre-compiled IDL source for the IOP module.
+ *
+ * This file is used to generate IOPC.{h,i,cpp}, using the following
+ * command:
+ *
+ * tao_idl.exe
+ * -o orig -Gp -Gd -Ge 1 -Gv
+ * -Wb,export_macro=TAO_Export
+ * -Wb,export_include=TAO_Export.h
+ * -Wb,pre_include="ace/pre.h"
+ * -Wb,post_include="ace/post.h"
+ * IOP.pidl
+ *
+ * and then:
+ *
+ * cp orig/IOPC.{h,i,cpp} .
+ * patch < diffs/IOP.diff
+ *
+ * The code left in IOPC.{h,i,cpp} is ready for use.
+ *
+ */
+
+#ifndef TAO_IOP_CODEC_PIDL
+#define TAO_IOP_CODEC_PIDL
+
+#include <orb.idl>
+
+#pragma prefix "omg.org"
+
+module IOP
+{
+ local interface Codec {
+ exception InvalidTypeForEncoding {};
+ exception FormatMismatch {};
+ exception TypeMismatch {};
+
+ CORBA::OctetSeq encode (in any data) raises (InvalidTypeForEncoding);
+ any decode (in CORBA::OctetSeq data) raises (FormatMismatch);
+ CORBA::OctetSeq encode_value (in any data) raises (InvalidTypeForEncoding);
+ any decode_value (in CORBA::OctetSeq data, in CORBA::TypeCode tc)
+ raises (FormatMismatch, TypeMismatch);
+ };
+
+ typedef short EncodingFormat;
+ const EncodingFormat ENCODING_CDR_ENCAPS = 0;
+
+ struct Encoding {
+ EncodingFormat format;
+ octet major_version;
+ octet minor_version;
+ };
+
+ local interface CodecFactory {
+ exception UnknownEncoding {};
+
+ Codec create_codec (in Encoding enc) raises (UnknownEncoding);
+ };
+};
+
+#pragma prefix ""
+
+#endif /* TAO_IOP_PIDL */