_ScanMethodsStub.java

00001 package Sct_SctApi;
00002 
00003 
00012 // Would need locking on module list updaters.
00013 public class _ScanMethodsStub extends org.omg.CORBA.portable.ObjectImpl implements Sct_SctApi.ScanMethods
00014 {
00015 
00016   public Sct_SctApi.Scan createScan ()
00017   {
00018             org.omg.CORBA.portable.InputStream $in = null;
00019             try {
00020                 org.omg.CORBA.portable.OutputStream $out = _request ("createScan", true);
00021                 $in = _invoke ($out);
00022                 Sct_SctApi.Scan $result = Sct_SctApi.ScanHelper.read ($in);
00023                 return $result;
00024             } catch (org.omg.CORBA.portable.ApplicationException $ex) {
00025                 $in = $ex.getInputStream ();
00026                 String _id = $ex.getId ();
00027                 throw new org.omg.CORBA.MARSHAL (_id);
00028             } catch (org.omg.CORBA.portable.RemarshalException $rm) {
00029                 return createScan (        );
00030             } finally {
00031                 _releaseReply ($in);
00032             }
00033   } // createScan
00034 
00035   public Sct_SctApi.Scan getDefaultScan ()
00036   {
00037             org.omg.CORBA.portable.InputStream $in = null;
00038             try {
00039                 org.omg.CORBA.portable.OutputStream $out = _request ("getDefaultScan", true);
00040                 $in = _invoke ($out);
00041                 Sct_SctApi.Scan $result = Sct_SctApi.ScanHelper.read ($in);
00042                 return $result;
00043             } catch (org.omg.CORBA.portable.ApplicationException $ex) {
00044                 $in = $ex.getInputStream ();
00045                 String _id = $ex.getId ();
00046                 throw new org.omg.CORBA.MARSHAL (_id);
00047             } catch (org.omg.CORBA.portable.RemarshalException $rm) {
00048                 return getDefaultScan (        );
00049             } finally {
00050                 _releaseReply ($in);
00051             }
00052   } // getDefaultScan
00053 
00054 
00055   // Nobody seems to use these two:
00056   public Sct_SctApi.Trigger createTrigger ()
00057   {
00058             org.omg.CORBA.portable.InputStream $in = null;
00059             try {
00060                 org.omg.CORBA.portable.OutputStream $out = _request ("createTrigger", true);
00061                 $in = _invoke ($out);
00062                 Sct_SctApi.Trigger $result = Sct_SctApi.TriggerHelper.read ($in);
00063                 return $result;
00064             } catch (org.omg.CORBA.portable.ApplicationException $ex) {
00065                 $in = $ex.getInputStream ();
00066                 String _id = $ex.getId ();
00067                 throw new org.omg.CORBA.MARSHAL (_id);
00068             } catch (org.omg.CORBA.portable.RemarshalException $rm) {
00069                 return createTrigger (        );
00070             } finally {
00071                 _releaseReply ($in);
00072             }
00073   } // createTrigger
00074 
00075 
00076   // Trigger getDefaultTrigger();
00077   public Sct_SctApi.Scan[] knownScans ()
00078   {
00079             org.omg.CORBA.portable.InputStream $in = null;
00080             try {
00081                 org.omg.CORBA.portable.OutputStream $out = _request ("knownScans", true);
00082                 $in = _invoke ($out);
00083                 Sct_SctApi.Scan $result[] = Sct_SctApi.ScanListHelper.read ($in);
00084                 return $result;
00085             } catch (org.omg.CORBA.portable.ApplicationException $ex) {
00086                 $in = $ex.getInputStream ();
00087                 String _id = $ex.getId ();
00088                 throw new org.omg.CORBA.MARSHAL (_id);
00089             } catch (org.omg.CORBA.portable.RemarshalException $rm) {
00090                 return knownScans (        );
00091             } finally {
00092                 _releaseReply ($in);
00093             }
00094   } // knownScans
00095 
00096   // Type-specific CORBA::Object operations
00097   private static String[] __ids = {
00098     "IDL:Sct_SctApi/ScanMethods:1.0"};
00099 
00100   public String[] _ids ()
00101   {
00102     return (String[])__ids.clone ();
00103   }
00104 
00105   private void readObject (java.io.ObjectInputStream s) throws java.io.IOException
00106   {
00107      String str = s.readUTF ();
00108      String[] args = null;
00109      java.util.Properties props = null;
00110      org.omg.CORBA.Object obj = org.omg.CORBA.ORB.init (args, props).string_to_object (str);
00111      org.omg.CORBA.portable.Delegate delegate = ((org.omg.CORBA.portable.ObjectImpl) obj)._get_delegate ();
00112      _set_delegate (delegate);
00113   }
00114 
00115   private void writeObject (java.io.ObjectOutputStream s) throws java.io.IOException
00116   {
00117      String[] args = null;
00118      java.util.Properties props = null;
00119      String str = org.omg.CORBA.ORB.init (args, props).object_to_string (this);
00120      s.writeUTF (str);
00121   }
00122 } // class _ScanMethodsStub

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