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

ArchivingServiceInterfaceHelper.java

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

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