Examples of insert_float()


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

                        break;
                    }
                case TCKind._tk_float:
                    {
                        float value = src.read_float();
                        tagValue.insert_float(value);
                        dst.write_float(value);
                        break;
                    }
                case TCKind._tk_double:
                    {
View Full Code Here

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

                // zero for numeric types
                returnValue.insert_ulonglong((long)0);
                break;
            case TCKind._tk_float:
                // zero for numeric types
                returnValue.insert_float((float)0.0);
                break;
            case TCKind._tk_double:
                // zero for numeric types
                returnValue.insert_double((double)0.0);
                break;
View Full Code Here

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

                        break;
                    }
                case TCKind._tk_float:
                    {
                        float value = src.read_float();
                        tagValue.insert_float(value);
                        dst.write_float(value);
                        break;
                    }
                case TCKind._tk_double:
                    {
View Full Code Here

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

                // zero for numeric types
                returnValue.insert_ulonglong((long)0);
                break;
            case TCKind._tk_float:
                // zero for numeric types
                returnValue.insert_float((float)0.0);
                break;
            case TCKind._tk_double:
                // zero for numeric types
                returnValue.insert_double((double)0.0);
                break;
View Full Code Here

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

      a.insert_short( (short)5 );
      System.out.println( s.generic( a ) );

      // float
      System.out.print("Passing a float...");
      a.insert_float( (float)3.14);
      System.out.println( s.generic( a ) );
      
      // string
      System.out.print("Passing a string...");
            a.type( orb.create_string_tc(0));
View Full Code Here

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

    public void test_float()
        throws Exception
    {
        float testValue = (float) 4711.0;
        Any outAny = setup.getClientOrb().create_any();
        outAny.insert_float(testValue);
        assertEquals(testValue, outAny.extract_float(), 0.0);

        Any inAny = server.bounce_any(outAny);

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

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

        a.insert_short( (short)5 );
        System.out.println( s.generic( a ) );

        // float
        System.out.print("Passing a float...");
        a.insert_float( (float)3.14);
        System.out.println( s.generic( a ) );

        // string
        System.out.print("Passing a string...");
        a.type( orb.create_string_tc(0));
View Full Code Here

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

    public void test_float()
        throws Exception
    {
        float testValue = (float) 4711.0;
        Any outAny = setup.getClientOrb().create_any();
        outAny.insert_float(testValue);
        assertEquals(testValue, outAny.extract_float(), 0.0);

        Any inAny = server.bounce_any(outAny);

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

Examples of org.omg.DynamicAny.DynAny.insert_float()

      DynAny   dynAny = createDynAnyFromTypeCode (tc);

      String msg = "Value inserted into DynAny object is not equal to value ";
      msg += "extracted from same DynAny object";

      dynAny.insert_float (700.0F);
      assertEquals (msg, 700.0F, dynAny.get_float(), 0.0);
   }

      /**
    * Test inserting a basic value into a DynAny that has a different typecode.
View Full Code Here

Examples of org.omg.DynamicAny.DynAny.insert_float()

      TypeCode tc     = orb.get_primitive_tc (org.omg.CORBA.TCKind.tk_boolean);
      DynAny   dynAny = createDynAnyFromTypeCode (tc);

      try
      {
          dynAny.insert_float (700.0F);
          fail ("should have thrown TypeMismatch");
      }
      catch (TypeMismatch ex)
      {
          // ok
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.