1 package TimeBase;
2
3
4 /**
* TimeBase/InaccuracyTHelper.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 InaccuracyTHelper
{
7 private static String _id = "IDL:hpi.uni-potsdam.de/TimeBase/InaccuracyT: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 __typeCode = org.omg.CORBA.ORB.init ().create_alias_tc (TimeBase.InaccuracyTHelper.id (), "InaccuracyT", __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
53