KickJava   Java API By Example, From Geeks To Geeks.

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


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

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