00001 package Sct_CalibrationController; 00002 00003 00013 abstract public class ScanRequestHelper 00014 { 00015 private static String _id = "IDL:Sct_CalibrationController/ScanRequest:1.0"; 00016 00017 public static void insert (org.omg.CORBA.Any a, Sct_CalibrationController.ScanRequest 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_CalibrationController.ScanRequest 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_CalibrationController.ScanRequestHelper.id (), "ScanRequest"); 00036 } 00037 return __typeCode; 00038 } 00039 00040 public static String id () 00041 { 00042 return _id; 00043 } 00044 00045 public static Sct_CalibrationController.ScanRequest read (org.omg.CORBA.portable.InputStream istream) 00046 { 00047 return narrow (istream.read_Object (_ScanRequestStub.class)); 00048 } 00049 00050 public static void write (org.omg.CORBA.portable.OutputStream ostream, Sct_CalibrationController.ScanRequest value) 00051 { 00052 ostream.write_Object ((org.omg.CORBA.Object) value); 00053 } 00054 00055 public static Sct_CalibrationController.ScanRequest narrow (org.omg.CORBA.Object obj) 00056 { 00057 if (obj == null) 00058 return null; 00059 else if (obj instanceof Sct_CalibrationController.ScanRequest) 00060 return (Sct_CalibrationController.ScanRequest)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_CalibrationController._ScanRequestStub stub = new Sct_CalibrationController._ScanRequestStub (); 00067 stub._set_delegate(delegate); 00068 return stub; 00069 } 00070 } 00071 00072 }