accessAttribute overloads

Synopses

Declared in <balb_testmessages.h>

Invoke the specified accessor on the attribute indicated by id.

template<class ACCESSOR>
int
accessAttribute(
    ACCESSOR& accessor,
    int id) const;

Invoke the specified accessor on the attribute indicated by name.

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

Return Value

  • value returned from the invocation of accessor if id identifies an attribute of this class, and ‐1 otherwise

  • value returned from the invocation of accessor if name identifies an attribute of this class, and ‐1 otherwise

Parameters

Name

Description

accessor

functor invoked on the matching attribute

id

attribute identifier

name

attribute name

nameLength

length of name

Created with MrDocs