Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
 package org.omg.dds;


Generated from IDL interface "MultiTopic".

Author(s):
JacORB IDL compiler V 3.5
Version:
generated at 11-Jul-2014 12:35:22
 
public abstract class MultiTopicPOA
	static private final java.util.HashMap<String,Integerm_opsHash = new java.util.HashMap<String,Integer>();
	static
	{
		.put ( "get_participant", Integer.valueOf(0));
		.put ( "get_expression_parameters", Integer.valueOf(1));
		.put ( "get_subscription_expression", Integer.valueOf(2));
		.put ( "set_expression_parameters", Integer.valueOf(3));
		.put ( "get_type_name", Integer.valueOf(4));
		.put ( "get_name", Integer.valueOf(5));
	}
	private String[] ids = {"IDL:omg.org/dds/MultiTopic:1.0","IDL:omg.org/dds/TopicDescription:1.0"};
	{
		org.omg.dds.MultiTopic __r = org.omg.dds.MultiTopicHelper.narrow(__o);
		return __r;
	}
	{
		org.omg.CORBA.Object __o = _this_object(orb) ;
		org.omg.dds.MultiTopic __r = org.omg.dds.MultiTopicHelper.narrow(__o);
		return __r;
	}
	{
		// do something
		// quick lookup of operation
		java.lang.Integer opsIndex = (java.lang.Integer).get ( method );
		if ( null == opsIndex )
			throw new org.omg.CORBA.BAD_OPERATION(method + " not found");
		switch ( opsIndex.intValue() )
		{
			case 0: // get_participant
			{
				_out = handler.createReply();
				org.omg.dds.DomainParticipantHelper.write(_out,get_participant());
				break;
			}
			case 1: // get_expression_parameters
			{
				_out = handler.createReply();
				org.omg.dds.StringSeqHelper.write(_out,get_expression_parameters());
				break;
			}
			case 2: // get_subscription_expression
			{
				_out = handler.createReply();
_out.write_stringtmpResult24 );
				break;
			}
			case 3: // set_expression_parameters
			{
				java.lang.String[] _arg0=org.omg.dds.StringSeqHelper.read(_input);
				_out = handler.createReply();
				break;
			}
			case 4: // get_type_name
			{
				_out = handler.createReply();
				java.lang.String tmpResult25 = get_type_name();
_out.write_stringtmpResult25 );
				break;
			}
			case 5: // get_name
			{
				_out = handler.createReply();
				java.lang.String tmpResult26 = get_name();
_out.write_stringtmpResult26 );
				break;
			}
		}
		return _out;
	}
	public String[] _all_interfaces(org.omg.PortableServer.POA poabyte[] obj_id)
	{
		return ;
	}
New to GrepCode? Check out our FAQ X