sources:


website:
more info here
studies/corba/Corba-Code1/client/TimeBase/TimeTHelper.java
download file

  1 package TimeBase;
  2
  3
  4 /** * TimeBase/TimeTHelper.java . * Generated by the IDL-to-Java compiler (portable), version "3.1" * from time.idl * Freitag, 18. April 2003 11.06 Uhr CEST */
  5
  6 abstract public class TimeTHelper {
  7   private static String  _id = "IDL:hpi.uni-potsdam.de/TimeBase/TimeT:1.0";
  8
  9   public static void insert (org.omg.CORBA.Any a, long that)
 10   {
 11     org.omg.CORBA.portable.OutputStream out = a.create_output_stream ();
 12     a.type (type ());
 13     write (out, that);
 14     a.read_value (out.create_input_stream (), type ());
 15   }
 16
 17   public static long extract (org.omg.CORBA.Any a)
 18   {
 19     return read (a.create_input_stream ());
 20   }
 21
 22   private static org.omg.CORBA.TypeCode __typeCode = null;
 23   synchronized public static org.omg.CORBA.TypeCode type ()
 24   {
 25     if (__typeCode == null)
 26     {
 27       __typeCode = org.omg.CORBA.ORB.init ().get_primitive_tc (org.omg.CORBA.TCKind.tk_ulonglong);
 28       __typeCode = org.omg.CORBA.ORB.init ().create_alias_tc (TimeBase.TimeTHelper.id (), "TimeT", __typeCode);
 29     }
 30     return __typeCode;
 31   }
 32
 33   public static String id ()
 34   {
 35     return _id;
 36   }
 37
 38   public static long read (org.omg.CORBA.portable.InputStream istream)
 39   {
 40     long value = (long)0;
 41     value = istream.read_ulonglong ();
 42     return value;
 43   }
 44
 45   public static void write (org.omg.CORBA.portable.OutputStream ostream, long value)
 46   {
 47     ostream.write_ulonglong (value);
 48   }
 49
 50 }
 51
 52