Invoke manipulator on the modifiable attribute indicated by name.
Declared in <baljsn_encoderoptions.h>
template<class MANIPULATOR>
int
manipulateAttribute(
MANIPULATOR& manipulator,
char const* name,
int nameLength);
Invoke the specified manipulator on the address of the (modifiable) attribute indicated by the specified name of the specified nameLength, supplying manipulator with the corresponding attribute information structure. Return the value returned from the invocation of manipulator if name identifies an attribute of this class, and -1 otherwise.
value returned by manipulator, or -1 if name is not found
| Name | Description |
|---|---|
| manipulator | functor invoked on the matching attribute |
| name | attribute name |
| nameLength | length of name |