Meter Class
Meter objects can be created in one of the following ways:
- Top-level Meter objects, whose Container object is NULL, are created by using the lookupMeter constructor of the Listener object.
- Subordinate Meter objects of a Container or an Event are created by using the lookupMeter constructor of the respective object. The namespace for Meters is separate from Events.
When a Meter object is first created, the counter value is set to zero. The value can later be increased by calling the incrementValue member function or changed by using setValue.
For more information about the creation and usage of Meters, see the topics in the section Reporting Performance Data with Meters.
Constructor
- lookupMeter
- Creates a Meter object at the top level of the Listener, or as a subordinate to a Container or Event.
Member Functions
- getValue
- Returns the current value of the Meter object's counter.
- incrementValue
- Increments the value of the Meter object's counter.
- setValue
- Sets the Meter object's counter to the specified value.