//Generated by the IDL-to-C#-compiler MiddCorIdl //Source: C:/project/MC/MinCorNet/Demo/ListArrayStruc/ListArray.idl //Sonntag, 16. Januar 2005, 22:47:49 using System; using System.Collections; using Middsol; //Types namespace ListArray { namespace GreetingsPackage { namespace FamilyPackage { } public struct Family: Middsol.CORBA.portable.IDLEntity { public string strFamilyname; public string[] strName; public Family( string strFamilyname, string[] strName ) { this.strFamilyname = strFamilyname; this.strName = strName; } } namespace ReligiousHolidayPackage { } public struct ReligiousHoliday: Middsol.CORBA.portable.IDLEntity { public string strHolidayName; public GreetingsPackage.Family[] lstFamilys; public ReligiousHoliday( string strHolidayName, GreetingsPackage.Family[] lstFamilys ) { this.strHolidayName = strHolidayName; this.lstFamilys = lstFamilys; } } public struct maxReligiousHolidays: Middsol.CORBA.portable.IDLEntity { public const int value = 2; } } } //Interfaces and Value Factories namespace ListArray { public interface Greetings : GreetingsOperations, Middsol.CORBA.Object, Middsol.CORBA.portable.IDLEntity { } } //Interface Operations and Value Types namespace ListArray { public interface GreetingsOperations { void createGreetingsList( GreetingsPackage.ReligiousHoliday[] a_arHolidayLst ); GreetingsPackage.Family[] hello( string a_strHolidayName ); } } //Helpers namespace ListArray { public class GreetingsHelper { private static string _id = "IDL:ListArray/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 TNameLstHelper { private static string _id = "IDL:ListArray/Greetings/TNameLst: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_string_tc(0); typeCode = Middsol.CORBA._ORB.ORB().create_sequence_tc( 5, typeCode ); typeCode = Middsol.CORBA._ORB.ORB().create_alias_tc( id(), "TNameLst", typeCode ); return typeCode; } public static void insert( Middsol.CORBA.Any a, string[] s ) { a.type( type()); write( a.create_output_stream(), s ); } public static string[] extract( Middsol.CORBA.Any a ) { return read( a.create_input_stream() ); } public static void write( Middsol.CORBA.portable.OutputStream outpStream, string[] s) { if ( (System.Object)s == null ) { outpStream.write_long( 0 ); return; } if ( s.Length > 5 ) throw new Middsol.CORBA.MARSHAL("Sequence length incorrect!"); outpStream.write_long( s.Length ); for ( int idx0=0; idx0 5 ) throw new Middsol.CORBA.MARSHAL("Sequence length incorrect!"); result = new string[Size0]; for ( int idx4=0; idx4