sources:
InaccuracyTHelper.java (1.6k)
IntervalT.java (554 bytes)
IntervalTHelper.java (2.8k)
IntervalTHolder.java (807 bytes)
TimeTHelper.java (1.4k)
UtcT.java (593 bytes)
UtcTHelper.java (2.9k)
UtcTHolder.java (762 bytes)


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 {
  8   private static String  _id = "IDL:hpi.uni-potsdam.de/TimeBase/TimeT:1.0";
  9
 10   public static void insert (org.omg.CORBA.Any a, long that)
 11   {
 12     org.omg.CORBA.portable.OutputStream out = a.create_output_stream ();
 13     a.type (type ());
 14     write (out, that);
 15     a.read_value (out.create_input_stream (), type ());
 16   }
 17
 18   public static long extract (org.omg.CORBA.Any a)
 19   {
 20     return read (a.create_input_stream ());
 21   }
 22
 23   private static org.omg.CORBA.TypeCode __typeCode = null;
 24   synchronized public static org.omg.CORBA.TypeCode type ()
 25   {
 26     if (__typeCode == null)
 27     {
 28       __typeCode = org.omg.CORBA.ORB.init ().get_primitive_tc (org.omg.CORBA.TCKind.tk_ulonglong);
 29       __typeCode = org.omg.CORBA.ORB.init ().create_alias_tc (TimeBase.TimeTHelper.id (), "TimeT", __typeCode);
 30     }
 31     return __typeCode;
 32   }
 33
 34   public static String id ()
 35   {
 36     return _id;
 37   }
 38
 39   public static long read (org.omg.CORBA.portable.InputStream istream)
 40   {
 41     long value = (long)0;
 42     value = istream.read_ulonglong ();
 43     return value;
 44   }
 45
 46   public static void write (org.omg.CORBA.portable.OutputStream ostream, long value)
 47   {
 48     ostream.write_ulonglong (value);
 49   }
 50
 51 }
 52