manipulateAttribute overloads

Synopses

Declared in <baljsn_decoderoptions.h>

Invoke manipulator on the modifiable attribute indicated by id.

template<typename t_MANIPULATOR>
int
manipulateAttribute(
    t_MANIPULATOR& manipulator,
    int id);

Invoke manipulator on the modifiable attribute indicated by name.

template<typename t_MANIPULATOR>
int
manipulateAttribute(
    t_MANIPULATOR& manipulator,
    char const* name,
    int nameLength);

Return Value

  • value returned by manipulator, or ‐1 if id is not found

  • value returned by manipulator, or ‐1 if name is not found

Parameters

Name

Description

manipulator

functor invoked on the matching attribute

id

attribute id

name

attribute name

nameLength

length of name

Created with MrDocs