blob: 54682969d7cd95d18c14f9ff0ebd58c383fe9200 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
|
// -*- IDL -*-
/**
* @file IOP_Codec.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 -GT -GA -Sc
* -Wb,export_macro=TAO_Export
* -Wb,export_include=tao/TAO_Export.h
* -Wb,pre_include="ace/pre.h"
* -Wb,post_include="ace/post.h"
* IOP_Codec.pidl
*
* and then apply the patches in diffs/IOP_Codec.diff.
*
* Move the typecodes for exceptions in IOP_CodecA.cpp to
* IOP_CodecC.cpp. The code left in IOP_CodecC.{h,i,cpp} and
* IOP_CodecA.cpp is ready to 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 */
|