Skip navigation.

CORBA Programming Reference

  Previous Next vertical dots separating previous/next from contents/index/pdf Contents View as PDF   Get Adobe Reader

 


CORBA::Context::set_values

Synopsis

Sets the values for given attributes in the Context object.

C++ Binding

void CORBA::Context::set_values (
CORBA::NVList_ptr AttrValue);

Argument

AttrValues

The name and value of the attribute. Currently the BEA Tuxedo system supports only the string type; therefore, all NamedValue objects in the list must have CORBA::Any objects with a string inside.

Exceptions

CORBA::BAD_PARAM if any of the attribute values has a value that is not a string type.
CORBA::NO_MEMORY if dynamic memory allocation failed.

Description

This member function sets the values for given attributes in the Context object. The CORBA::NVList member function contains the property name and value pairs to be set.

Return Values

None.

See Also

CORBA::Context::get_values
CORBA::Context::set_one_value

 


ContextList Member Functions

The ContextList allows a client or server application to provide a list of context strings that must be supplied with Request invocation. For a description of the Request member functions, see the section Request Member Functions on page 14-102.

The ContextList differs from the Context in that the former supplies only the context strings whose values are to be looked up and sent with the request invocation (if applicable), while the latter is where those values are obtained. For a description of the Context member functions, see the section Context Member Functions.

The mapping of these member functions to C++ is as follows:

class CORBA
{
class ContextList
{
public:
Ulong count ();
void add(const char* ctxt);
void add_consume(char* ctxt);
const char* item(Ulong index);
Status remove(Ulong index);
}; // ContextList
}// CORBA

 

Skip navigation bar  Back to Top Previous Next