fr.esrf.Tango.AttributeValue_5Helper Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of JavaTangoIDL Show documentation
Show all versions of JavaTangoIDL Show documentation
Java Tango IDL (compiled with jacorb IDL compiler, http://www.jacorb.org)
The newest version!
package fr.esrf.Tango;
/**
* Generated from IDL struct "AttributeValue_5".
*
* @author JacORB IDL compiler V 3.8
* @version generated at Oct 21, 2017 6:12:33 PM
*/
public abstract class AttributeValue_5Helper
{
private volatile static org.omg.CORBA.TypeCode _type;
public static org.omg.CORBA.TypeCode type ()
{
if (_type == null)
{
synchronized(AttributeValue_5Helper.class)
{
if (_type == null)
{
_type = org.omg.CORBA.ORB.init().create_struct_tc(fr.esrf.Tango.AttributeValue_5Helper.id(),"AttributeValue_5",new org.omg.CORBA.StructMember[]{new org.omg.CORBA.StructMember("value", fr.esrf.Tango.AttrValUnionHelper.type(), null),new org.omg.CORBA.StructMember("quality", org.omg.CORBA.ORB.init().create_enum_tc(fr.esrf.Tango.AttrQualityHelper.id(),"AttrQuality",new String[]{"ATTR_VALID","ATTR_INVALID","ATTR_ALARM","ATTR_CHANGING","ATTR_WARNING"}), null),new org.omg.CORBA.StructMember("data_format", org.omg.CORBA.ORB.init().create_enum_tc(fr.esrf.Tango.AttrDataFormatHelper.id(),"AttrDataFormat",new String[]{"SCALAR","SPECTRUM","IMAGE","FMT_UNKNOWN"}), null),new org.omg.CORBA.StructMember("data_type", org.omg.CORBA.ORB.init().get_primitive_tc(org.omg.CORBA.TCKind.from_int(3)), null),new org.omg.CORBA.StructMember("time", org.omg.CORBA.ORB.init().create_struct_tc(fr.esrf.Tango.TimeValHelper.id(),"TimeVal",new org.omg.CORBA.StructMember[]{new org.omg.CORBA.StructMember("tv_sec", org.omg.CORBA.ORB.init().get_primitive_tc(org.omg.CORBA.TCKind.from_int(3)), null),new org.omg.CORBA.StructMember("tv_usec", org.omg.CORBA.ORB.init().get_primitive_tc(org.omg.CORBA.TCKind.from_int(3)), null),new org.omg.CORBA.StructMember("tv_nsec", org.omg.CORBA.ORB.init().get_primitive_tc(org.omg.CORBA.TCKind.from_int(3)), null)}), null),new org.omg.CORBA.StructMember("name", org.omg.CORBA.ORB.init().create_string_tc(0), null),new org.omg.CORBA.StructMember("r_dim", org.omg.CORBA.ORB.init().create_struct_tc(fr.esrf.Tango.AttributeDimHelper.id(),"AttributeDim",new org.omg.CORBA.StructMember[]{new org.omg.CORBA.StructMember("dim_x", org.omg.CORBA.ORB.init().get_primitive_tc(org.omg.CORBA.TCKind.from_int(3)), null),new org.omg.CORBA.StructMember("dim_y", org.omg.CORBA.ORB.init().get_primitive_tc(org.omg.CORBA.TCKind.from_int(3)), null)}), null),new org.omg.CORBA.StructMember("w_dim", org.omg.CORBA.ORB.init().create_struct_tc(fr.esrf.Tango.AttributeDimHelper.id(),"AttributeDim",new org.omg.CORBA.StructMember[]{new org.omg.CORBA.StructMember("dim_x", org.omg.CORBA.ORB.init().get_primitive_tc(org.omg.CORBA.TCKind.from_int(3)), null),new org.omg.CORBA.StructMember("dim_y", org.omg.CORBA.ORB.init().get_primitive_tc(org.omg.CORBA.TCKind.from_int(3)), null)}), null),new org.omg.CORBA.StructMember("err_list", org.omg.CORBA.ORB.init().create_alias_tc(fr.esrf.Tango.DevErrorListHelper.id(), "DevErrorList",org.omg.CORBA.ORB.init().create_sequence_tc(0, org.omg.CORBA.ORB.init().create_struct_tc(fr.esrf.Tango.DevErrorHelper.id(),"DevError",new org.omg.CORBA.StructMember[]{new org.omg.CORBA.StructMember("reason", org.omg.CORBA.ORB.init().create_string_tc(0), null),new org.omg.CORBA.StructMember("severity", org.omg.CORBA.ORB.init().create_enum_tc(fr.esrf.Tango.ErrSeverityHelper.id(),"ErrSeverity",new String[]{"WARN","ERR","PANIC"}), null),new org.omg.CORBA.StructMember("desc", org.omg.CORBA.ORB.init().create_string_tc(0), null),new org.omg.CORBA.StructMember("origin", org.omg.CORBA.ORB.init().create_string_tc(0), null)}))), null)});
}
}
}
return _type;
}
public static void insert (final org.omg.CORBA.Any any, final fr.esrf.Tango.AttributeValue_5 s)
{
any.type(type());
write( any.create_output_stream(),s);
}
public static fr.esrf.Tango.AttributeValue_5 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/AttributeValue_5:1.0";
}
public static fr.esrf.Tango.AttributeValue_5 read (final org.omg.CORBA.portable.InputStream in)
{
fr.esrf.Tango.AttributeValue_5 result = new fr.esrf.Tango.AttributeValue_5();
result.value=fr.esrf.Tango.AttrValUnionHelper.read(in);
result.quality=fr.esrf.Tango.AttrQualityHelper.read(in);
result.data_format=fr.esrf.Tango.AttrDataFormatHelper.read(in);
result.data_type=in.read_long();
result.time=fr.esrf.Tango.TimeValHelper.read(in);
result.name=in.read_string();
result.r_dim=fr.esrf.Tango.AttributeDimHelper.read(in);
result.w_dim=fr.esrf.Tango.AttributeDimHelper.read(in);
result.err_list = fr.esrf.Tango.DevErrorListHelper.read(in);
return result;
}
public static void write (final org.omg.CORBA.portable.OutputStream out, final fr.esrf.Tango.AttributeValue_5 s)
{
fr.esrf.Tango.AttrValUnionHelper.write(out,s.value);
fr.esrf.Tango.AttrQualityHelper.write(out,s.quality);
fr.esrf.Tango.AttrDataFormatHelper.write(out,s.data_format);
out.write_long(s.data_type);
fr.esrf.Tango.TimeValHelper.write(out,s.time);
java.lang.String tmpResult41 = s.name;
out.write_string( tmpResult41 );
fr.esrf.Tango.AttributeDimHelper.write(out,s.r_dim);
fr.esrf.Tango.AttributeDimHelper.write(out,s.w_dim);
fr.esrf.Tango.DevErrorListHelper.write(out,s.err_list);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy