00001 package Sct_SctApi;
00002
00003
00012
00013 abstract public class SctApiIPCHelper
00014 {
00015 private static String _id = "IDL:Sct_SctApi/SctApiIPC:1.0";
00016
00017 public static void insert (org.omg.CORBA.Any a, Sct_SctApi.SctApiIPC that)
00018 {
00019 org.omg.CORBA.portable.OutputStream out = a.create_output_stream ();
00020 a.type (type ());
00021 write (out, that);
00022 a.read_value (out.create_input_stream (), type ());
00023 }
00024
00025 public static Sct_SctApi.SctApiIPC extract (org.omg.CORBA.Any a)
00026 {
00027 return read (a.create_input_stream ());
00028 }
00029
00030 private static org.omg.CORBA.TypeCode __typeCode = null;
00031 synchronized public static org.omg.CORBA.TypeCode type ()
00032 {
00033 if (__typeCode == null)
00034 {
00035 __typeCode = org.omg.CORBA.ORB.init ().create_interface_tc (Sct_SctApi.SctApiIPCHelper.id (), "SctApiIPC");
00036 }
00037 return __typeCode;
00038 }
00039
00040 public static String id ()
00041 {
00042 return _id;
00043 }
00044
00045 public static Sct_SctApi.SctApiIPC read (org.omg.CORBA.portable.InputStream istream)
00046 {
00047 return narrow (istream.read_Object (_SctApiIPCStub.class));
00048 }
00049
00050 public static void write (org.omg.CORBA.portable.OutputStream ostream, Sct_SctApi.SctApiIPC value)
00051 {
00052 ostream.write_Object ((org.omg.CORBA.Object) value);
00053 }
00054
00055 public static Sct_SctApi.SctApiIPC narrow (org.omg.CORBA.Object obj)
00056 {
00057 if (obj == null)
00058 return null;
00059 else if (obj instanceof Sct_SctApi.SctApiIPC)
00060 return (Sct_SctApi.SctApiIPC)obj;
00061 else if (!obj._is_a (id ()))
00062 throw new org.omg.CORBA.BAD_PARAM ();
00063 else
00064 {
00065 org.omg.CORBA.portable.Delegate delegate = ((org.omg.CORBA.portable.ObjectImpl)obj)._get_delegate ();
00066 Sct_SctApi._SctApiIPCStub stub = new Sct_SctApi._SctApiIPCStub ();
00067 stub._set_delegate(delegate);
00068 return stub;
00069 }
00070 }
00071
00072 public static Sct_SctApi.SctApiIPC unchecked_narrow (org.omg.CORBA.Object obj)
00073 {
00074 if (obj == null)
00075 return null;
00076 else if (obj instanceof Sct_SctApi.SctApiIPC)
00077 return (Sct_SctApi.SctApiIPC)obj;
00078 else
00079 {
00080 org.omg.CORBA.portable.Delegate delegate = ((org.omg.CORBA.portable.ObjectImpl)obj)._get_delegate ();
00081 Sct_SctApi._SctApiIPCStub stub = new Sct_SctApi._SctApiIPCStub ();
00082 stub._set_delegate(delegate);
00083 return stub;
00084 }
00085 }
00086
00087 }