00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012 package cast.cdl.testing;
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023 public class CASTTestStruct extends Ice.ObjectImpl
00024 {
00025 public CASTTestStruct()
00026 {
00027 }
00028
00029 public CASTTestStruct(long count, cast.cdl.WorkingMemoryChange change)
00030 {
00031 this.count = count;
00032 this.change = change;
00033 }
00034
00035 private static class __F implements Ice.ObjectFactory
00036 {
00037 public Ice.Object
00038 create(String type)
00039 {
00040 assert(type.equals(ice_staticId()));
00041 return new CASTTestStruct();
00042 }
00043
00044 public void
00045 destroy()
00046 {
00047 }
00048 }
00049 private static Ice.ObjectFactory _factory = new __F();
00050
00051 public static Ice.ObjectFactory
00052 ice_factory()
00053 {
00054 return _factory;
00055 }
00056
00057 public static final String[] __ids =
00058 {
00059 "::Ice::Object",
00060 "::cast::cdl::testing::CASTTestStruct"
00061 };
00062
00063 public boolean
00064 ice_isA(String s)
00065 {
00066 return java.util.Arrays.binarySearch(__ids, s) >= 0;
00067 }
00068
00069 public boolean
00070 ice_isA(String s, Ice.Current __current)
00071 {
00072 return java.util.Arrays.binarySearch(__ids, s) >= 0;
00073 }
00074
00075 public String[]
00076 ice_ids()
00077 {
00078 return __ids;
00079 }
00080
00081 public String[]
00082 ice_ids(Ice.Current __current)
00083 {
00084 return __ids;
00085 }
00086
00087 public String
00088 ice_id()
00089 {
00090 return __ids[1];
00091 }
00092
00093 public String
00094 ice_id(Ice.Current __current)
00095 {
00096 return __ids[1];
00097 }
00098
00099 public static String
00100 ice_staticId()
00101 {
00102 return __ids[1];
00103 }
00104
00105 public void
00106 __write(IceInternal.BasicStream __os)
00107 {
00108 __os.writeTypeId(ice_staticId());
00109 __os.startWriteSlice();
00110 __os.writeLong(count);
00111 change.__write(__os);
00112 __os.endWriteSlice();
00113 super.__write(__os);
00114 }
00115
00116 public void
00117 __read(IceInternal.BasicStream __is, boolean __rid)
00118 {
00119 if(__rid)
00120 {
00121 __is.readTypeId();
00122 }
00123 __is.startReadSlice();
00124 count = __is.readLong();
00125 change = new cast.cdl.WorkingMemoryChange();
00126 change.__read(__is);
00127 __is.endReadSlice();
00128 super.__read(__is, true);
00129 }
00130
00131 public void
00132 __write(Ice.OutputStream __outS)
00133 {
00134 __outS.writeTypeId(ice_staticId());
00135 __outS.startSlice();
00136 __outS.writeLong(count);
00137 change.ice_write(__outS);
00138 __outS.endSlice();
00139 super.__write(__outS);
00140 }
00141
00142 public void
00143 __read(Ice.InputStream __inS, boolean __rid)
00144 {
00145 if(__rid)
00146 {
00147 __inS.readTypeId();
00148 }
00149 __inS.startSlice();
00150 count = __inS.readLong();
00151 change = new cast.cdl.WorkingMemoryChange();
00152 change.ice_read(__inS);
00153 __inS.endSlice();
00154 super.__read(__inS, true);
00155 }
00156
00157 public long count;
00158
00159 public cast.cdl.WorkingMemoryChange change;
00160 }