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

FitterInterfaceHelper.java

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

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