diff options
author | Jacek Antonelli | 2008-08-15 23:44:46 -0500 |
---|---|---|
committer | Jacek Antonelli | 2008-08-15 23:44:46 -0500 |
commit | 38d6d37f2d982fa959e9e8a4a3f7e1ccfad7b5d4 (patch) | |
tree | adca584755d22ca041a2dbfc35d4eca01f70b32c /linden/indra/llprimitive/llvolumemessage.h | |
parent | README.txt (diff) | |
download | meta-impy-38d6d37f2d982fa959e9e8a4a3f7e1ccfad7b5d4.zip meta-impy-38d6d37f2d982fa959e9e8a4a3f7e1ccfad7b5d4.tar.gz meta-impy-38d6d37f2d982fa959e9e8a4a3f7e1ccfad7b5d4.tar.bz2 meta-impy-38d6d37f2d982fa959e9e8a4a3f7e1ccfad7b5d4.tar.xz |
Second Life viewer sources 1.13.2.12
Diffstat (limited to 'linden/indra/llprimitive/llvolumemessage.h')
-rw-r--r-- | linden/indra/llprimitive/llvolumemessage.h | 93 |
1 files changed, 93 insertions, 0 deletions
diff --git a/linden/indra/llprimitive/llvolumemessage.h b/linden/indra/llprimitive/llvolumemessage.h new file mode 100644 index 0000000..ad062a9 --- /dev/null +++ b/linden/indra/llprimitive/llvolumemessage.h | |||
@@ -0,0 +1,93 @@ | |||
1 | /** | ||
2 | * @file llvolumemessage.h | ||
3 | * @brief LLVolumeMessage base class | ||
4 | * | ||
5 | * Copyright (c) 2001-2007, Linden Research, Inc. | ||
6 | * | ||
7 | * The source code in this file ("Source Code") is provided by Linden Lab | ||
8 | * to you under the terms of the GNU General Public License, version 2.0 | ||
9 | * ("GPL"), unless you have obtained a separate licensing agreement | ||
10 | * ("Other License"), formally executed by you and Linden Lab. Terms of | ||
11 | * the GPL can be found in doc/GPL-license.txt in this distribution, or | ||
12 | * online at http://secondlife.com/developers/opensource/gplv2 | ||
13 | * | ||
14 | * There are special exceptions to the terms and conditions of the GPL as | ||
15 | * it is applied to this Source Code. View the full text of the exception | ||
16 | * in the file doc/FLOSS-exception.txt in this software distribution, or | ||
17 | * online at http://secondlife.com/developers/opensource/flossexception | ||
18 | * | ||
19 | * By copying, modifying or distributing this software, you acknowledge | ||
20 | * that you have read and understood your obligations described above, | ||
21 | * and agree to abide by those obligations. | ||
22 | * | ||
23 | * ALL LINDEN LAB SOURCE CODE IS PROVIDED "AS IS." LINDEN LAB MAKES NO | ||
24 | * WARRANTIES, EXPRESS, IMPLIED OR OTHERWISE, REGARDING ITS ACCURACY, | ||
25 | * COMPLETENESS OR PERFORMANCE. | ||
26 | */ | ||
27 | |||
28 | #ifndef LL_LLVOLUMEMESSAGE_H | ||
29 | #define LL_LLVOLUMEMESSAGE_H | ||
30 | |||
31 | #include "llvolume.h" | ||
32 | |||
33 | class LLMessageSystem; | ||
34 | class LLDataPacker; | ||
35 | |||
36 | // wrapper class for some volume/message functions | ||
37 | class LLVolumeMessage | ||
38 | { | ||
39 | protected: | ||
40 | // The profile and path params are protected since they do not do | ||
41 | // any kind of parameter validation or clamping. Use the public | ||
42 | // pack and unpack volume param methods below | ||
43 | |||
44 | static bool packProfileParams( | ||
45 | const LLProfileParams* params, | ||
46 | LLMessageSystem* mesgsys); | ||
47 | static bool packProfileParams( | ||
48 | const LLProfileParams* params, | ||
49 | LLDataPacker& dp); | ||
50 | static bool unpackProfileParams( | ||
51 | LLProfileParams* params, | ||
52 | LLMessageSystem* mesgsys, | ||
53 | char* block_name, | ||
54 | S32 block_num = 0); | ||
55 | static bool unpackProfileParams(LLProfileParams* params, LLDataPacker& dp); | ||
56 | |||
57 | static bool packPathParams( | ||
58 | const LLPathParams* params, | ||
59 | LLMessageSystem* mesgsys); | ||
60 | static bool packPathParams(const LLPathParams* params, LLDataPacker& dp); | ||
61 | static bool unpackPathParams( | ||
62 | LLPathParams* params, | ||
63 | LLMessageSystem* mesgsys, | ||
64 | char* block_name, | ||
65 | S32 block_num = 0); | ||
66 | static bool unpackPathParams(LLPathParams* params, LLDataPacker& dp); | ||
67 | |||
68 | public: | ||
69 | /** | ||
70 | * @brief This method constrains any volume params to make them valid. | ||
71 | * | ||
72 | * @param[in,out] Possibly invalid params in, always valid out. | ||
73 | * @return Returns true if the in params were valid, and therefore | ||
74 | * unchanged. | ||
75 | */ | ||
76 | static bool constrainVolumeParams(LLVolumeParams& params); | ||
77 | |||
78 | static bool packVolumeParams( | ||
79 | const LLVolumeParams* params, | ||
80 | LLMessageSystem* mesgsys); | ||
81 | static bool packVolumeParams( | ||
82 | const LLVolumeParams* params, | ||
83 | LLDataPacker& dp); | ||
84 | static bool unpackVolumeParams( | ||
85 | LLVolumeParams* params, | ||
86 | LLMessageSystem* mesgsys, | ||
87 | char* block_name, | ||
88 | S32 block_num = 0); | ||
89 | static bool unpackVolumeParams(LLVolumeParams* params, LLDataPacker &dp); | ||
90 | }; | ||
91 | |||
92 | #endif // LL_LLVOLUMEMESSAGE_H | ||
93 | |||