//Generated by the IDL-to-C#-compiler MiddCorIdl //Source: C:/project/MC/MinCorNet/Demo/LongMsg/LongMsg.idl //Sonntag, 16. Januar 2005, 22:47:53 using System; using System.Collections; using Middsol; //Types namespace LongMsg { namespace GreetingsPackage { } } //Interfaces and Value Factories namespace LongMsg { public interface Greetings : GreetingsOperations, Middsol.CORBA.Object, Middsol.CORBA.portable.IDLEntity { } } //Interface Operations and Value Types namespace LongMsg { public interface GreetingsOperations { byte[] longByteSeq( byte[] a_oParam ); string longString( string a_strParam ); } } //Helpers namespace LongMsg { public class GreetingsHelper { private static string _id = "IDL:LongMsg/Greetings:1.0"; public static string id() { return _id; } private static Middsol.CORBA.TypeCode _typeCode = null; public static Middsol.CORBA.TypeCode type() { if ( _typeCode==null ) _typeCode = create_type(); return _typeCode; } public static Middsol.CORBA.TypeCode create_type() { Middsol.CORBA.TypeCode typeCode = Middsol.CORBA._ORB.ORB().create_interface_tc( id(), "Greetings" ); return typeCode; } public static void insert( Middsol.CORBA.Any a, Greetings s ) { a.type( type()); write( a.create_output_stream(), s ); } public static Greetings extract( Middsol.CORBA.Any a ) { return read( a.create_input_stream() ); } public static void write( Middsol.CORBA.portable.OutputStream outpStream, Greetings s ) { outpStream.write_Object ((Middsol.CORBA.Object) s); } public static Greetings read( Middsol.CORBA.portable.InputStream inpStream ) { return narrow ( inpStream.read_Object() ); } public static Greetings narrow( Middsol.CORBA.Object obj ) { if( obj == null ) { return null; } if ( obj is Greetings ) { return (Greetings) obj; } if( obj._is_a( id() ) ) { _GreetingsStub stub = new _GreetingsStub(); stub._set_delegate(((Middsol.CORBA.portable.ObjectImpl)obj)._get_delegate()); return stub; } throw new Middsol.CORBA.BAD_PARAM("Narrow failed"); } } namespace GreetingsPackage { public class TByteLstHelper { private static string _id = "IDL:LongMsg/Greetings/TByteLst:1.0"; public static string id() { return _id; } private static Middsol.CORBA.TypeCode _typeCode = null; public static Middsol.CORBA.TypeCode type() { if ( _typeCode==null ) _typeCode = create_type(); return _typeCode; } public static Middsol.CORBA.TypeCode create_type() { Middsol.CORBA.TypeCode typeCode = Middsol.CORBA._ORB.ORB().get_primitive_tc( Middsol.CORBA.TCKind.tk_octet ); typeCode = Middsol.CORBA._ORB.ORB().create_sequence_tc( 0, typeCode ); typeCode = Middsol.CORBA._ORB.ORB().create_alias_tc( id(), "TByteLst", typeCode ); return typeCode; } public static void insert( Middsol.CORBA.Any a, byte[] s ) { a.type( type()); write( a.create_output_stream(), s ); } public static byte[] extract( Middsol.CORBA.Any a ) { return read( a.create_input_stream() ); } public static void write( Middsol.CORBA.portable.OutputStream outpStream, byte[] s) { if ( (System.Object)s == null ) { outpStream.write_long( 0 ); return; } outpStream.write_long( s.Length ); for ( int idx0=0; idx0