BDE 4.14.0 Production release
|
Provide a container for managed attributes.
This component implements a value-semantic container class, ball::ManagedAttributeSet
, that manages a set of ball::ManagedAttribute
objects.
This component participates in the implementation of "Rule-Based Logging". For more information on how to use that feature, please see the package-level documentation and usage examples for "Rule-Based Logging".
In this section we show intended usage of this component.
This example shows basic operations on a managed attribute set.
First, we create an empty attribute set:
Then, we add two attributes to the attribute set:
Next, we look up (by value) via the isMember
method:
Then, we add duplicated value and observe the status of the operation:
Finally, we remove an attribute and check that it is not a member of the attribute set: