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