KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > omg > CORBA > FloatHolder


1 package org.omg.CORBA;
2
3 /**
4  * A Holder class for IDL's out/inout argument passing modes
5  *
6  */

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