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
accessorifididentifies an attribute of this class, and ‐1 otherwise -
value returned from the invocation of
accessorifnameidentifies 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 |
Created with MrDocs