1 package gcc.org.omg.GIOP; 2 3 4 10 11 12 abstract public class ReplyHeader_1_0Helper 14 { 15 private static String _id = "IDL:omg.org/GIOP/ReplyHeader_1_0:1.0"; 16 17 public static void insert (org.omg.CORBA.Any a, gcc.org.omg.GIOP.ReplyHeader_1_0 that) 18 { 19 org.omg.CORBA.portable.OutputStream out = a.create_output_stream (); 20 a.type (type ()); 21 write (out, that); 22 a.read_value (out.create_input_stream (), type ()); 23 } 24 25 public static gcc.org.omg.GIOP.ReplyHeader_1_0 extract (org.omg.CORBA.Any a) 26 { 27 return read (a.create_input_stream ()); 28 } 29 30 private static org.omg.CORBA.TypeCode __typeCode = null; 31 private static boolean __active = false; 32 synchronized public static org.omg.CORBA.TypeCode type () 33 { 34 if (__typeCode == null) 35 { 36 synchronized (org.omg.CORBA.TypeCode .class) 37 { 38 if (__typeCode == null) 39 { 40 if (__active) 41 { 42 return org.omg.CORBA.ORB.init().create_recursive_tc ( _id ); 43 } 44 __active = true; 45 org.omg.CORBA.StructMember [] _members0 = new org.omg.CORBA.StructMember [3]; 46 org.omg.CORBA.TypeCode _tcOf_members0 = null; 47 _tcOf_members0 = gcc.org.omg.IOP.ServiceContextHelper.type (); 48 _tcOf_members0 = org.omg.CORBA.ORB.init ().create_sequence_tc (0, _tcOf_members0); 49 _tcOf_members0 = org.omg.CORBA.ORB.init ().create_alias_tc (gcc.org.omg.IOP.ServiceContextListHelper.id (), "ServiceContextList", _tcOf_members0); 50 _members0[0] = new org.omg.CORBA.StructMember ( 51 "service_context", 52 _tcOf_members0, 53 null); 54 _tcOf_members0 = org.omg.CORBA.ORB.init ().get_primitive_tc (org.omg.CORBA.TCKind.tk_ulong); 55 _members0[1] = new org.omg.CORBA.StructMember ( 56 "request_id", 57 _tcOf_members0, 58 null); 59 _tcOf_members0 = gcc.org.omg.GIOP.ReplyStatusType_1_2Helper.type (); 60 _members0[2] = new org.omg.CORBA.StructMember ( 61 "reply_status", 62 _tcOf_members0, 63 null); 64 __typeCode = org.omg.CORBA.ORB.init ().create_struct_tc (gcc.org.omg.GIOP.ReplyHeader_1_0Helper.id (), "ReplyHeader_1_0", _members0); 65 __active = false; 66 } 67 } 68 } 69 return __typeCode; 70 } 71 72 public static String id () 73 { 74 return _id; 75 } 76 77 public static gcc.org.omg.GIOP.ReplyHeader_1_0 read (org.omg.CORBA.portable.InputStream istream) 78 { 79 gcc.org.omg.GIOP.ReplyHeader_1_0 value = new gcc.org.omg.GIOP.ReplyHeader_1_0 (); 80 value.service_context = gcc.org.omg.IOP.ServiceContextListHelper.read (istream); 81 value.request_id = istream.read_ulong (); 82 value.reply_status = gcc.org.omg.GIOP.ReplyStatusType_1_2Helper.read (istream); 83 return value; 84 } 85 86 public static void write (org.omg.CORBA.portable.OutputStream ostream, gcc.org.omg.GIOP.ReplyHeader_1_0 value) 87 { 88 gcc.org.omg.IOP.ServiceContextListHelper.write (ostream, value.service_context); 89 ostream.write_ulong (value.request_id); 90 gcc.org.omg.GIOP.ReplyStatusType_1_2Helper.write (ostream, value.reply_status); 91 } 92 93 } 94 | Popular Tags |