aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/linden/indra/llmessage/llsdmessagebuilder.h
diff options
context:
space:
mode:
authorJacek Antonelli2008-08-15 23:45:02 -0500
committerJacek Antonelli2008-08-15 23:45:02 -0500
commitd644fc64407dcd14ffcee6a0e9fbe28ee3a4e9bd (patch)
tree7ed0c2c27d717801238a2e6b5749cd5bf88c3059 /linden/indra/llmessage/llsdmessagebuilder.h
parentSecond Life viewer sources 1.17.3.0 (diff)
downloadmeta-impy-d644fc64407dcd14ffcee6a0e9fbe28ee3a4e9bd.zip
meta-impy-d644fc64407dcd14ffcee6a0e9fbe28ee3a4e9bd.tar.gz
meta-impy-d644fc64407dcd14ffcee6a0e9fbe28ee3a4e9bd.tar.bz2
meta-impy-d644fc64407dcd14ffcee6a0e9fbe28ee3a4e9bd.tar.xz
Second Life viewer sources 1.18.0.6
Diffstat (limited to 'linden/indra/llmessage/llsdmessagebuilder.h')
-rwxr-xr-xlinden/indra/llmessage/llsdmessagebuilder.h72
1 files changed, 51 insertions, 21 deletions
diff --git a/linden/indra/llmessage/llsdmessagebuilder.h b/linden/indra/llmessage/llsdmessagebuilder.h
index f04194d..8ea7763 100755
--- a/linden/indra/llmessage/llsdmessagebuilder.h
+++ b/linden/indra/llmessage/llsdmessagebuilder.h
@@ -1,3 +1,31 @@
1/**
2 * @file llsdmessagebuilder.h
3 * @brief Declaration of LLSDMessageBuilder class.
4 *
5 * Copyright (c) 2007-2007, Linden Research, Inc.
6 *
7 * Second Life Viewer Source Code
8 * The source code in this file ("Source Code") is provided by Linden Lab
9 * to you under the terms of the GNU General Public License, version 2.0
10 * ("GPL"), unless you have obtained a separate licensing agreement
11 * ("Other License"), formally executed by you and Linden Lab. Terms of
12 * the GPL can be found in doc/GPL-license.txt in this distribution, or
13 * online at http://secondlife.com/developers/opensource/gplv2
14 *
15 * There are special exceptions to the terms and conditions of the GPL as
16 * it is applied to this Source Code. View the full text of the exception
17 * in the file doc/FLOSS-exception.txt in this software distribution, or
18 * online at http://secondlife.com/developers/opensource/flossexception
19 *
20 * By copying, modifying or distributing this software, you acknowledge
21 * that you have read and understood your obligations described above,
22 * and agree to abide by those obligations.
23 *
24 * ALL LINDEN LAB SOURCE CODE IS PROVIDED "AS IS." LINDEN LAB MAKES NO
25 * WARRANTIES, EXPRESS, IMPLIED OR OTHERWISE, REGARDING ITS ACCURACY,
26 * COMPLETENESS OR PERFORMANCE.
27 */
28
1#ifndef LL_LLSDMESSAGEBUILDER_H 29#ifndef LL_LLSDMESSAGEBUILDER_H
2#define LL_LLSDMESSAGEBUILDER_H 30#define LL_LLSDMESSAGEBUILDER_H
3 31
@@ -19,31 +47,33 @@ public:
19 LLSDMessageBuilder(); 47 LLSDMessageBuilder();
20 virtual ~LLSDMessageBuilder(); 48 virtual ~LLSDMessageBuilder();
21 49
22 virtual void newMessage(const char *name); 50 virtual void newMessage(const char* name);
23 51
24 virtual void nextBlock(const char* blockname); 52 virtual void nextBlock(const char* blockname);
25 virtual BOOL removeLastBlock(); // TODO: babbage: remove this horror... 53 virtual BOOL removeLastBlock(); // TODO: babbage: remove this horror...
26 54
27 /** All add* methods expect pointers to canonical varname strings. */ 55 /** All add* methods expect pointers to canonical varname strings. */
28 virtual void addBinaryData(const char *varname, const void *data, 56 virtual void addBinaryData(
29 S32 size); 57 const char* varname,
58 const void* data,
59 S32 size);
30 virtual void addBOOL(const char* varname, BOOL b); 60 virtual void addBOOL(const char* varname, BOOL b);
31 virtual void addS8(const char *varname, S8 s); 61 virtual void addS8(const char* varname, S8 s);
32 virtual void addU8(const char *varname, U8 u); 62 virtual void addU8(const char* varname, U8 u);
33 virtual void addS16(const char *varname, S16 i); 63 virtual void addS16(const char* varname, S16 i);
34 virtual void addU16(const char *varname, U16 i); 64 virtual void addU16(const char* varname, U16 i);
35 virtual void addF32(const char *varname, F32 f); 65 virtual void addF32(const char* varname, F32 f);
36 virtual void addS32(const char *varname, S32 s); 66 virtual void addS32(const char* varname, S32 s);
37 virtual void addU32(const char *varname, U32 u); 67 virtual void addU32(const char* varname, U32 u);
38 virtual void addU64(const char *varname, U64 lu); 68 virtual void addU64(const char* varname, U64 lu);
39 virtual void addF64(const char *varname, F64 d); 69 virtual void addF64(const char* varname, F64 d);
40 virtual void addVector3(const char *varname, const LLVector3& vec); 70 virtual void addVector3(const char* varname, const LLVector3& vec);
41 virtual void addVector4(const char *varname, const LLVector4& vec); 71 virtual void addVector4(const char* varname, const LLVector4& vec);
42 virtual void addVector3d(const char *varname, const LLVector3d& vec); 72 virtual void addVector3d(const char* varname, const LLVector3d& vec);
43 virtual void addQuat(const char *varname, const LLQuaternion& quat); 73 virtual void addQuat(const char* varname, const LLQuaternion& quat);
44 virtual void addUUID(const char *varname, const LLUUID& uuid); 74 virtual void addUUID(const char* varname, const LLUUID& uuid);
45 virtual void addIPAddr(const char *varname, const U32 ip); 75 virtual void addIPAddr(const char* varname, const U32 ip);
46 virtual void addIPPort(const char *varname, const U16 port); 76 virtual void addIPPort(const char* varname, const U16 port);
47 virtual void addString(const char* varname, const char* s); 77 virtual void addString(const char* varname, const char* s);
48 virtual void addString(const char* varname, const std::string& s); 78 virtual void addString(const char* varname, const std::string& s);
49 79
@@ -52,8 +82,8 @@ public:
52 82
53 virtual BOOL isBuilt() const; 83 virtual BOOL isBuilt() const;
54 virtual BOOL isClear() const; 84 virtual BOOL isClear() const;
55 virtual U32 buildMessage(U8* buffer, U32 buffer_size); 85 virtual U32 buildMessage(U8* buffer, U32 buffer_size, U8 offset_to_data);
56 /**< Return built message size */ 86 /**< Null implementation which returns 0. */
57 87
58 virtual void clearMessage(); 88 virtual void clearMessage();
59 89