00001 package sctConf;
00002
00003
00011 abstract public class MURTypeHelper
00012 {
00013 private static String _id = "IDL:sctConf/MURType:1.0";
00014
00015 public static void insert (org.omg.CORBA.Any a, sctConf.MURType 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.MURType 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_enum_tc (sctConf.MURTypeHelper.id (), "MURType", new String[] { "BARREL", "ENDCAP", "UNMAPPED", "UNKNOWN"} );
00034 }
00035 return __typeCode;
00036 }
00037
00038 public static String id ()
00039 {
00040 return _id;
00041 }
00042
00043 public static sctConf.MURType read (org.omg.CORBA.portable.InputStream istream)
00044 {
00045 return sctConf.MURType.from_int (istream.read_long ());
00046 }
00047
00048 public static void write (org.omg.CORBA.portable.OutputStream ostream, sctConf.MURType value)
00049 {
00050 ostream.write_long (value.value ());
00051 }
00052
00053 }