#include <llmessagetemplate.h>
Collaboration diagram for LLMessageBlock:
Public Types | |
typedef LLDynamicArrayIndexed< LLMessageVariable *, const char *, 8 > | message_variable_map_t |
Public Member Functions | |
LLMessageBlock (const char *name, EMsgBlockType type, S32 number=1) | |
~LLMessageBlock () | |
void | addVariable (char *name, const EMsgVariableType type, const S32 size) |
EMsgVariableType | getVariableType (char *name) |
S32 | getVariableSize (char *name) |
const LLMessageVariable * | getVariable (char *name) const |
Public Attributes | |
message_variable_map_t | mMemberVariables |
char * | mName |
EMsgBlockType | mType |
S32 | mNumber |
S32 | mTotalSize |
Friends | |
std::ostream & | operator<< (std::ostream &s, LLMessageBlock &msg) |
Definition at line 189 of file llmessagetemplate.h.
typedef LLDynamicArrayIndexed<LLMessageVariable*, const char *, 8> LLMessageBlock::message_variable_map_t |
Definition at line 239 of file llmessagetemplate.h.
LLMessageBlock::LLMessageBlock | ( | const char * | name, | |
EMsgBlockType | type, | |||
S32 | number = 1 | |||
) | [inline] |
Definition at line 192 of file llmessagetemplate.h.
References LLMessageStringTable::getString(), gMessageStringTable, and mName.
LLMessageBlock::~LLMessageBlock | ( | ) | [inline] |
Definition at line 197 of file llmessagetemplate.h.
References LLDynamicArrayIndexed< Type, Key, BlockSize >::begin(), LLDynamicArrayIndexed< Type, Key, BlockSize >::end(), and mMemberVariables.
void LLMessageBlock::addVariable | ( | char * | name, | |
const EMsgVariableType | type, | |||
const S32 | size | |||
) | [inline] |
Definition at line 202 of file llmessagetemplate.h.
References llendl, llerrs, mMemberVariables, mTotalSize, MVT_VARIABLE, and NULL.
Referenced by tut::LLTemplateMessageBuilderTestData::createBlock(), and LLTemplateParser::parseBlock().
const LLMessageVariable* LLMessageBlock::getVariable | ( | char * | name | ) | const [inline] |
Definition at line 231 of file llmessagetemplate.h.
References LLDynamicArrayIndexed< Type, Key, BlockSize >::end(), LLDynamicArrayIndexed< Type, Key, BlockSize >::find(), mMemberVariables, and NULL.
Referenced by LLTemplateMessageBuilder::addData(), and tut::LLMessageTemplateParserTestData::ensure_variable_attributes().
S32 LLMessageBlock::getVariableSize | ( | char * | name | ) | [inline] |
EMsgVariableType LLMessageBlock::getVariableType | ( | char * | name | ) | [inline] |
std::ostream& operator<< | ( | std::ostream & | s, | |
LLMessageBlock & | msg | |||
) | [friend] |
Definition at line 97 of file llmessagetemplate.cpp.
Definition at line 240 of file llmessagetemplate.h.
Referenced by addVariable(), getVariable(), getVariableSize(), getVariableType(), LLTemplateMessageBuilder::nextBlock(), operator<<(), LLTemplateMessageBuilder::removeLastBlock(), and ~LLMessageBlock().
char* LLMessageBlock::mName |
Definition at line 241 of file llmessagetemplate.h.
Referenced by LLMessageTemplate::addBlock(), buildBlock(), tut::LLMessageTemplateParserTestData::ensure_block_attributes(), tut::LLMessageTemplateParserTestData::ensure_variable_attributes(), LLMessageBlock(), and operator<<().
Definition at line 243 of file llmessagetemplate.h.
Referenced by LLMessageTemplate::addBlock(), buildBlock(), tut::LLMessageTemplateParserTestData::ensure_block_attributes(), LLTemplateMessageBuilder::isMessageFull(), LLTemplateMessageBuilder::nextBlock(), and operator<<().
Definition at line 244 of file llmessagetemplate.h.
Referenced by LLMessageTemplate::addBlock(), addVariable(), tut::LLMessageTemplateParserTestData::ensure_block_attributes(), and operator<<().
Definition at line 242 of file llmessagetemplate.h.
Referenced by LLMessageTemplate::addBlock(), buildBlock(), tut::LLMessageTemplateParserTestData::ensure_block_attributes(), LLTemplateMessageBuilder::isMessageFull(), LLTemplateMessageBuilder::nextBlock(), and operator<<().