001 package org.omg.TimeBase;
002
003
004 /**
005 * org/omg/TimeBase/UtcTHelper.java .
006 * Generated by the IDL-to-Java compiler (portable), version "3.2"
007 * from /home/iurt/rpm/BUILD/geronimo-spec-corba/src/main/idl/TimeBase.idl
008 * Saturday, November 26, 2011 9:53:35 PM UTC
009 */
010
011 abstract public class UtcTHelper
012 {
013 private static String _id = "IDL:omg.org/TimeBase/UtcT:1.0";
014
015 public static void insert (org.omg.CORBA.Any a, org.omg.TimeBase.UtcT that)
016 {
017 org.omg.CORBA.portable.OutputStream out = a.create_output_stream ();
018 a.type (type ());
019 write (out, that);
020 a.read_value (out.create_input_stream (), type ());
021 }
022
023 public static org.omg.TimeBase.UtcT extract (org.omg.CORBA.Any a)
024 {
025 return read (a.create_input_stream ());
026 }
027
028 private static org.omg.CORBA.TypeCode __typeCode = null;
029 private static boolean __active = false;
030 synchronized public static org.omg.CORBA.TypeCode type ()
031 {
032 if (__typeCode == null)
033 {
034 synchronized (org.omg.CORBA.TypeCode.class)
035 {
036 if (__typeCode == null)
037 {
038 if (__active)
039 {
040 return org.omg.CORBA.ORB.init().create_recursive_tc ( _id );
041 }
042 __active = true;
043 org.omg.CORBA.StructMember[] _members0 = new org.omg.CORBA.StructMember [4];
044 org.omg.CORBA.TypeCode _tcOf_members0 = null;
045 _tcOf_members0 = org.omg.CORBA.ORB.init ().get_primitive_tc (org.omg.CORBA.TCKind.tk_ulonglong);
046 _tcOf_members0 = org.omg.CORBA.ORB.init ().create_alias_tc (org.omg.TimeBase.TimeTHelper.id (), "TimeT", _tcOf_members0);
047 _members0[0] = new org.omg.CORBA.StructMember (
048 "time",
049 _tcOf_members0,
050 null);
051 _tcOf_members0 = org.omg.CORBA.ORB.init ().get_primitive_tc (org.omg.CORBA.TCKind.tk_ulong);
052 _members0[1] = new org.omg.CORBA.StructMember (
053 "inacclo",
054 _tcOf_members0,
055 null);
056 _tcOf_members0 = org.omg.CORBA.ORB.init ().get_primitive_tc (org.omg.CORBA.TCKind.tk_ushort);
057 _members0[2] = new org.omg.CORBA.StructMember (
058 "inacchi",
059 _tcOf_members0,
060 null);
061 _tcOf_members0 = org.omg.CORBA.ORB.init ().get_primitive_tc (org.omg.CORBA.TCKind.tk_short);
062 _tcOf_members0 = org.omg.CORBA.ORB.init ().create_alias_tc (org.omg.TimeBase.TdfTHelper.id (), "TdfT", _tcOf_members0);
063 _members0[3] = new org.omg.CORBA.StructMember (
064 "tdf",
065 _tcOf_members0,
066 null);
067 __typeCode = org.omg.CORBA.ORB.init ().create_struct_tc (org.omg.TimeBase.UtcTHelper.id (), "UtcT", _members0);
068 __active = false;
069 }
070 }
071 }
072 return __typeCode;
073 }
074
075 public static String id ()
076 {
077 return _id;
078 }
079
080 public static org.omg.TimeBase.UtcT read (org.omg.CORBA.portable.InputStream istream)
081 {
082 org.omg.TimeBase.UtcT value = new org.omg.TimeBase.UtcT ();
083 value.time = istream.read_ulonglong ();
084 value.inacclo = istream.read_ulong ();
085 value.inacchi = istream.read_ushort ();
086 value.tdf = istream.read_short ();
087 return value;
088 }
089
090 public static void write (org.omg.CORBA.portable.OutputStream ostream, org.omg.TimeBase.UtcT value)
091 {
092 ostream.write_ulonglong (value.time);
093 ostream.write_ulong (value.inacclo);
094 ostream.write_ushort (value.inacchi);
095 ostream.write_short (value.tdf);
096 }
097
098 }