diff options
Diffstat (limited to 'indra/llcommon/llsd.h')
| -rw-r--r-- | indra/llcommon/llsd.h | 45 | 
1 files changed, 21 insertions, 24 deletions
| diff --git a/indra/llcommon/llsd.h b/indra/llcommon/llsd.h index 1ba57b1e95..90d0f97873 100644 --- a/indra/llcommon/llsd.h +++ b/indra/llcommon/llsd.h @@ -2,30 +2,25 @@   * @file llsd.h   * @brief LLSD flexible data system.   * - * $LicenseInfo:firstyear=2005&license=viewergpl$ - *  - * Copyright (c) 2005-2007, Linden Research, Inc. - *  + * $LicenseInfo:firstyear=2005&license=viewerlgpl$   * Second Life Viewer Source Code - * The source code in this file ("Source Code") is provided by Linden Lab - * to you under the terms of the GNU General Public License, version 2.0 - * ("GPL"), unless you have obtained a separate licensing agreement - * ("Other License"), formally executed by you and Linden Lab.  Terms of - * the GPL can be found in doc/GPL-license.txt in this distribution, or - * online at http://secondlife.com/developers/opensource/gplv2 + * Copyright (C) 2010, Linden Research, Inc. + *  + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; + * version 2.1 of the License only.   *  - * There are special exceptions to the terms and conditions of the GPL as - * it is applied to this Source Code. View the full text of the exception - * in the file doc/FLOSS-exception.txt in this software distribution, or - * online at http://secondlife.com/developers/opensource/flossexception + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU + * Lesser General Public License for more details.   *  - * By copying, modifying or distributing this software, you acknowledge - * that you have read and understood your obligations described above, - * and agree to abide by those obligations. + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301  USA   *  - * ALL LINDEN LAB SOURCE CODE IS PROVIDED "AS IS." LINDEN LAB MAKES NO - * WARRANTIES, EXPRESS, IMPLIED OR OTHERWISE, REGARDING ITS ACCURACY, - * COMPLETENESS OR PERFORMANCE. + * Linden Research, Inc., 945 Battery Street, San Francisco, CA  94111  USA   * $/LicenseInfo$   */ @@ -40,7 +35,7 @@  #include "lldate.h"  #include "lluri.h" -#include "../llmath/lluuid.h" +#include "lluuid.h"  /**  	LLSD provides a flexible data system similar to the data facilities of @@ -88,7 +83,7 @@  	@nosubgrouping  */ -class LLSD +class LL_COMMON_API LLSD  {  public:  		LLSD();		///< initially Undefined @@ -224,6 +219,7 @@ public:  		LLSD get(const String&) const;  		void insert(const String&, const LLSD&);  		void erase(const String&); +		LLSD& with(const String&, const LLSD&);  		LLSD& operator[](const String&);  		LLSD& operator[](const char* c)			{ return (*this)[String(c)]; } @@ -240,6 +236,7 @@ public:  		void insert(Integer, const LLSD&);  		void append(const LLSD&);  		void erase(Integer); +		LLSD& with(Integer, const LLSD&);  		const LLSD& operator[](Integer) const;  		LLSD& operator[](Integer); @@ -386,7 +383,7 @@ struct llsd_select_string : public std::unary_function<LLSD, LLSD::String>  	}  }; -std::ostream& operator<<(std::ostream& s, const LLSD& llsd); +LL_COMMON_API std::ostream& operator<<(std::ostream& s, const LLSD& llsd);  /** QUESTIONS & TO DOS  	- Would Binary be more convenient as usigned char* buffer semantics? @@ -394,7 +391,7 @@ std::ostream& operator<<(std::ostream& s, const LLSD& llsd);  		- as UTF8 encoded strings (making not like UUID<->String)  		- as Base64 or Base96 encoded (making like UUID<->String)  	- Conversions to std::string and LLUUID do not result in easy assignment -		to std::string, LLString or LLUUID due to non-unique conversion paths +		to std::string, std::string or LLUUID due to non-unique conversion paths  */  #endif // LL_LLSD_NEW_H | 
