Package org.omg.CORBA

Examples of org.omg.CORBA.DoubleHolder


        a_short.value = in.read_short();

        StringHolder a_string = new StringHolder();
        a_string.value = in.read_string();

        DoubleHolder a_double = new DoubleHolder();
        int result = passSimple(an_octet, a_long, a_short, a_string, a_double);
        out = rh.createReply();
        out.write_long(result);
        out.write_octet(an_octet.value);
        out.write_short(a_short.value);
View Full Code Here


    ByteHolder a_byte = new ByteHolder((byte) 0);
    ShortHolder a_short = new ShortHolder((short) 3);
    StringHolder a_string = new StringHolder("[string 4]");

    // This is an 'out' parameter; the value must not be passed to servant.
    DoubleHolder a_double = new DoubleHolder(56.789);

    int returned = object.passSimple(a_byte, 2, a_short, a_string, a_double);

    assertEquals("Returned value", returned, 452572);
View Full Code Here

    ByteHolder a_byte = new ByteHolder((byte) 0);
    ShortHolder a_short = new ShortHolder((short) 3);
    StringHolder a_string = new StringHolder("[string 4]");

    // This is an 'out' parameter; the value must not be passed to servant.
    DoubleHolder a_double = new DoubleHolder(56.789);

    r.add_inout_arg().insert_octet((byte) 0);
    r.add_in_arg().insert_long(2);
    r.add_inout_arg().insert_short((short) 3);
    r.add_inout_arg().insert_string("[string 4]");
View Full Code Here

    public void test_double_streamable()
        throws Exception
    {
        double testValue = 4711.0;
        Any outAny = setup.getClientOrb().create_any();
        outAny.insert_Streamable(new DoubleHolder(testValue));
        assertEquals(testValue, outAny.extract_double(), 0.0);

        Any inAny = server.bounce_any(outAny);

        assertEquals(testValue, inAny.extract_double(), 0.0);
View Full Code Here

    }

    @Test
    public void test_pass_out_double()
    {
        DoubleHolder x = new DoubleHolder( 1.0 );
        server.pass_out_double( x );
        assertEquals( 1234E12, x.value, 0 );
    }
View Full Code Here

    }

    @Test
    public void test_pass_inout_double()
    {
        DoubleHolder x = new DoubleHolder( -23.4 );
        server.pass_inout_double( x );
        assertEquals( -22.4, x.value, 0 );
    }
View Full Code Here

    public void test_double_streamable()
        throws Exception
    {
        double testValue = 4711.0;
        Any outAny = setup.getClientOrb().create_any();
        outAny.insert_Streamable(new DoubleHolder(testValue));
        assertEquals(testValue, outAny.extract_double(), 0.0);

        Any inAny = server.bounce_any(outAny);

        assertEquals(testValue, inAny.extract_double(), 0.0);
View Full Code Here

        BufferedReader reader = new BufferedReader(new FileReader(args[0]));

        // resolve name to get a reference to our server
        MyServer server = MyServerHelper.narrow(orb.string_to_object(reader.readLine()));

        DoubleHolder doh = new DoubleHolder();
        server.addNums( (double)5, (double)6, doh);
        System.out.println("addNums 5 and 6 gives: " + doh.value);

        String stringSeq[];
        stringSeqHolder seqHolder = new stringSeqHolder( );
View Full Code Here

TOP

Related Classes of org.omg.CORBA.DoubleHolder

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.