BloombergLP::baljsn::EncoderTestSequenceWithUntagged11Sequence::accessAttribute

Invoke the specified 'accessor' on the (non-modifiable) attribute of this object indicated by the specified 'name' of the specified 'nameLength', supplying.

Synopsis

Declared in <baljsn_encoder_testtypes.h>

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

Description

'accessor' with the corresponding attribute information structure. Return the value returned from the invocation of 'accessor' if 'name' identifies an attribute of this class, and -1 otherwise.

Return Value

the value returned from the invocation of accessor, or a non-zero value on failure

Parameters

NameDescription
accessorfunctor invoked on the matching attribute
nameattribute name
nameLengthlength of name