incrementValue Member Function

Increments the value of a Meter object counter by one, or by a specified amount. The current value may be obtained by calling getValue.

Syntax
void incrementValue([optional] __int64 increment);
Parameters
increment - [in] Optional 64-bit signed int, which specifies the amount by which to increase the value of the Meter object counter. When no value is specified, the counter is automatically incremented by one. A value of NULL is not supported.
Example
Listener *listener = new Listener("sampleApp", "4.0", NULL, false);
Meter *cacheSize = listener->lookupMeter("cache size");

- or -
Container *store = listener->lookupContainer("storeName");
Meter *cacheSize = store->lookupMeter("cache size");
cacheSize->incrementValue(10);
...
See Also
Container Class
Event Class
Listener Class
Meter Class
getValue Member Function
setValue Member Function