All Downloads are FREE. Search and download functionalities are using the official Maven repository.

fr.esrf.Tango.DevStringHelper Maven / Gradle / Ivy

package fr.esrf.Tango;

/**
 * Generated from IDL alias "DevString".
 *
 * @author JacORB IDL compiler V 3.8
 * @version generated at Oct 21, 2017 6:12:33 PM
 */

public abstract class DevStringHelper
{
	private volatile static org.omg.CORBA.TypeCode _type;

	public static void insert (org.omg.CORBA.Any any, java.lang.String s)
	{
		any.type (type ());
		write (any.create_output_stream (), s);
	}

	public static java.lang.String extract (final org.omg.CORBA.Any any)
	{
		if ( any.type().kind() == org.omg.CORBA.TCKind.tk_null)
		{
			throw new org.omg.CORBA.BAD_OPERATION ("Can't extract from Any with null type.");
		}
		return read (any.create_input_stream ());
	}

	public static org.omg.CORBA.TypeCode type ()
	{
		if (_type == null)
		{
			synchronized(DevStringHelper.class)
			{
				if (_type == null)
				{
					_type = org.omg.CORBA.ORB.init().create_alias_tc(fr.esrf.Tango.DevStringHelper.id(), "DevString",org.omg.CORBA.ORB.init().create_string_tc(0));
				}
			}
		}
		return _type;
	}

	public static String id()
	{
		return "IDL:Tango/DevString:1.0";
	}
	public static java.lang.String read (final org.omg.CORBA.portable.InputStream _in)
	{
		java.lang.String _result;
		_result=_in.read_string();
		return _result;
	}

	public static void write (final org.omg.CORBA.portable.OutputStream _out, java.lang.String _s)
	{
		java.lang.String tmpResult0 = _s;
_out.write_string( tmpResult0 );
	}
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy