fr.esrf.Tango.ChangeEventPropHelper Maven / Gradle / Ivy
package fr.esrf.Tango;
/**
* Generated from IDL struct "ChangeEventProp".
*
* @author JacORB IDL compiler V 3.8
* @version generated at Oct 21, 2017 6:12:33 PM
*/
public abstract class ChangeEventPropHelper
{
private volatile static org.omg.CORBA.TypeCode _type;
public static org.omg.CORBA.TypeCode type ()
{
if (_type == null)
{
synchronized(ChangeEventPropHelper.class)
{
if (_type == null)
{
_type = org.omg.CORBA.ORB.init().create_struct_tc(fr.esrf.Tango.ChangeEventPropHelper.id(),"ChangeEventProp",new org.omg.CORBA.StructMember[]{new org.omg.CORBA.StructMember("rel_change", org.omg.CORBA.ORB.init().create_string_tc(0), null),new org.omg.CORBA.StructMember("abs_change", org.omg.CORBA.ORB.init().create_string_tc(0), null),new org.omg.CORBA.StructMember("extensions", org.omg.CORBA.ORB.init().create_alias_tc(fr.esrf.Tango.DevVarStringArrayHelper.id(), "DevVarStringArray",org.omg.CORBA.ORB.init().create_sequence_tc(0, org.omg.CORBA.ORB.init().create_string_tc(0))), null)});
}
}
}
return _type;
}
public static void insert (final org.omg.CORBA.Any any, final fr.esrf.Tango.ChangeEventProp s)
{
any.type(type());
write( any.create_output_stream(),s);
}
public static fr.esrf.Tango.ChangeEventProp extract (final org.omg.CORBA.Any any)
{
org.omg.CORBA.portable.InputStream in = any.create_input_stream();
try
{
return read (in);
}
finally
{
try
{
in.close();
}
catch (java.io.IOException e)
{
throw new RuntimeException("Unexpected exception " + e.toString() );
}
}
}
public static String id()
{
return "IDL:Tango/ChangeEventProp:1.0";
}
public static fr.esrf.Tango.ChangeEventProp read (final org.omg.CORBA.portable.InputStream in)
{
fr.esrf.Tango.ChangeEventProp result = new fr.esrf.Tango.ChangeEventProp();
result.rel_change=in.read_string();
result.abs_change=in.read_string();
result.extensions = fr.esrf.Tango.DevVarStringArrayHelper.read(in);
return result;
}
public static void write (final org.omg.CORBA.portable.OutputStream out, final fr.esrf.Tango.ChangeEventProp s)
{
java.lang.String tmpResult42 = s.rel_change;
out.write_string( tmpResult42 );
java.lang.String tmpResult43 = s.abs_change;
out.write_string( tmpResult43 );
fr.esrf.Tango.DevVarStringArrayHelper.write(out,s.extensions);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy