Examples of extract_short()


Examples of org.apache.yoko.orb.CORBA.Any.extract_short()

        if (any == null)
            throw new org.omg.DynamicAny.DynAnyPackage.InvalidValue();

        try {
            return any.extract_short();
        } catch (org.omg.CORBA.BAD_OPERATION e) {
            throw new org.omg.DynamicAny.DynAnyPackage.TypeMismatch();
        }
    }
View Full Code Here

Examples of org.apache.yoko.orb.CORBA.Any.extract_short()

        if (any == null)
            throw new org.omg.DynamicAny.DynAnyPackage.InvalidValue();

        try {
            return any.extract_short();
        } catch (org.omg.CORBA.BAD_OPERATION e) {
            throw new org.omg.DynamicAny.DynAnyPackage.TypeMismatch();
        }
    }
View Full Code Here

Examples of org.omg.CORBA.Any.extract_short()

            TEST(d1.get_short() == (short) -53);
            d1.insert_short((short) 32000);
            TEST(d1.get_short() == (short) 32000);

            av = d1.to_any();
            short shortVal = av.extract_short();
            TEST(shortVal == (short) 32000);

            any.insert_short((short) 32000);
            d2 = factory.create_dyn_any(any);
            TEST(d1.equal(d2));
View Full Code Here

Examples of org.omg.CORBA.Any.extract_short()

                s1.next();
            }
            s1.rewind();
            for (i = 0; i < 5; i++) {
                av = s1.get_any();
                s = av.extract_short();
                TEST(s == (short) i);
                s1.next();
            }

            //
View Full Code Here

Examples of org.omg.CORBA.Any.extract_short()

            // change
            //
            s1.seek(1);
            s1.set_length(3);
            av = s1.get_any();
            s = av.extract_short();
            TEST(s == (short) 1);
            TEST(s1.get_length() == 3);
            TEST(s1.component_count() == 3);
            s1.rewind();
            for (i = 0; i < 3; i++) {
View Full Code Here

Examples of org.omg.CORBA.Any.extract_short()

            TEST(s1.get_length() == 3);
            TEST(s1.component_count() == 3);
            s1.rewind();
            for (i = 0; i < 3; i++) {
                av = s1.get_any();
                s = av.extract_short();
                TEST(s == (short) i);
                s1.next();
            }

            //
View Full Code Here

Examples of org.omg.CORBA.Any.extract_short()

            TestAnySeqHelper.insert(any, seq);
            s1.from_any(any);
            s1.rewind();
            for (i = 0; i < 8; i++) {
                av = s1.get_any();
                s = av.extract_short();
                TEST(s == (short) (8 - i));
                s1.next();
            }

            //
View Full Code Here

Examples of org.omg.CORBA.Any.extract_short()

            //
            s1.rewind();
            for (i = 0; i < 8; i++) {
                comp = s1.current_component();
                av = comp.get_any();
                s = av.extract_short();
                TEST(s == (short) (8 - i));
                any.insert_short((short) i);
                comp.insert_any(any);
                av = s1.get_any();
                s = av.extract_short();
View Full Code Here

Examples of org.omg.CORBA.Any.extract_short()

                s = av.extract_short();
                TEST(s == (short) (8 - i));
                any.insert_short((short) i);
                comp.insert_any(any);
                av = s1.get_any();
                s = av.extract_short();
                TEST(s == (short) i);
                s1.next();
            }

            //
View Full Code Here

Examples of org.omg.CORBA.Any.extract_short()

            //
            Any[] anySeq = s1.get_elements();
            TEST(anySeq.length == 8);
            for (i = 0; i < 8; i++) {
                Any p = anySeq[i].extract_any();
                s = p.extract_short();
                TEST(s == (short) i);
            }

            //
            // Test: set_elements()
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.