Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
 package org.omg.dds;


Generated from IDL interface "ReadCondition".

Author(s):
JacORB IDL compiler V 3.5
Version:
generated at 11-Jul-2014 12:35:22
 
public abstract class ReadConditionPOA
	static private final java.util.HashMap<String,Integerm_opsHash = new java.util.HashMap<String,Integer>();
	static
	{
		.put ( "get_datareader", Integer.valueOf(0));
		.put ( "get_instance_state_mask", Integer.valueOf(1));
		.put ( "get_view_state_mask", Integer.valueOf(2));
		.put ( "get_sample_state_mask", Integer.valueOf(3));
		.put ( "get_trigger_value", Integer.valueOf(4));
	}
	private String[] ids = {"IDL:omg.org/dds/ReadCondition:1.0","IDL:omg.org/dds/Condition:1.0"};
	{
		org.omg.dds.ReadCondition __r = org.omg.dds.ReadConditionHelper.narrow(__o);
		return __r;
	}
	{
		org.omg.CORBA.Object __o = _this_object(orb) ;
		org.omg.dds.ReadCondition __r = org.omg.dds.ReadConditionHelper.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_datareader
			{
				_out = handler.createReply();
				org.omg.dds.DataReaderHelper.write(_out,get_datareader());
				break;
			}
			case 1: // get_instance_state_mask
			{
				_out = handler.createReply();
				break;
			}
			case 2: // get_view_state_mask
			{
				_out = handler.createReply();
				break;
			}
			case 3: // get_sample_state_mask
			{
				_out = handler.createReply();
				break;
			}
			case 4: // get_trigger_value
			{
				_out = handler.createReply();
				break;
			}
		}
		return _out;
	}
	public String[] _all_interfaces(org.omg.PortableServer.POA poabyte[] obj_id)
	{
		return ;
	}
New to GrepCode? Check out our FAQ X