
fr.esrf.Tango.DispLevelHelper 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)
package fr.esrf.Tango;
/**
* Generated from IDL enum "DispLevel".
*
* @author JacORB IDL compiler V 3.8
* @version generated at Oct 21, 2017 8:28:20 AM
*/
public abstract class DispLevelHelper
{
private volatile static org.omg.CORBA.TypeCode _type;
public static org.omg.CORBA.TypeCode type ()
{
if (_type == null)
{
synchronized(DispLevelHelper.class)
{
if (_type == null)
{
_type = org.omg.CORBA.ORB.init().create_enum_tc(fr.esrf.Tango.DispLevelHelper.id(),"DispLevel",new String[]{"OPERATOR","EXPERT","DL_UNKNOWN"});
}
}
}
return _type;
}
public static void insert (final org.omg.CORBA.Any any, final fr.esrf.Tango.DispLevel s)
{
any.type(type());
write( any.create_output_stream(),s);
}
public static fr.esrf.Tango.DispLevel 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/DispLevel:1.0";
}
public static DispLevel read (final org.omg.CORBA.portable.InputStream in)
{
return DispLevel.from_int(in.read_long());
}
public static void write (final org.omg.CORBA.portable.OutputStream out, final DispLevel s)
{
out.write_long(s.value());
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy