summaryrefslogtreecommitdiff
path: root/TAO/tao/IOP_N.pidl
blob: dfa0123e1e8be98cd88fbf91536ed444aa605424 (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
// -*- IDL -*- 
// $Id$

// The following is from 99-12-04 Portable Interceptors spec.
// File: IOP_N.idl
// These definitions are intended to be added to the IOP module in 
//    version "N" of CORBA. At that time, all references to the IOP_N 
//    module should be changed appropriately and this file should not
//    be separate from <IOP.idl>.

#ifndef _IOP_N_IDL_
#define _IOP_N_IDL_

#ifndef CORBA3
#define local  
#endif

//#include <orb.idl> - removed by Kirthika
#include <IOP.pidl> // .idl in the spec

module IOP_N {

// Commented this out as shalnt due with it in the vanilla round.

  typedef sequence<IOP::TaggedComponent> TaggedComponentSeq;

 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);
  };

};

#endif // _IOP_N_IDL_