// javastubs/Test1/A2.java
// Stubs for "Test1"
//
// This file was automatically generated with ILU (version 2.0beta1) tools
// at Tue Sep 21 11:47:02 1999 by `nobody'
// running "c:/iluwin/bin/java-stubber.exe" of Tue Sep 21 10:50:42 1999
// on "C:/iluwin/examples/pickle/Test1.isl" of Mon Sep 20 15:54:01 1999,
// and "c:/iluwin/interfaces/ilu.isl" of Mon Sep 20 15:51:47 1999.
//
// ILU is Copyright 1991-1999 Xerox Corporation, All Rights Reserved.
// ILU information:  ftp://ftp.parc.xerox.com/pub/ilu/ilu.html.



package Test1;


/** 
 * Class representing an ILU array type.
 */
public final class A2 { 
  public static int szFunc(xerox.ilu.IluCall _call, int[][] _value)
    throws org.omg.CORBA.SystemException {
        int _size = _call.szArray(4);
        for (int _i0 = 0; _i0 < 2; _i0++) {
            for (int _i1 = 0; _i1 < 2; _i1++) {
                _size += _call.szInt32(_value[_i0][_i1]);
            }
        }
    _call.endArray();
    return _size;
  }

  public static void outFunc(xerox.ilu.IluCall _call, int[][] _value)
    throws org.omg.CORBA.SystemException {
        _call.outArray(4);
        if (_value.length != 2)
            throw new org.omg.CORBA.BAD_PARAM("bad array length");
        for (int _i0 = 0; _i0 < 2; _i0++) {
                        if (_value[_i0].length != 2)
                throw new org.omg.CORBA.BAD_PARAM("bad array length");
            for (int _i1 = 0; _i1 < 2; _i1++) {
                                _call.outInt32(_value[_i0][_i1]);
            }
        }
    _call.endArray();
  }

  public static int[][] inFunc(xerox.ilu.IluCall _call)
    throws org.omg.CORBA.SystemException {
    _call.inArray();
    int[][] _value = new int[2][2];
    for (int _i0 = 0; _i0 < 2; _i0++)
        for (int _i1 = 0; _i1 < 2; _i1++)
            _value[_i0][_i1] = _call.inInt32();
    _call.endArray();
    return _value;
  }

    static{
        int[] dims = new int[2];
        dims[0] = 2;
        dims[1] = 2;
        xerox.ilu.IluTypeRep.registerArrayType(
            "A2", //name
            "Test1", //islIfName
            null, //islIfBrand
            "ilut:jKUfzilOOIs4jisKnS3QR74wuhm", //uid
            "ilut:ggrbg-q7UoqiAlNTWvqkwfZ4rlY", //baseUID
            2, //dimcnt
            dims); //dims
    }//static
}// A2
