00001 package Sct_SctApi; 00002 00003 00011 abstract public class TIMTriggerHelper 00012 { 00013 private static String _id = "IDL:Sct_SctApi/TIMTrigger:1.0"; 00014 00015 public static void insert (org.omg.CORBA.Any a, short 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 short 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 ().get_primitive_tc (org.omg.CORBA.TCKind.tk_short); 00034 __typeCode = org.omg.CORBA.ORB.init ().create_alias_tc (Sct_SctApi.TIMTriggerHelper.id (), "TIMTrigger", __typeCode); 00035 } 00036 return __typeCode; 00037 } 00038 00039 public static String id () 00040 { 00041 return _id; 00042 } 00043 00044 public static short read (org.omg.CORBA.portable.InputStream istream) 00045 { 00046 short value = (short)0; 00047 value = istream.read_short (); 00048 return value; 00049 } 00050 00051 public static void write (org.omg.CORBA.portable.OutputStream ostream, short value) 00052 { 00053 ostream.write_short (value); 00054 } 00055 00056 }