package Counter; |
abstract public class _sk_Count implements CORBA.Object, Count { |
public static void exec(Count _self, IOStream _stream, int _methodId) { |
switch(methodId) { |
case 0: // call increment |
int result = _self.increment(); |
_stream.write_int(_result); return; |
case 1: // set sum value |
int value = _stream.read_int(); |
_self.sum(value); return; |
case 2: // get sum value |
int value = _self.sum(); |
_stream.write_int(value); |
} |
} |
Note: This code is created automatically by |
IDL->Java pre-compiler from the IDL spec |