summaryrefslogtreecommitdiff
path: root/indra/llmessage/lltemplatemessagebuilder.h
diff options
context:
space:
mode:
authorTess Chu <tess@lindenlab.com>2007-07-11 21:29:02 +0000
committerTess Chu <tess@lindenlab.com>2007-07-11 21:29:02 +0000
commit57b8fef824b6d7f37c5be5812ebffa39ab2e8093 (patch)
treef89014544fc276b283a36eb2e0cb52e93806a44a /indra/llmessage/lltemplatemessagebuilder.h
parenta6769f262ff910949a7e1c81cf98e52ddfc2d44a (diff)
svn merge --ignore-ancestry svn+ssh://svn/svn/linden/release@65088 svn+ssh://svn/svn/linden/branches/release-candidate@65078 -> release Paired by Tess and rdw.
Diffstat (limited to 'indra/llmessage/lltemplatemessagebuilder.h')
-rw-r--r--indra/llmessage/lltemplatemessagebuilder.h52
1 files changed, 30 insertions, 22 deletions
diff --git a/indra/llmessage/lltemplatemessagebuilder.h b/indra/llmessage/lltemplatemessagebuilder.h
index ae533288fb..6cc06ee0f3 100644
--- a/indra/llmessage/lltemplatemessagebuilder.h
+++ b/indra/llmessage/lltemplatemessagebuilder.h
@@ -1,3 +1,11 @@
+/**
+ * @file lltemplatemessagebuilder.h
+ * @brief Declaration of LLTemplateMessageBuilder class.
+ *
+ * Copyright (c) 2007-$CurrentYear$, Linden Research, Inc.
+ * $License$
+ */
+
#ifndef LL_LLTEMPLATEMESSAGEBUILDER_H
#define LL_LLTEMPLATEMESSAGEBUILDER_H
@@ -15,12 +23,12 @@ class LLTemplateMessageBuilder : public LLMessageBuilder
{
public:
- typedef std::map<const char *, LLMessageTemplate*> message_template_name_map_t;
+ typedef std::map<const char* , LLMessageTemplate*> message_template_name_map_t;
LLTemplateMessageBuilder(message_template_name_map_t&);
virtual ~LLTemplateMessageBuilder();
- virtual void newMessage(const char *name);
+ virtual void newMessage(const char* name);
virtual void nextBlock(const char* blockname);
virtual BOOL removeLastBlock(); // TODO: babbage: remove this horror...
@@ -29,22 +37,22 @@ public:
virtual void addBinaryData(const char *varname, const void *data,
S32 size);
virtual void addBOOL(const char* varname, BOOL b);
- virtual void addS8(const char *varname, S8 s);
- virtual void addU8(const char *varname, U8 u);
- virtual void addS16(const char *varname, S16 i);
- virtual void addU16(const char *varname, U16 i);
- virtual void addF32(const char *varname, F32 f);
- virtual void addS32(const char *varname, S32 s);
- virtual void addU32(const char *varname, U32 u);
- virtual void addU64(const char *varname, U64 lu);
- virtual void addF64(const char *varname, F64 d);
- virtual void addVector3(const char *varname, const LLVector3& vec);
- virtual void addVector4(const char *varname, const LLVector4& vec);
- virtual void addVector3d(const char *varname, const LLVector3d& vec);
- virtual void addQuat(const char *varname, const LLQuaternion& quat);
- virtual void addUUID(const char *varname, const LLUUID& uuid);
- virtual void addIPAddr(const char *varname, const U32 ip);
- virtual void addIPPort(const char *varname, const U16 port);
+ virtual void addS8(const char* varname, S8 s);
+ virtual void addU8(const char* varname, U8 u);
+ virtual void addS16(const char* varname, S16 i);
+ virtual void addU16(const char* varname, U16 i);
+ virtual void addF32(const char* varname, F32 f);
+ virtual void addS32(const char* varname, S32 s);
+ virtual void addU32(const char* varname, U32 u);
+ virtual void addU64(const char* varname, U64 lu);
+ virtual void addF64(const char* varname, F64 d);
+ virtual void addVector3(const char* varname, const LLVector3& vec);
+ virtual void addVector4(const char* varname, const LLVector4& vec);
+ virtual void addVector3d(const char* varname, const LLVector3d& vec);
+ virtual void addQuat(const char* varname, const LLQuaternion& quat);
+ virtual void addUUID(const char* varname, const LLUUID& uuid);
+ virtual void addIPAddr(const char* varname, const U32 ip);
+ virtual void addIPPort(const char* varname, const U16 port);
virtual void addString(const char* varname, const char* s);
virtual void addString(const char* varname, const std::string& s);
@@ -53,7 +61,7 @@ public:
virtual BOOL isBuilt() const;
virtual BOOL isClear() const;
- virtual U32 buildMessage(U8* buffer, U32 buffer_size);
+ virtual U32 buildMessage(U8* buffer, U32 buffer_size, U8 offset_to_data);
/**< Return built message size */
virtual void clearMessage();
@@ -68,14 +76,14 @@ public:
virtual void copyFromLLSD(const LLSD&);
private:
- void addData(const char *varname, const void *data,
+ void addData(const char* varname, const void* data,
EMsgVariableType type, S32 size);
- void addData(const char *varname, const void *data,
+ void addData(const char* varname, const void* data,
EMsgVariableType type);
LLMsgData* mCurrentSMessageData;
- LLMessageTemplate* mCurrentSMessageTemplate;
+ const LLMessageTemplate* mCurrentSMessageTemplate;
LLMsgBlkData* mCurrentSDataBlock;
char* mCurrentSMessageName;
char* mCurrentSBlockName;