LLMessageTemplate Class Reference

#include <llmessagetemplate.h>

Collaboration diagram for LLMessageTemplate:

Collaboration graph
[legend]

List of all members.

Public Types

typedef LLDynamicArrayIndexed
< LLMessageBlock *, char *, 8 > 
message_block_map_t

Public Member Functions

 LLMessageTemplate (const char *name, U32 message_number, EMsgFrequency freq)
 ~LLMessageTemplate ()
void addBlock (LLMessageBlock *blockp)
LLMessageBlockgetBlock (char *name)
void setTrust (EMsgTrust t)
EMsgTrust getTrust (void) const
void setEncoding (EMsgEncoding e)
EMsgEncoding getEncoding () const
void setDeprecation (EMsgDeprecation d)
EMsgDeprecation getDeprecation () const
void setHandlerFunc (void(*handler_func)(LLMessageSystem *msgsystem, void **user_data), void **user_data)
BOOL callHandlerFunc (LLMessageSystem *msgsystem) const
bool isBanned (bool trustedSource) const
const LLMessageBlockgetBlock (char *name) const

Public Attributes

message_block_map_t mMemberBlocks
char * mName
EMsgFrequency mFrequency
EMsgTrust mTrust
EMsgEncoding mEncoding
EMsgDeprecation mDeprecation
U32 mMessageNumber
S32 mTotalSize
U32 mReceiveCount
U32 mReceiveBytes
U32 mReceiveInvalid
F32 mDecodeTimeThisFrame
U32 mTotalDecoded
F32 mTotalDecodeTime
F32 mMaxDecodeTimePerMsg
bool mBanFromTrusted
bool mBanFromUntrusted

Private Attributes

void(* mHandlerFunc )(LLMessageSystem *msgsystem, void **user_data)
void ** mUserData

Friends

std::ostream & operator<< (std::ostream &s, LLMessageTemplate &msg)


Detailed Description

Definition at line 271 of file llmessagetemplate.h.


Member Typedef Documentation

Definition at line 392 of file llmessagetemplate.h.


Constructor & Destructor Documentation

LLMessageTemplate::LLMessageTemplate ( const char *  name,
U32  message_number,
EMsgFrequency  freq 
) [inline]

Definition at line 274 of file llmessagetemplate.h.

References LLSingleton< LLMessageStringTable >::getInstance(), LLMessageStringTable::getString(), and mName.

Here is the call graph for this function:

LLMessageTemplate::~LLMessageTemplate (  )  [inline]

Definition at line 299 of file llmessagetemplate.h.

References LLDynamicArrayIndexed< Type, Key, BlockSize >::begin(), LLDynamicArrayIndexed< Type, Key, BlockSize >::end(), and mMemberBlocks.

Here is the call graph for this function:


Member Function Documentation

void LLMessageTemplate::addBlock ( LLMessageBlock blockp  )  [inline]

LLMessageBlock* LLMessageTemplate::getBlock ( char *  name  )  [inline]

void LLMessageTemplate::setTrust ( EMsgTrust  t  )  [inline]

Definition at line 332 of file llmessagetemplate.h.

References mTrust.

Referenced by LLTemplateParser::parseMessage().

Here is the caller graph for this function:

EMsgTrust LLMessageTemplate::getTrust ( void   )  const [inline]

Definition at line 337 of file llmessagetemplate.h.

References mTrust.

Referenced by LLTemplateMessageReader::isTrusted().

Here is the caller graph for this function:

void LLMessageTemplate::setEncoding ( EMsgEncoding  e  )  [inline]

Definition at line 343 of file llmessagetemplate.h.

References mEncoding.

Referenced by LLTemplateParser::parseMessage().

Here is the caller graph for this function:

EMsgEncoding LLMessageTemplate::getEncoding (  )  const [inline]

Definition at line 347 of file llmessagetemplate.h.

References mEncoding.

Referenced by LLTemplateMessageBuilder::compressMessage().

Here is the caller graph for this function:

void LLMessageTemplate::setDeprecation ( EMsgDeprecation  d  )  [inline]

Definition at line 352 of file llmessagetemplate.h.

References mDeprecation.

Referenced by LLTemplateParser::parseMessage().

Here is the caller graph for this function:

EMsgDeprecation LLMessageTemplate::getDeprecation (  )  const [inline]

Definition at line 357 of file llmessagetemplate.h.

References mDeprecation.

Referenced by LLTemplateMessageBuilder::newMessage().

Here is the caller graph for this function:

void LLMessageTemplate::setHandlerFunc ( void(*)(LLMessageSystem *msgsystem, void **user_data)  handler_func,
void **  user_data 
) [inline]

Definition at line 362 of file llmessagetemplate.h.

References mHandlerFunc, and mUserData.

Referenced by LLMessageSystem::setHandlerFuncFast().

Here is the caller graph for this function:

BOOL LLMessageTemplate::callHandlerFunc ( LLMessageSystem msgsystem  )  const [inline]

Definition at line 368 of file llmessagetemplate.h.

References FALSE, mHandlerFunc, mUserData, and TRUE.

Referenced by LLMessageSystem::callHandler(), and LLTemplateMessageReader::decodeData().

Here is the caller graph for this function:

bool LLMessageTemplate::isBanned ( bool  trustedSource  )  const [inline]

Definition at line 378 of file llmessagetemplate.h.

References mBanFromTrusted, and mBanFromUntrusted.

Referenced by LLMessageSystem::callHandler(), and LLTemplateMessageReader::isBanned().

Here is the caller graph for this function:

const LLMessageBlock* LLMessageTemplate::getBlock ( char *  name  )  const [inline]

Definition at line 385 of file llmessagetemplate.h.

References LLDynamicArrayIndexed< Type, Key, BlockSize >::end(), LLDynamicArrayIndexed< Type, Key, BlockSize >::find(), mMemberBlocks, and NULL.

Here is the call graph for this function:


Friends And Related Function Documentation

std::ostream& operator<< ( std::ostream &  s,
LLMessageTemplate msg 
) [friend]

Definition at line 137 of file llmessagetemplate.cpp.


Member Data Documentation

Definition at line 396 of file llmessagetemplate.h.

Referenced by getTrust(), and setTrust().

Definition at line 397 of file llmessagetemplate.h.

Referenced by getEncoding(), and setEncoding().

Definition at line 398 of file llmessagetemplate.h.

Referenced by getDeprecation(), and setDeprecation().

Definition at line 400 of file llmessagetemplate.h.

Referenced by addBlock(), and operator<<().

Definition at line 402 of file llmessagetemplate.h.

Referenced by LLMessageSystem::dumpReceiveCounts().

Definition at line 403 of file llmessagetemplate.h.

Referenced by LLMessageSystem::dumpReceiveCounts().

Definition at line 409 of file llmessagetemplate.h.

Referenced by isBanned(), and LLMessageSystem::setMessageBans().

Definition at line 410 of file llmessagetemplate.h.

Referenced by isBanned(), and LLMessageSystem::setMessageBans().

void(* LLMessageTemplate::mHandlerFunc)(LLMessageSystem *msgsystem, void **user_data) [private]

Referenced by callHandlerFunc(), and setHandlerFunc().

void** LLMessageTemplate::mUserData [private]

Definition at line 415 of file llmessagetemplate.h.

Referenced by callHandlerFunc(), and setHandlerFunc().


The documentation for this class was generated from the following file:

Generated on Fri May 16 08:53:37 2008 for SecondLife by  doxygen 1.5.5