_CrateAccessTopLevelStub.java

00001 package Sct_SctApi;
00002 
00003 
00012 // fwd declaration to facilitate what follows!
00013 public class _CrateAccessTopLevelStub extends org.omg.CORBA.portable.ObjectImpl implements Sct_SctApi.CrateAccessTopLevel
00014 {
00015 
00016   public Sct_SctApi.CrateIPC getCrate (Sct.Corba.UniqueCrateIdentifier ucid)
00017   {
00018             org.omg.CORBA.portable.InputStream $in = null;
00019             try {
00020                 org.omg.CORBA.portable.OutputStream $out = _request ("getCrate", true);
00021                 Sct.Corba.UCIDHelper.write ($out, ucid);
00022                 $in = _invoke ($out);
00023                 Sct_SctApi.CrateIPC $result = Sct_SctApi.CrateIPCHelper.read ($in);
00024                 return $result;
00025             } catch (org.omg.CORBA.portable.ApplicationException $ex) {
00026                 $in = $ex.getInputStream ();
00027                 String _id = $ex.getId ();
00028                 throw new org.omg.CORBA.MARSHAL (_id);
00029             } catch (org.omg.CORBA.portable.RemarshalException $rm) {
00030                 return getCrate (ucid        );
00031             } finally {
00032                 _releaseReply ($in);
00033             }
00034   } // getCrate
00035 
00036   public Sct_SctApi.CrateIPC getCrateLegacy (int partition, int crate)
00037   {
00038             org.omg.CORBA.portable.InputStream $in = null;
00039             try {
00040                 org.omg.CORBA.portable.OutputStream $out = _request ("getCrateLegacy", true);
00041                 $out.write_ulong (partition);
00042                 $out.write_ulong (crate);
00043                 $in = _invoke ($out);
00044                 Sct_SctApi.CrateIPC $result = Sct_SctApi.CrateIPCHelper.read ($in);
00045                 return $result;
00046             } catch (org.omg.CORBA.portable.ApplicationException $ex) {
00047                 $in = $ex.getInputStream ();
00048                 String _id = $ex.getId ();
00049                 throw new org.omg.CORBA.MARSHAL (_id);
00050             } catch (org.omg.CORBA.portable.RemarshalException $rm) {
00051                 return getCrateLegacy (partition, crate        );
00052             } finally {
00053                 _releaseReply ($in);
00054             }
00055   } // getCrateLegacy
00056 
00057   public Sct.Corba.UniqueCrateIdentifier[] getCrateUCIDs ()
00058   {
00059             org.omg.CORBA.portable.InputStream $in = null;
00060             try {
00061                 org.omg.CORBA.portable.OutputStream $out = _request ("getCrateUCIDs", true);
00062                 $in = _invoke ($out);
00063                 Sct.Corba.UniqueCrateIdentifier $result[] = Sct.Corba.UCIDsHelper.read ($in);
00064                 return $result;
00065             } catch (org.omg.CORBA.portable.ApplicationException $ex) {
00066                 $in = $ex.getInputStream ();
00067                 String _id = $ex.getId ();
00068                 throw new org.omg.CORBA.MARSHAL (_id);
00069             } catch (org.omg.CORBA.portable.RemarshalException $rm) {
00070                 return getCrateUCIDs (        );
00071             } finally {
00072                 _releaseReply ($in);
00073             }
00074   } // getCrateUCIDs
00075 
00076   // Type-specific CORBA::Object operations
00077   private static String[] __ids = {
00078     "IDL:Sct_SctApi/CrateAccessTopLevel:1.0"};
00079 
00080   public String[] _ids ()
00081   {
00082     return (String[])__ids.clone ();
00083   }
00084 
00085   private void readObject (java.io.ObjectInputStream s) throws java.io.IOException
00086   {
00087      String str = s.readUTF ();
00088      String[] args = null;
00089      java.util.Properties props = null;
00090      org.omg.CORBA.Object obj = org.omg.CORBA.ORB.init (args, props).string_to_object (str);
00091      org.omg.CORBA.portable.Delegate delegate = ((org.omg.CORBA.portable.ObjectImpl) obj)._get_delegate ();
00092      _set_delegate (delegate);
00093   }
00094 
00095   private void writeObject (java.io.ObjectOutputStream s) throws java.io.IOException
00096   {
00097      String[] args = null;
00098      java.util.Properties props = null;
00099      String str = org.omg.CORBA.ORB.init (args, props).object_to_string (this);
00100      s.writeUTF (str);
00101   }
00102 } // class _CrateAccessTopLevelStub

Generated on Mon Feb 6 14:12:04 2006 for SCT DAQ/DCS Software - Java by  doxygen 1.4.6