BloombergLP::balxml::DecoderOptions::accessAttribute

Invoke accessor on the non-modifiable attribute indicated by id.

Synopsis

Declared in <balxml_decoderoptions.h>

template<typename t_ACCESSOR>
int
accessAttribute(
    t_ACCESSOR& accessor,
    int id) const;

Description

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.

Return Value

value returned by accessor, or -1 if id is not found

Parameters

NameDescription
accessorfunctor invoked on the matching attribute
idattribute id