LLMessageBlock Class Reference

#include <llmessagetemplate.h>

Collaboration diagram for LLMessageBlock:

Collaboration graph
[legend]
List of all members.

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 LLMessageVariablegetVariable (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)

Detailed Description

Definition at line 189 of file llmessagetemplate.h.


Member Typedef Documentation

typedef LLDynamicArrayIndexed<LLMessageVariable*, const char *, 8> LLMessageBlock::message_variable_map_t

Definition at line 239 of file llmessagetemplate.h.


Constructor & Destructor Documentation

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.


Member Function Documentation

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]

Definition at line 226 of file llmessagetemplate.h.

References mMemberVariables.

EMsgVariableType LLMessageBlock::getVariableType ( char *  name  )  [inline]

Definition at line 221 of file llmessagetemplate.h.

References mMemberVariables.


Friends And Related Function Documentation

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

Definition at line 97 of file llmessagetemplate.cpp.


Member Data Documentation

message_variable_map_t LLMessageBlock::mMemberVariables

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<<().

S32 LLMessageBlock::mNumber

Definition at line 243 of file llmessagetemplate.h.

Referenced by LLMessageTemplate::addBlock(), buildBlock(), tut::LLMessageTemplateParserTestData::ensure_block_attributes(), LLTemplateMessageBuilder::isMessageFull(), LLTemplateMessageBuilder::nextBlock(), and operator<<().

S32 LLMessageBlock::mTotalSize

Definition at line 244 of file llmessagetemplate.h.

Referenced by LLMessageTemplate::addBlock(), addVariable(), tut::LLMessageTemplateParserTestData::ensure_block_attributes(), and operator<<().

EMsgBlockType LLMessageBlock::mType

Definition at line 242 of file llmessagetemplate.h.

Referenced by LLMessageTemplate::addBlock(), buildBlock(), tut::LLMessageTemplateParserTestData::ensure_block_attributes(), LLTemplateMessageBuilder::isMessageFull(), LLTemplateMessageBuilder::nextBlock(), and operator<<().


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