/******************************************************************************* * ALMA - Atacama Large Millimeter Array * Copyright (c) ESO - European Southern Observatory, 2011 * (in the framework of the ALMA collaboration). * All rights reserved. * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundation; either * version 2.1 of the License, or (at your option) any later version. * * This library is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public * License along with this library; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA *******************************************************************************/ package tdem.TDEM_TOPICS; /** * Generated from IDL definition of struct "pttOffsetEvent" * @author JacORB IDL compiler */ public final class pttOffsetEventHelper { private static org.omg.CORBA.TypeCode _type = null; public static org.omg.CORBA.TypeCode type () { if (_type == null) { _type = org.omg.CORBA.ORB.init().create_struct_tc(tdem.TDEM_TOPICS.pttOffsetEventHelper.id(),"pttOffsetEvent",new org.omg.CORBA.StructMember[]{new org.omg.CORBA.StructMember("value", tdem.TDEM_TOPICS.actuatorSpaceHelper.type(), null),new org.omg.CORBA.StructMember("key", org.omg.CORBA.ORB.init().get_primitive_tc(org.omg.CORBA.TCKind.from_int(3)), null),new org.omg.CORBA.StructMember("timestamp", alma.ACS.TimeIntervalHelper.type(), null)}); } return _type; } public static void insert (final org.omg.CORBA.Any any, final tdem.TDEM_TOPICS.pttOffsetEvent s) { any.type(type()); write( any.create_output_stream(),s); } public static tdem.TDEM_TOPICS.pttOffsetEvent extract (final org.omg.CORBA.Any any) { return read(any.create_input_stream()); } public static String id() { return "IDL:tdem/TDEM_TOPICS/pttOffsetEvent:1.0"; } public static tdem.TDEM_TOPICS.pttOffsetEvent read (final org.omg.CORBA.portable.InputStream in) { tdem.TDEM_TOPICS.pttOffsetEvent result = new tdem.TDEM_TOPICS.pttOffsetEvent(); result.value=tdem.TDEM_TOPICS.actuatorSpaceHelper.read(in); result.key=in.read_long(); result.timestamp=in.read_longlong(); return result; } public static void write (final org.omg.CORBA.portable.OutputStream out, final tdem.TDEM_TOPICS.pttOffsetEvent s) { tdem.TDEM_TOPICS.actuatorSpaceHelper.write(out,s.value); out.write_long(s.key); out.write_longlong(s.timestamp); } }