package org.dbxml.core.corba.db;

/**
 *	Generated from IDL definition of struct "NamedVal"
 *	@author JacORB IDL compiler 
 */

public class NamedValHelper
{
	private static org.omg.CORBA.TypeCode _type = org.omg.CORBA.ORB.init().create_struct_tc(org.dbxml.core.corba.db.NamedValHelper.id(),"NamedVal",new org.omg.CORBA.StructMember[]{new org.omg.CORBA.StructMember("nam",org.omg.CORBA.ORB.init().create_alias_tc( org.dbxml.core.corba.db.NameHelper.id(),"Name",org.omg.CORBA.ORB.init().create_string_tc(0)),null),new org.omg.CORBA.StructMember("val",org.omg.CORBA.ORB.init().create_alias_tc( org.dbxml.core.corba.db.ValueHelper.id(),"Value",org.omg.CORBA.ORB.init().create_string_tc(0)),null)});
	public NamedValHelper ()
	{
	}
	public static void insert(org.omg.CORBA.Any any, org.dbxml.core.corba.db.NamedVal s)
	{
		any.type(type());
		write( any.create_output_stream(),s);
	}
	public static org.dbxml.core.corba.db.NamedVal extract(org.omg.CORBA.Any any)
	{
		return read(any.create_input_stream());
	}
	public static org.omg.CORBA.TypeCode type()
	{
		return _type;
	}
	public static String id()
	{
		return "IDL:org/dbxml/core/corba/db/NamedVal:1.0";
	}
	public static org.dbxml.core.corba.db.NamedVal read(org.omg.CORBA.portable.InputStream in)
	{
		org.dbxml.core.corba.db.NamedVal result = new org.dbxml.core.corba.db.NamedVal();
		result.nam = org.dbxml.core.corba.db.NameHelper.read(in);
		result.val = org.dbxml.core.corba.db.ValueHelper.read(in);
		return result;
	}
	public static void write(org.omg.CORBA.portable.OutputStream out, org.dbxml.core.corba.db.NamedVal s)
	{
		org.dbxml.core.corba.db.NameHelper.write(out,s.nam);
		org.dbxml.core.corba.db.ValueHelper.write(out,s.val);
	}
}
