accessAttribute overloads
Synopses
Declared in <baljsn_decoderoptions.h>
Invoke accessor on the non‐modifiable attribute indicated by id.
template<typename t_ACCESSOR>
int
accessAttribute(
t_ACCESSOR& accessor,
int id) const;
Invoke accessor on the non‐modifiable attribute indicated by name.
template<typename t_ACCESSOR>
int
accessAttribute(
t_ACCESSOR& accessor,
char const* name,
int nameLength) const;
Return Value
-
value returned by
accessor, or ‐1 ifidis not found -
value returned by
accessor, or ‐1 ifnameis not found
Parameters
Name |
Description |
accessor |
functor invoked on the matching attribute |
id |
attribute id |
name |
attribute name |
nameLength |
length of |
Created with MrDocs