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

ModuleListHelper.java

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

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