Event Class
Event objects can be created in one of the following ways:
- Top-level Event objects, whose Container object
is NULL, are created by using the member functions of the Listener object or through the
newoperator. - Subordinate Event objects of a Container object, or another Event object, are created through usage of 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 can be incremented by using the recordEvent member function.
After creation, the application can 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.