Invoke the specified accessor on the attribute indicated by id.
Declared in <balber_berdecoderoptions.h>
template<class ACCESSOR>
int
accessAttribute(
ACCESSOR& accessor,
int id) const;
Invoke the specified accessor on the (non-modifiable) attribute of this object indicated by the specified id, supplying accessor with the corresponding attribute information structure. Return the value returned from the invocation of accessor if id identifies an attribute of this class, and -1 otherwise.
value from accessor, or -1 if id is not found
| Name | Description |
|---|---|
| accessor | functor invoked on the selected attribute |
| id | attribute identifier to access |