Examples of insert_string()


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

    {
        try
        {
            TypeCode _tc = value.type();
            Any _ret = orb_.create_any();
            _ret.insert_string(_tc.name());

            return _ret;
        } catch (BadKind e)
        {
            throw newEvaluationException(e);
View Full Code Here

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

    {
        try
        {
            TypeCode _tc = value.type();
            Any _ret = orb_.create_any();
            _ret.insert_string(_tc.id());

            return _ret;
        } catch (BadKind e)
        {
            throw newEvaluationException(e);
View Full Code Here

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

      System.out.println( s.generic( a ) );
      
      // string
      System.out.print("Passing a string...");
            a.type( orb.create_string_tc(0));
      a.insert_string("Hi there");
      System.out.println( s.generic( a ) );

      // wstring
      System.out.print("Passing a Wstring...");
       //myWStringHelper.insert( a, "WWWWWSTring-������" );
View Full Code Here

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

      /* insert an any */

        System.out.print("Passing an any");
      Any inner_any = orb.create_any();
      inner_any.insert_string("Hello in any");
        a.insert_any(inner_any);
        System.out.println( "Output of generic: " + s.generic( a ) );

      while( counter > 0 )
      {
View Full Code Here

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

    break;
      case TCKind._tk_objref:
    System.out.println("Objectref.");
    AnyServer s = AnyServerHelper.narrow(a.extract_Object());
    Any any = org.omg.CORBA.ORB.init().create_any();
    any.insert_string("hallo");
    result = s.generic( any );
    break;
      case TCKind._tk_any:
    System.out.println("Any.");
    Any inner_any = a.extract_any();
View Full Code Here

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

    Any numAny = orb.create_any();
    numAny.type( orb.get_primitive_tc(org.omg.CORBA.TCKind.tk_long));
    params.add_value( "", numAny,org.omg.CORBA.ARG_IN.value );
    request.arguments( params );
    Any a = orb.create_any();
    a.insert_string( impl.writeNumber( numAny.extract_long() ));
    request.set_result( a );
      }
      else if( op.equals("add") )
      {
    org.omg.CORBA.NVList params = orb.create_list(0);
View Full Code Here

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

    Any numAny = orb.create_any();
    numAny.type( orb.get_primitive_tc(org.omg.CORBA.TCKind.tk_long));
    params.add_value( "", numAny, org.omg.CORBA.ARG_IN.value );
    request.arguments( params );
    Any a = orb.create_any();
    a.insert_string( impl.writeNumberWithEx( numAny.extract_long() ));
    request.set_result( a );
      }
      else if( op.equals("notify") )
      {
    org.omg.CORBA.NVList params = orb.create_list(0);
View Full Code Here

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

           
            Current current =
                (Current) orb.resolve_initial_references( "PICurrent" );
           
            Any any = orb.create_any();
            any.insert_string( "This is a test!" );
           
            current.set_slot( ClientInitializer.slot_id, any );
           
            System.out.println("Client added any to PICurrent");
            to.foo();           
View Full Code Here

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

   
    public Any toAny(String s)
    {
        Any _any = getORB().create_any();

        _any.insert_string(s);

        return _any;
    }

    public Any toAny(int i)
View Full Code Here

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

        _any.insert_long(10);
        _structuredEvent.header.variable_header[0] = new Property("long", _any);

        _any = getORB().create_any();
        _any.insert_string("text");
        _structuredEvent.header.variable_header[1] = new Property("string", _any);

        runEvaluation(_structuredEvent, "$long == 10");
        runEvaluation(_structuredEvent, "$long == $.header.variable_header(long)");
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.