Event Class
Event objects may be created in one of the following ways:
- Top-level Event objects (those whose Container
object is NULL) are created using member functions of the Listener
object or via the
new
operator.
- Subordinate Event objects of a Container object, or another Event object,
are created using the lookupEvent constructor
of their respective parent object.
Each Event object has a 64-bit counter that increases cumulatively over the
lifetime of the object, which is also the lifetime of the Listener. The initial
value of the counter is set to zero and may be incremented using the recordEvent
member function.
Once created, the application may create subordinate objects for the Event,
including Meters, Accumulators,
or other Events, called sub-Events. For more information about creating and
recording Events, see the topics in the section Recording
Events.
- Constructor
- lookupEvent - Creates an Event object
at the top-level of the Listener, or as a subordinate to a Container or another
Event.
- Member Functions
- getCount - Returns the current value of the
Event counter.
- lookupAccumulator - Creates a subordinate
Accumulator object for the Listener.
- lookupEvent - Creates an Event object.
- lookupMeter - Creates a subordinate Meter
object to this Event.
- recordEvent - Increases the counter value
for the Event.
- See Also
- Accumulator Class
- Container Class
- Listener Class
- Meter Class
- EventClass Enumeration