recordValue Member Function

Changes the value of the requesting Accumulator and optionally, increments the counter value of the associated Event object.

Syntax
void recordValue(unsigned __int64 value, [optional] bool includeEvent);
Parameters
value - [in] Required 64-bit unsigned int, which specifies the value to assign to the Accumulator object counter.
includeEvent - [in] Optional Boolean value (default is false), which indicates whether the value of the Event counter associated with this Accumulator should be incremented as well. When set to true, then the counter of the associated Event will be incremented by 1.
Example
Listener *listener = new Listener("sampleApp", "4.0", NULL, false);
Container *store = listener->lookupContainer("storeName");
Event *creations = store->lookupEvent("document creations");
Accumulator *numCreations = creations->numCreations("number of document creations");
...
numCreations->recordValue(1, true);

...
See Also
Accumulator Class
Container Class
Event Class
Listener Class
recordEvent Member Function