1 | package Counter; |
2 | abstract public class _sk_Count implements CORBA.Object, Count { |
3 | public static void exec(Count _self, IOStream _stream, int _methodId) { |
4 | switch(methodId) { |
5 | case 0: // call increment |
6 | int result = _self.increment(); |
7 | _stream.write_int(_result); return; |
8 | case 1: // set sum value |
9 | int value = _stream.read_int(); |
10 | _self.sum(value); return; |
11 | case 2: // get sum value |
12 | int value = _self.sum(); |
13 | _stream.write_int(value); |
14 | } |
15 | |
16 | |
17 | } |
18 | Note: This code is created automatically by |
19 | IDL->Java pre-compiler from the IDL spec |