/*******************************************************************************
* 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 "pointingOffsetEvent"
* @author JacORB IDL compiler
*/
public final class pointingOffsetEventHelper
{
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.pointingOffsetEventHelper.id(),"pointingOffsetEvent",new org.omg.CORBA.StructMember[]{new org.omg.CORBA.StructMember("alt", org.omg.CORBA.ORB.init().get_primitive_tc(org.omg.CORBA.TCKind.from_int(7)), null),new org.omg.CORBA.StructMember("az", org.omg.CORBA.ORB.init().get_primitive_tc(org.omg.CORBA.TCKind.from_int(7)), 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.pointingOffsetEvent s)
{
any.type(type());
write( any.create_output_stream(),s);
}
public static tdem.TDEM_TOPICS.pointingOffsetEvent extract (final org.omg.CORBA.Any any)
{
return read(any.create_input_stream());
}
public static String id()
{
return "IDL:tdem/TDEM_TOPICS/pointingOffsetEvent:1.0";
}
public static tdem.TDEM_TOPICS.pointingOffsetEvent read (final org.omg.CORBA.portable.InputStream in)
{
tdem.TDEM_TOPICS.pointingOffsetEvent result = new tdem.TDEM_TOPICS.pointingOffsetEvent();
result.alt=in.read_double();
result.az=in.read_double();
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.pointingOffsetEvent s)
{
out.write_double(s.alt);
out.write_double(s.az);
out.write_long(s.key);
out.write_longlong(s.timestamp);
}
}