LLWorldEvent Class Reference

Event. More...

#include <llfloatereventlog.h>

Inheritance diagram for LLWorldEvent:

Inheritance graph
[legend]
Collaboration diagram for LLWorldEvent:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 LLWorldEvent (const LLUUID &id=LLUUID::null)
F32 getAge () const
F32 getDuration () const
S32 getCount () const
virtual S32 getScore () const =0
 Annoyance score Score that estimates how noticeable this event is.
virtual LLUUID getID () const =0
 Event identifier This is an UUID that identifies this event.
LLUUID getGlobalID () const
 Unique identifier for this event Different from getID() in that getID() returns an ID related to the event somehow as it's the ID of a sound, texture, etc, and may not be globally unique.
void checkDuration ()
 Check duration timer, and update if needed Duration is defined as the amount of time spent on this event. This is calculated by adding up the times of the frames during which it happened. If during a frame, the count wasn't updated, then the event wasn't happening, and we reset the timer.
void incCount (S32 count=1)
 Increment event count.
bool operator+= (const LLWorldEvent &ev)
bool operator< (const LLWorldEvent &ev)
virtual LLString getIcon ()=0
void setParent (LLPointer< LLEventEmitter > parent)
LLPointer< LLEventEmittergetParent ()

Private Attributes

F32 mDuration
S32 mCount
LLTimer mAgeTimer
LLTimer mDurationTimer
U32 mLastFrame
LLUUID mGlobalID
LLPointer< LLEventEmittermParent

Detailed Description

Event.

Definition at line 40 of file llfloatereventlog.h.


Constructor & Destructor Documentation

LLWorldEvent::LLWorldEvent ( const LLUUID id = LLUUID::null  )  [inline]

Definition at line 43 of file llfloatereventlog.h.

References LLUUID::generate(), gFrameCount, mGlobalID, and mLastFrame.


Member Function Documentation

void LLWorldEvent::checkDuration (  )  [inline]

Check duration timer, and update if needed Duration is defined as the amount of time spent on this event. This is calculated by adding up the times of the frames during which it happened. If during a frame, the count wasn't updated, then the event wasn't happening, and we reset the timer.

Definition at line 76 of file llfloatereventlog.h.

References gFrameCount, mDurationTimer, mLastFrame, and LLTimer::reset().

F32 LLWorldEvent::getAge (  )  const [inline]

Definition at line 45 of file llfloatereventlog.h.

References LLTimer::getElapsedTimeF32(), and mAgeTimer.

S32 LLWorldEvent::getCount (  )  const [inline]

Definition at line 47 of file llfloatereventlog.h.

References mCount.

F32 LLWorldEvent::getDuration (  )  const [inline]

Definition at line 46 of file llfloatereventlog.h.

References mDuration.

LLUUID LLWorldEvent::getGlobalID (  )  const [inline]

Unique identifier for this event Different from getID() in that getID() returns an ID related to the event somehow as it's the ID of a sound, texture, etc, and may not be globally unique.

This one, however, is randomly generated and won't match anything else.

Definition at line 68 of file llfloatereventlog.h.

References mGlobalID.

virtual LLString LLWorldEvent::getIcon (  )  [pure virtual]

Implemented in LLParticleEvent, and LLSoundEvent.

virtual LLUUID LLWorldEvent::getID (  )  const [pure virtual]

Event identifier This is an UUID that identifies this event.

Implemented in LLParticleEvent, and LLSoundEvent.

LLPointer<LLEventEmitter> LLWorldEvent::getParent (  )  [inline]

Definition at line 89 of file llfloatereventlog.h.

References mParent.

virtual S32 LLWorldEvent::getScore (  )  const [pure virtual]

Annoyance score Score that estimates how noticeable this event is.

Implemented in LLParticleEvent, and LLSoundEvent.

Referenced by operator<().

void LLWorldEvent::incCount ( S32  count = 1  ) 

Increment event count.

Definition at line 53 of file llfloatereventlog.cpp.

References LLTimer::getElapsedTimeAndResetF32(), gFrameCount, mAgeTimer, mCount, mDuration, mDurationTimer, mLastFrame, and LLTimer::reset().

Referenced by operator+=().

bool LLWorldEvent::operator+= ( const LLWorldEvent ev  )  [inline]

Definition at line 83 of file llfloatereventlog.h.

References incCount(), and mCount.

bool LLWorldEvent::operator< ( const LLWorldEvent ev  )  [inline]

Definition at line 84 of file llfloatereventlog.h.

References getScore().

void LLWorldEvent::setParent ( LLPointer< LLEventEmitter parent  )  [inline]

Definition at line 88 of file llfloatereventlog.h.

References mParent.


Member Data Documentation

LLTimer LLWorldEvent::mAgeTimer [private]

Definition at line 93 of file llfloatereventlog.h.

Referenced by getAge(), and incCount().

S32 LLWorldEvent::mCount [private]

Definition at line 92 of file llfloatereventlog.h.

Referenced by getCount(), incCount(), and operator+=().

F32 LLWorldEvent::mDuration [private]

Definition at line 91 of file llfloatereventlog.h.

Referenced by getDuration(), and incCount().

LLTimer LLWorldEvent::mDurationTimer [private]

Definition at line 94 of file llfloatereventlog.h.

Referenced by checkDuration(), and incCount().

LLUUID LLWorldEvent::mGlobalID [private]

Definition at line 97 of file llfloatereventlog.h.

Referenced by getGlobalID(), and LLWorldEvent().

U32 LLWorldEvent::mLastFrame [private]

Definition at line 95 of file llfloatereventlog.h.

Referenced by checkDuration(), incCount(), and LLWorldEvent().

LLPointer<LLEventEmitter> LLWorldEvent::mParent [private]

Definition at line 98 of file llfloatereventlog.h.

Referenced by getParent(), and setParent().


The documentation for this class was generated from the following files:
Generated on Thu Jul 1 06:12:04 2010 for Second Life Viewer by  doxygen 1.4.7