StringsHelper.java

00001 package Sct_CalibrationController.TestLibraryPackage;
00002 
00003 
00012 // any trailing "Test".  Example:  "StrobeDelay" not "StrobeDelayTest"
00013 abstract public class StringsHelper
00014 {
00015   private static String  _id = "IDL:Sct_CalibrationController/TestLibrary/Strings:1.0";
00016 
00017   public static void insert (org.omg.CORBA.Any a, String[] 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 String[] 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_string_tc (0);
00036       __typeCode = org.omg.CORBA.ORB.init ().create_sequence_tc (0, __typeCode);
00037       __typeCode = org.omg.CORBA.ORB.init ().create_alias_tc (Sct_CalibrationController.TestLibraryPackage.StringsHelper.id (), "Strings", __typeCode);
00038     }
00039     return __typeCode;
00040   }
00041 
00042   public static String id ()
00043   {
00044     return _id;
00045   }
00046 
00047   public static String[] read (org.omg.CORBA.portable.InputStream istream)
00048   {
00049     String value[] = null;
00050     int _len0 = istream.read_long ();
00051     value = new String[_len0];
00052     for (int _o1 = 0;_o1 < value.length; ++_o1)
00053       value[_o1] = istream.read_string ();
00054     return value;
00055   }
00056 
00057   public static void write (org.omg.CORBA.portable.OutputStream ostream, String[] value)
00058   {
00059     ostream.write_long (value.length);
00060     for (int _i0 = 0;_i0 < value.length; ++_i0)
00061       ostream.write_string (value[_i0]);
00062   }
00063 
00064 }

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