BloombergLP::balber::BerEncoderOptions::accessAttribute

accessAttribute overloads

Synopses

Declared in <balber_berencoderoptions.h>

Invoke the specified accessor on the attribute indicated by the specified id.

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

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

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

Return Value

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

Parameters

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