Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
 package org.omg.dds;


Generated from IDL interface "Topic".

Author(s):
JacORB IDL compiler V 3.5
Version:
generated at 11-Jul-2014 12:35:22
 
public abstract class TopicHelper
	private volatile static org.omg.CORBA.TypeCode _type;
	public static org.omg.CORBA.TypeCode type ()
	{
		if ( == null)
		{
			synchronized(TopicHelper.class)
			{
				if ( == null)
				{
					 = org.omg.CORBA.ORB.init().create_interface_tc("IDL:omg.org/dds/Topic:1.0""Topic");
				}
			}
		}
		return ;
	}
	public static void insert (final org.omg.CORBA.Any anyfinal org.omg.dds.Topic s)
	{
	}
	public static org.omg.dds.Topic extract(final org.omg.CORBA.Any any)
	{
		return narrow(any.extract_Object()) ;
	}
	public static String id()
	{
		return "IDL:omg.org/dds/Topic:1.0";
	}
	public static Topic read(final org.omg.CORBA.portable.InputStream in)
	{
		return narrow(in.read_Object(org.omg.dds._TopicStub.class));
	}
	public static void write(final org.omg.CORBA.portable.OutputStream _outfinal org.omg.dds.Topic s)
	{
		_out.write_Object(s);
	}
	public static org.omg.dds.Topic narrow(final org.omg.CORBA.Object obj)
	{
		if (obj == null)
		{
			return null;
		}
		else if (obj instanceof org.omg.dds.Topic)
		{
			return (org.omg.dds.Topic)obj;
		}
		else if (obj._is_a("IDL:omg.org/dds/Topic:1.0"))
		{
			stub = new org.omg.dds._TopicStub();
			return stub;
		}
		else
		{
			throw new org.omg.CORBA.BAD_PARAM("Narrow failed");
		}
	}
	public static org.omg.dds.Topic unchecked_narrow(final org.omg.CORBA.Object obj)
	{
		if (obj == null)
		{
			return null;
		}
		else if (obj instanceof org.omg.dds.Topic)
		{
			return (org.omg.dds.Topic)obj;
		}
		else
		{
			stub = new org.omg.dds._TopicStub();
			return stub;
		}
	}
New to GrepCode? Check out our FAQ X