aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/linden/indra/llmessage/llmessagebuilder.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/llmessagebuilder.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 '')
-rw-r--r--linden/indra/llmessage/llmessagebuilder.h73
1 files changed, 53 insertions, 20 deletions
diff --git a/linden/indra/llmessage/llmessagebuilder.h b/linden/indra/llmessage/llmessagebuilder.h
index 7ae09c5..5c231bd 100644
--- a/linden/indra/llmessage/llmessagebuilder.h
+++ b/linden/indra/llmessage/llmessagebuilder.h
@@ -1,3 +1,31 @@
1/**
2 * @file llmessagebuilder.h
3 * @brief Declaration of LLMessageBuilder 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_LLMESSAGEBUILDER_H 29#ifndef LL_LLMESSAGEBUILDER_H
2#define LL_LLMESSAGEBUILDER_H 30#define LL_LLMESSAGEBUILDER_H
3 31
@@ -20,31 +48,33 @@ public:
20 //CLASS_LOG_TYPE(LLMessageBuilder); 48 //CLASS_LOG_TYPE(LLMessageBuilder);
21 49
22 virtual ~LLMessageBuilder(); 50 virtual ~LLMessageBuilder();
23 virtual void newMessage(const char *name) = 0; 51 virtual void newMessage(const char* name) = 0;
24 52
25 virtual void nextBlock(const char* blockname) = 0; 53 virtual void nextBlock(const char* blockname) = 0;
26 virtual BOOL removeLastBlock() = 0; // TODO: babbage: remove this horror 54 virtual BOOL removeLastBlock() = 0; // TODO: babbage: remove this horror
27 55
28 /** All add* methods expect pointers to canonical strings. */ 56 /** All add* methods expect pointers to canonical strings. */
29 virtual void addBinaryData(const char *varname, const void *data, 57 virtual void addBinaryData(
30 S32 size) = 0; 58 const char* varname,
59 const void* data,
60 S32 size) = 0;
31 virtual void addBOOL(const char* varname, BOOL b) = 0; 61 virtual void addBOOL(const char* varname, BOOL b) = 0;
32 virtual void addS8(const char *varname, S8 s) = 0; 62 virtual void addS8(const char* varname, S8 s) = 0;
33 virtual void addU8(const char *varname, U8 u) = 0; 63 virtual void addU8(const char* varname, U8 u) = 0;
34 virtual void addS16(const char *varname, S16 i) = 0; 64 virtual void addS16(const char* varname, S16 i) = 0;
35 virtual void addU16(const char *varname, U16 i) = 0; 65 virtual void addU16(const char* varname, U16 i) = 0;
36 virtual void addF32(const char *varname, F32 f) = 0; 66 virtual void addF32(const char* varname, F32 f) = 0;
37 virtual void addS32(const char *varname, S32 s) = 0; 67 virtual void addS32(const char* varname, S32 s) = 0;
38 virtual void addU32(const char *varname, U32 u) = 0; 68 virtual void addU32(const char* varname, U32 u) = 0;
39 virtual void addU64(const char *varname, U64 lu) = 0; 69 virtual void addU64(const char* varname, U64 lu) = 0;
40 virtual void addF64(const char *varname, F64 d) = 0; 70 virtual void addF64(const char* varname, F64 d) = 0;
41 virtual void addVector3(const char *varname, const LLVector3& vec) = 0; 71 virtual void addVector3(const char* varname, const LLVector3& vec) = 0;
42 virtual void addVector4(const char *varname, const LLVector4& vec) = 0; 72 virtual void addVector4(const char* varname, const LLVector4& vec) = 0;
43 virtual void addVector3d(const char *varname, const LLVector3d& vec) = 0; 73 virtual void addVector3d(const char* varname, const LLVector3d& vec) = 0;
44 virtual void addQuat(const char *varname, const LLQuaternion& quat) = 0; 74 virtual void addQuat(const char* varname, const LLQuaternion& quat) = 0;
45 virtual void addUUID(const char *varname, const LLUUID& uuid) = 0; 75 virtual void addUUID(const char* varname, const LLUUID& uuid) = 0;
46 virtual void addIPAddr(const char *varname, const U32 ip) = 0; 76 virtual void addIPAddr(const char* varname, const U32 ip) = 0;
47 virtual void addIPPort(const char *varname, const U16 port) = 0; 77 virtual void addIPPort(const char* varname, const U16 port) = 0;
48 virtual void addString(const char* varname, const char* s) = 0; 78 virtual void addString(const char* varname, const char* s) = 0;
49 virtual void addString(const char* varname, const std::string& s) = 0; 79 virtual void addString(const char* varname, const std::string& s) = 0;
50 80
@@ -54,7 +84,10 @@ public:
54 84
55 virtual BOOL isBuilt() const = 0; 85 virtual BOOL isBuilt() const = 0;
56 virtual BOOL isClear() const = 0; 86 virtual BOOL isClear() const = 0;
57 virtual U32 buildMessage(U8* buffer, U32 buffer_size) = 0; 87 virtual U32 buildMessage(
88 U8* buffer,
89 U32 buffer_size,
90 U8 offset_to_data) = 0;
58 /**< Return built message size */ 91 /**< Return built message size */
59 virtual void clearMessage() = 0; 92 virtual void clearMessage() = 0;
60 93