[Search for users] [Overall Top Noters] [List of all Conferences] [Download this site]

Conference pamsrc::objectbroker_development

Title:ObjectBroker Development - BEA Systems' CORBA
Notice:See note 2 for kit locations; note 4 for training
Moderator:RECV::GUMBELd
Created:Thu Dec 27 1990
Last Modified:Fri Jun 06 1997
Last Successful Update:Fri Jun 06 1997
Number of topics:2482
Total number of notes:13057

2475.0. "C++ and NVList class?" by OHFSS1::ZAMMIT () Tue May 06 1997 03:03

    Anyone have any examples of using the C++ NVList class. In particular
    I'm interested in an example of setting up Implementation selection
    attributes using the C++ bindings.
    
    jay ()
T.RTitleUserPersonal
Name
DateLines
2475.1LEMAN::DONALDSONFroggisattva! Froggisattva!Mon May 12 1997 07:276
Mmm, no luck Jay?

Oh well, I know you can hack it and I'm glad to see
you're still out there. :-)

John D.
2475.2REQUE::BOWERPeter Bower, ObjectBrokerFri May 16 1997 10:4717
        char * calvin_str = "calvin";
        char * hobbes_str = "hobbes";
    
        status = CORBA::DEC_ORB->create_list(2, nv_list, ev);
        ...
    
        anyval <<= calvin_str;
        nv_list->add_value("SVR_ATTR1", anyval, CORBA_ARG_IN, ev);
    	...
    
        anyval <<= hobbes_str;
        nv_list->add_value("SVR_ATTR1", anyval, CORBA_ARG_IN, ev);
    	...
    
        reg_impl->attributes(nv_list, 0, ev);
    	...
    
2475.3;-)LEMAN::DONALDSONFroggisattva! Froggisattva!Fri May 16 1997 12:056
>        anyval <<= hobbes_str;
>        nv_list->add_value("SVR_ATTR1", anyval, CORBA_ARG_IN, ev);
    
"SVR_ATTR2" I guess.

John D.