14.12 Policy Member Functions
A policy is an object used to communicate certain choices to an ORB regarding its operation. This information is accessed in a structured manner using interfaces derived from the Policy interface defined in the CORBA module.
Note:
TheseCORBA::Policy
operations and structures are not usually needed by programmers. The derived interfaces usually contain the information relevant to specifications. A policy object can be constructed by a specific factory or by using the CORBA::create_policy
operation.
The mapping of this object to C++ is as follows:
class CORBA
{
class Policy
{
public:
copy();
void destroy();
}; //Policy
typedef sequence<Policy>PolicyList;
}; // CORBA
PolicyList
is used the same as any other C++ sequence mapping. For a discussion of sequence usage, see Sequences.
See Also:
POA Policy and CORBA::ORB::create_policy
.
Parent topic: CORBA API