BloombergLP::balber::BerEncoderOptions::accessAttribute

Invoke the specified accessor on the attribute indicated by the specified name of the specified nameLength.

Synopsis

Declared in <balber_berencoderoptions.h>

template<typename t_ACCESSOR>
int
accessAttribute(
    t_ACCESSOR& accessor,
    char const* name,
    int nameLength) const;

Return Value

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

Parameters

NameDescription
accessorfunctor invoked on the selected attribute
nameattribute name to access
nameLengthlength of name in bytes