Main Page | Packages | Class Hierarchy | Alphabetical List | Class List | File List | Class Members | Related Pages

TestRequestHelper.java

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 }

Generated on Thu Jul 15 09:55:50 2004 for SCT DAQ/DCS Software - Java by doxygen 1.3.5