00001 package sctConf;
00002
00003
00011 abstract public class TimConfigHelper
00012 {
00013 private static String _id = "IDL:sctConf/TimConfig:1.0";
00014
00015 public static void insert (org.omg.CORBA.Any a, sctConf.TimConfig 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 sctConf.TimConfig 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 private static boolean __active = false;
00030 synchronized public static org.omg.CORBA.TypeCode type ()
00031 {
00032 if (__typeCode == null)
00033 {
00034 synchronized (org.omg.CORBA.TypeCode.class)
00035 {
00036 if (__typeCode == null)
00037 {
00038 if (__active)
00039 {
00040 return org.omg.CORBA.ORB.init().create_recursive_tc ( _id );
00041 }
00042 __active = true;
00043 org.omg.CORBA.StructMember[] _members0 = new org.omg.CORBA.StructMember [4];
00044 org.omg.CORBA.TypeCode _tcOf_members0 = null;
00045 _tcOf_members0 = org.omg.CORBA.ORB.init ().get_primitive_tc (org.omg.CORBA.TCKind.tk_ulong);
00046 _members0[0] = new org.omg.CORBA.StructMember (
00047 "baseAddress",
00048 _tcOf_members0,
00049 null);
00050 _tcOf_members0 = org.omg.CORBA.ORB.init ().get_primitive_tc (org.omg.CORBA.TCKind.tk_ulong);
00051 _members0[1] = new org.omg.CORBA.StructMember (
00052 "triggerType",
00053 _tcOf_members0,
00054 null);
00055 _tcOf_members0 = org.omg.CORBA.ORB.init ().get_primitive_tc (org.omg.CORBA.TCKind.tk_float);
00056 _members0[2] = new org.omg.CORBA.StructMember (
00057 "trigFrequency",
00058 _tcOf_members0,
00059 null);
00060 _tcOf_members0 = org.omg.CORBA.ORB.init ().get_primitive_tc (org.omg.CORBA.TCKind.tk_float);
00061 _members0[3] = new org.omg.CORBA.StructMember (
00062 "resetFrequency",
00063 _tcOf_members0,
00064 null);
00065 __typeCode = org.omg.CORBA.ORB.init ().create_struct_tc (sctConf.TimConfigHelper.id (), "TimConfig", _members0);
00066 __active = false;
00067 }
00068 }
00069 }
00070 return __typeCode;
00071 }
00072
00073 public static String id ()
00074 {
00075 return _id;
00076 }
00077
00078 public static sctConf.TimConfig read (org.omg.CORBA.portable.InputStream istream)
00079 {
00080 sctConf.TimConfig value = new sctConf.TimConfig ();
00081 value.baseAddress = istream.read_ulong ();
00082 value.triggerType = istream.read_ulong ();
00083 value.trigFrequency = istream.read_float ();
00084 value.resetFrequency = istream.read_float ();
00085 return value;
00086 }
00087
00088 public static void write (org.omg.CORBA.portable.OutputStream ostream, sctConf.TimConfig value)
00089 {
00090 ostream.write_ulong (value.baseAddress);
00091 ostream.write_ulong (value.triggerType);
00092 ostream.write_float (value.trigFrequency);
00093 ostream.write_float (value.resetFrequency);
00094 }
00095
00096 }