Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
 package org.omg.dds;


Generated from IDL struct "TopicDataQosPolicy".

Author(s):
JacORB IDL compiler V 3.5
Version:
generated at 11-Jul-2014 12:35:22
 
public abstract class TopicDataQosPolicyHelper
	private volatile static org.omg.CORBA.TypeCode _type;
	public static org.omg.CORBA.TypeCode type ()
	{
		if ( == null)
		{
			synchronized(TopicDataQosPolicyHelper.class)
			{
				if ( == null)
				{
					 = org.omg.CORBA.ORB.init().create_struct_tc(org.omg.dds.TopicDataQosPolicyHelper.id(),"TopicDataQosPolicy",new org.omg.CORBA.StructMember[]{new org.omg.CORBA.StructMember("value", org.omg.CORBA.ORB.init().create_sequence_tc(0, org.omg.CORBA.ORB.init().get_primitive_tc(org.omg.CORBA.TCKind.from_int(10))), null)});
				}
			}
		}
		return ;
	}
	public static void insert (final org.omg.CORBA.Any anyfinal org.omg.dds.TopicDataQosPolicy s)
	{
		any.type(type());
	}
	public static org.omg.dds.TopicDataQosPolicy extract (final org.omg.CORBA.Any any)
	{
		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:omg.org/dds/TopicDataQosPolicy:1.0";
	}
	{
		int _lresult_value10 = in.read_long();
		try
		{
			 int x = in.available();
			 if ( x > 0 && _lresult_value10 > x )
				{
					throw new org.omg.CORBA.MARSHAL("Sequence length too large. Only " + x + " available and trying to assign " + _lresult_value10);
				}
		}
		catch (java.io.IOException e)
		{
		}
		result.value = new byte[_lresult_value10];
		in.read_octet_array(result.value,0,_lresult_value10);
		return result;
	}
	public static void write (final org.omg.CORBA.portable.OutputStream outfinal org.omg.dds.TopicDataQosPolicy s)
	{
		out.write_long(s.value.length);
		out.write_octet_array(s.value,0,s.value.length);
	}
New to GrepCode? Check out our FAQ X