LLGesture Class Reference

#include <llgesture.h>

Inheritance diagram for LLGesture:

Inheritance graph
[legend]
Collaboration diagram for LLGesture:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 LLGesture ()
 LLGesture (KEY key, MASK mask, const std::string &trigger, const LLUUID &sound_item_id, const std::string &animation, const std::string &output_string)
 LLGesture (U8 **buffer, S32 max_size)
 LLGesture (const LLGesture &gesture)
const LLGestureoperator= (const LLGesture &rhs)
virtual ~LLGesture ()
KEY getKey () const
MASK getMask () const
const std::string & getTrigger () const
const LLUUIDgetSound () const
const std::string & getAnimation () const
const std::string & getOutputString () const
virtual BOOL trigger (KEY key, MASK mask)
virtual BOOL trigger (const LLString &string)
U8serialize (U8 *buffer) const
U8deserialize (U8 *buffer, S32 max_size)

Static Public Member Functions

static S32 getMaxSerialSize ()

Protected Attributes

KEY mKey
MASK mMask
std::string mTrigger
std::string mTriggerLower
LLUUID mSoundItemID
std::string mAnimation
std::string mOutputString

Static Protected Attributes

static const S32 MAX_SERIAL_SIZE = sizeof(KEY) + sizeof(MASK) + 16 + 26 + 41 + 41

Detailed Description

Definition at line 41 of file llgesture.h.


Constructor & Destructor Documentation

LLGesture::LLGesture (  ) 

Definition at line 44 of file llgesture.cpp.

LLGesture::LLGesture ( KEY  key,
MASK  mask,
const std::string &  trigger,
const LLUUID sound_item_id,
const std::string &  animation,
const std::string &  output_string 
)

Definition at line 54 of file llgesture.cpp.

References mTriggerLower, and utf8str_tolower().

LLGesture::LLGesture ( U8 **  buffer,
S32  max_size 
)

Definition at line 70 of file llgesture.cpp.

References deserialize().

LLGesture::LLGesture ( const LLGesture gesture  ) 

Definition at line 75 of file llgesture.cpp.

References mAnimation, mKey, mMask, mOutputString, mSoundItemID, mTrigger, and mTriggerLower.

virtual LLGesture::~LLGesture (  )  [inline, virtual]

Definition at line 53 of file llgesture.h.


Member Function Documentation

U8 * LLGesture::deserialize ( U8 buffer,
S32  max_size 
)

Definition at line 132 of file llgesture.cpp.

References htonmemcpy(), llendl, llwarns, mAnimation, LLUUID::mData, mKey, mMask, mOutputString, mSoundItemID, mTrigger, mTriggerLower, MVT_LLUUID, MVT_S8, MVT_U32, and utf8str_tolower().

Referenced by LLGesture().

const std::string& LLGesture::getAnimation (  )  const [inline]

Definition at line 60 of file llgesture.h.

References mAnimation.

KEY LLGesture::getKey (  )  const [inline]

Definition at line 56 of file llgesture.h.

References mKey.

MASK LLGesture::getMask (  )  const [inline]

Definition at line 57 of file llgesture.h.

References mMask.

S32 LLGesture::getMaxSerialSize (  )  [static]

Definition at line 170 of file llgesture.cpp.

References MAX_SERIAL_SIZE.

Referenced by LLGestureList::getMaxSerialSize().

const std::string& LLGesture::getOutputString (  )  const [inline]

Definition at line 61 of file llgesture.h.

References mOutputString.

const LLUUID& LLGesture::getSound (  )  const [inline]

Definition at line 59 of file llgesture.h.

References mSoundItemID.

const std::string& LLGesture::getTrigger (  )  const [inline]

Definition at line 58 of file llgesture.h.

References mTrigger.

const LLGesture & LLGesture::operator= ( const LLGesture rhs  ) 

Definition at line 86 of file llgesture.cpp.

References mAnimation, mKey, mMask, mOutputString, mSoundItemID, mTrigger, and mTriggerLower.

U8 * LLGesture::serialize ( U8 buffer  )  const

Definition at line 113 of file llgesture.cpp.

References htonmemcpy(), mAnimation, LLUUID::mData, mKey, mMask, mOutputString, mSoundItemID, mTrigger, MVT_LLUUID, MVT_S8, and MVT_U32.

BOOL LLGesture::trigger ( const LLString string  )  [virtual]

Definition at line 106 of file llgesture.cpp.

References FALSE, llendl, and llwarns.

BOOL LLGesture::trigger ( KEY  key,
MASK  mask 
) [virtual]

Reimplemented in LLViewerGesture.

Definition at line 99 of file llgesture.cpp.

References FALSE, llendl, and llwarns.


Member Data Documentation

std::string LLGesture::mAnimation [protected]

Definition at line 80 of file llgesture.h.

Referenced by deserialize(), LLViewerGesture::doTrigger(), getAnimation(), LLGesture(), operator=(), and serialize().

const S32 LLGesture::MAX_SERIAL_SIZE = sizeof(KEY) + sizeof(MASK) + 16 + 26 + 41 + 41 [static, protected]

Definition at line 83 of file llgesture.h.

Referenced by getMaxSerialSize().

KEY LLGesture::mKey [protected]

Definition at line 75 of file llgesture.h.

Referenced by deserialize(), getKey(), LLGesture(), operator=(), serialize(), and LLViewerGesture::trigger().

MASK LLGesture::mMask [protected]

Definition at line 76 of file llgesture.h.

Referenced by deserialize(), getMask(), LLGesture(), operator=(), serialize(), and LLViewerGesture::trigger().

std::string LLGesture::mOutputString [protected]

Definition at line 81 of file llgesture.h.

Referenced by deserialize(), LLViewerGesture::doTrigger(), getOutputString(), LLGesture(), operator=(), and serialize().

LLUUID LLGesture::mSoundItemID [protected]

Definition at line 79 of file llgesture.h.

Referenced by deserialize(), LLViewerGesture::doTrigger(), getSound(), LLGesture(), operator=(), and serialize().

std::string LLGesture::mTrigger [protected]

Definition at line 77 of file llgesture.h.

Referenced by deserialize(), getTrigger(), LLGesture(), operator=(), and serialize().

std::string LLGesture::mTriggerLower [protected]

Definition at line 78 of file llgesture.h.

Referenced by deserialize(), LLGesture(), operator=(), and LLViewerGesture::trigger().


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