#include <llmessagetemplate.h>
Collaboration diagram for LLMessageTemplate:
Definition at line 299 of file llmessagetemplate.h.
typedef LLDynamicArrayIndexed<LLMessageBlock*, char*, 8> LLMessageTemplate::message_block_map_t |
Definition at line 463 of file llmessagetemplate.h.
LLMessageTemplate::LLMessageTemplate | ( | const char * | name, | |
U32 | message_number, | |||
EMsgFrequency | freq | |||
) | [inline] |
Definition at line 302 of file llmessagetemplate.h.
References LLMessageStringTable::getString(), gMessageStringTable, and mName.
LLMessageTemplate::~LLMessageTemplate | ( | ) | [inline] |
Definition at line 325 of file llmessagetemplate.h.
References LLDynamicArrayIndexed< Type, Key, BlockSize >::begin(), LLDynamicArrayIndexed< Type, Key, BlockSize >::end(), and mMemberBlocks.
void LLMessageTemplate::addBlock | ( | LLMessageBlock * | blockp | ) | [inline] |
Definition at line 330 of file llmessagetemplate.h.
References llendl, llerrs, MBT_MULTIPLE, MBT_SINGLE, mMemberBlocks, LLMessageBlock::mName, LLMessageBlock::mNumber, LLMessageBlock::mTotalSize, mTotalSize, LLMessageBlock::mType, and NULL.
Referenced by LLTemplateParser::parseMessage().
void LLMessageTemplate::addHandlerFunc | ( | message_handler_func_t | handler, | |
void ** | user_data | |||
) | [inline] |
Adds a handler This function adds a new handler to be called when the message arrives. Repeated additions of the same handler function will be ignored.
handler | Function to call | |
user_data | User specified data to pass to the function |
Definition at line 396 of file llmessagetemplate.h.
References mHandlers.
Referenced by LLMessageSystem::addHandlerFuncFast(), and setHandlerFunc().
BOOL LLMessageTemplate::callHandlerFunc | ( | LLMessageSystem * | msgsystem | ) | const [inline] |
Definition at line 438 of file llmessagetemplate.h.
References FALSE, mHandlers, and TRUE.
Referenced by LLMessageSystem::callHandler(), and LLTemplateMessageReader::decodeData().
void LLMessageTemplate::delHandlerFunc | ( | message_handler_func_t | handler | ) | [inline] |
Removes a handler Removes a handler from the list of handlers. Attempts to remove handlers that aren't in the list are silently ignored.
handler | Function to remove |
Definition at line 433 of file llmessagetemplate.h.
References mHandlers.
Referenced by LLMessageSystem::delHandlerFuncFast().
const LLMessageBlock* LLMessageTemplate::getBlock | ( | char * | name | ) | const [inline] |
Definition at line 456 of file llmessagetemplate.h.
References LLDynamicArrayIndexed< Type, Key, BlockSize >::end(), LLDynamicArrayIndexed< Type, Key, BlockSize >::find(), mMemberBlocks, and NULL.
LLMessageBlock* LLMessageTemplate::getBlock | ( | char * | name | ) | [inline] |
Definition at line 352 of file llmessagetemplate.h.
References mMemberBlocks.
Referenced by LLTemplateMessageBuilder::addData(), tut::LLMessageTemplateParserTestData::ensure_block_attributes(), LLTemplateMessageBuilder::isMessageFull(), LLTemplateMessageBuilder::nextBlock(), and LLTemplateMessageBuilder::removeLastBlock().
EMsgDeprecation LLMessageTemplate::getDeprecation | ( | ) | const [inline] |
Definition at line 383 of file llmessagetemplate.h.
References mDeprecation.
Referenced by LLTemplateMessageBuilder::newMessage().
EMsgEncoding LLMessageTemplate::getEncoding | ( | ) | const [inline] |
Definition at line 373 of file llmessagetemplate.h.
References mEncoding.
Referenced by LLTemplateMessageBuilder::compressMessage().
Definition at line 363 of file llmessagetemplate.h.
References mTrust.
Referenced by LLTemplateMessageReader::isTrusted().
bool LLMessageTemplate::isBanned | ( | bool | trustedSource | ) | const [inline] |
Definition at line 449 of file llmessagetemplate.h.
References mBanFromTrusted, and mBanFromUntrusted.
Referenced by LLMessageSystem::callHandler(), and LLTemplateMessageReader::isBanned().
void LLMessageTemplate::setDeprecation | ( | EMsgDeprecation | d | ) | [inline] |
Definition at line 378 of file llmessagetemplate.h.
References mDeprecation.
Referenced by LLTemplateParser::parseMessage().
void LLMessageTemplate::setEncoding | ( | EMsgEncoding | e | ) | [inline] |
Definition at line 369 of file llmessagetemplate.h.
References mEncoding.
Referenced by LLTemplateParser::parseMessage().
void LLMessageTemplate::setHandlerFunc | ( | message_handler_func_t | handler, | |
void ** | user_data | |||
) | [inline] |
Sets a handler This function sets a handler to be called when the message arrives. Any existing handlers are unregistered.
handler | Function to call | |
user_data | User specified data to pass to the function |
Definition at line 416 of file llmessagetemplate.h.
References addHandlerFunc(), llendl, llwarns, mHandlers, and mName.
Referenced by LLMessageSystem::setHandlerFuncFast().
Definition at line 358 of file llmessagetemplate.h.
References mTrust.
Referenced by LLTemplateParser::parseMessage().
std::ostream& operator<< | ( | std::ostream & | s, | |
LLMessageTemplate & | msg | |||
) | [friend] |
Definition at line 137 of file llmessagetemplate.cpp.
Definition at line 475 of file llmessagetemplate.h.
Referenced by LLTemplateMessageReader::decodeData(), and LLMessageSystem::dumpReceiveCounts().
Definition at line 469 of file llmessagetemplate.h.
Referenced by getDeprecation(), and setDeprecation().
Definition at line 466 of file llmessagetemplate.h.
Referenced by LLTemplateMessageBuilder::buildMessage(), LLTemplateMessageReader::decodeData(), and operator<<().
Definition at line 484 of file llmessagetemplate.h.
Referenced by addHandlerFunc(), callHandlerFunc(), delHandlerFunc(), and setHandlerFunc().
Definition at line 478 of file llmessagetemplate.h.
Referenced by LLTemplateMessageReader::decodeData().
Definition at line 464 of file llmessagetemplate.h.
Referenced by addBlock(), LLTemplateMessageBuilder::buildMessage(), LLTemplateMessageReader::decodeData(), getBlock(), LLTemplateMessageReader::getSize(), LLTemplateMessageBuilder::newMessage(), operator<<(), and ~LLMessageTemplate().
Definition at line 470 of file llmessagetemplate.h.
Referenced by LLMessageSystem::addTemplate(), LLTemplateMessageBuilder::buildMessage(), and operator<<().
char* LLMessageTemplate::mName |
Definition at line 465 of file llmessagetemplate.h.
Referenced by LLTemplateMessageBuilder::addData(), LLMessageSystem::addTemplate(), LLTemplateMessageReader::decodeData(), LLMessageSystem::dumpReceiveCounts(), tut::LLMessageTemplateParserTestData::ensure_block_attributes(), LLTemplateMessageReader::getMessageName(), LLMessageTemplate(), LLTemplateMessageReader::logRanOffEndOfPacket(), LLTemplateMessageBuilder::nextBlock(), operator<<(), setHandlerFunc(), and LLTemplateMessageReader::validateMessage().
Definition at line 473 of file llmessagetemplate.h.
Referenced by LLMessageSystem::dumpReceiveCounts().
Definition at line 472 of file llmessagetemplate.h.
Referenced by LLMessageSystem::dumpReceiveCounts(), and LLTemplateMessageReader::validateMessage().
Definition at line 474 of file llmessagetemplate.h.
Referenced by LLMessageSystem::dumpReceiveCounts().
Definition at line 476 of file llmessagetemplate.h.
Referenced by LLTemplateMessageReader::decodeData().
Definition at line 477 of file llmessagetemplate.h.
Referenced by LLTemplateMessageReader::decodeData().