1 package org.omg.CORBA; 2 3 7 8 9 public class FloatHolder 10 implements org.omg.CORBA.portable.Streamable  11 { 12 public float value; 13 14 public FloatHolder(){} 15 16 public FloatHolder(float o) 17 { 18 value = o; 19 } 20 21 public TypeCode _type() 22 { 23 return ORB.init().get_primitive_tc(TCKind.tk_float); 24 } 25 26 public void _read(org.omg.CORBA.portable.InputStream in) 27 { 28 value = in.read_float(); 29 } 30 31 public void _write(org.omg.CORBA.portable.OutputStream out) 32 { 33 out.write_float(value); 34 } 35 36 } 37 38 39 | Popular Tags |