aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/linden/indra/llcommon/llsdutil.h
diff options
context:
space:
mode:
authorJacek Antonelli2008-08-15 23:44:46 -0500
committerJacek Antonelli2008-08-15 23:44:46 -0500
commit38d6d37f2d982fa959e9e8a4a3f7e1ccfad7b5d4 (patch)
treeadca584755d22ca041a2dbfc35d4eca01f70b32c /linden/indra/llcommon/llsdutil.h
parentREADME.txt (diff)
downloadmeta-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 '')
-rw-r--r--linden/indra/llcommon/llsdutil.h73
1 files changed, 73 insertions, 0 deletions
diff --git a/linden/indra/llcommon/llsdutil.h b/linden/indra/llcommon/llsdutil.h
new file mode 100644
index 0000000..555d7fb
--- /dev/null
+++ b/linden/indra/llcommon/llsdutil.h
@@ -0,0 +1,73 @@
1/**
2 * @file llsdutil.h
3 * @author Phoenix
4 * @date 2006-05-24
5 * @brief Utility classes, functions, etc, for using structured data.
6 *
7 * Copyright (c) 2006-2007, Linden Research, Inc.
8 *
9 * The source code in this file ("Source Code") is provided by Linden Lab
10 * to you under the terms of the GNU General Public License, version 2.0
11 * ("GPL"), unless you have obtained a separate licensing agreement
12 * ("Other License"), formally executed by you and Linden Lab. Terms of
13 * the GPL can be found in doc/GPL-license.txt in this distribution, or
14 * online at http://secondlife.com/developers/opensource/gplv2
15 *
16 * There are special exceptions to the terms and conditions of the GPL as
17 * it is applied to this Source Code. View the full text of the exception
18 * in the file doc/FLOSS-exception.txt in this software distribution, or
19 * online at http://secondlife.com/developers/opensource/flossexception
20 *
21 * By copying, modifying or distributing this software, you acknowledge
22 * that you have read and understood your obligations described above,
23 * and agree to abide by those obligations.
24 *
25 * ALL LINDEN LAB SOURCE CODE IS PROVIDED "AS IS." LINDEN LAB MAKES NO
26 * WARRANTIES, EXPRESS, IMPLIED OR OTHERWISE, REGARDING ITS ACCURACY,
27 * COMPLETENESS OR PERFORMANCE.
28 */
29
30#ifndef LL_LLSDUTIL_H
31#define LL_LLSDUTIL_H
32
33#include "llsd.h"
34#include "../llmath/v3math.h"
35#include "../llmath/v3dmath.h"
36#include "../llmath/v2math.h"
37#include "../llmath/llquaternion.h"
38#include "../llmath/v4color.h"
39#include "../llprimitive/lltextureanim.h"
40
41// vector3
42LLSD ll_sd_from_vector3(const LLVector3& vec);
43LLVector3 ll_vector3_from_sd(const LLSD& sd, S32 start_index = 0);
44
45// vector3d (double)
46LLSD ll_sd_from_vector3d(const LLVector3d& vec);
47LLVector3d ll_vector3d_from_sd(const LLSD& sd, S32 start_index = 0);
48
49// vector2
50LLSD ll_sd_from_vector2(const LLVector2& vec);
51LLVector2 ll_vector2_from_sd(const LLSD& sd);
52
53// Quaternion
54LLSD ll_sd_from_quaternion(const LLQuaternion& quat);
55LLQuaternion ll_quaternion_from_sd(const LLSD& sd);
56
57// color4
58LLSD ll_sd_from_color4(const LLColor4& c);
59LLColor4 ll_color4_from_sd(const LLSD& sd);
60
61// U32
62LLSD ll_sd_from_U32(const U32);
63U32 ll_U32_from_sd(const LLSD& sd);
64
65// U64
66LLSD ll_sd_from_U64(const U64);
67U64 ll_U64_from_sd(const LLSD& sd);
68
69// IP Address
70LLSD ll_sd_from_ipaddr(const U32);
71U32 ll_ipaddr_from_sd(const LLSD& sd);
72
73#endif // LL_LLSDUTIL_H