llpermissions.h File Reference

Permissions structures for objects. More...

#include "llpermissionsflags.h"
#include "llsd.h"
#include "lluuid.h"
#include "llxmlnode.h"
#include "reflective.h"

Include dependency graph for llpermissions.h:

This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  LLPermissions
class  LLAggregatePermissions

Functions

void mask_to_string (U32 mask, char *str)
std::string mask_to_string (U32 mask)
LLSD ll_create_sd_from_permissions (const LLPermissions &perm)
LLPermissions ll_permissions_from_sd (const LLSD &sd_perm)


Detailed Description

Permissions structures for objects.

LicenseInfo
firstyear=2002&license=viewergpl

Copyright (c) 2002-2007, Linden Research, Inc.

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

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

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.

ALL LINDEN LAB SOURCE CODE IS PROVIDED "AS IS." LINDEN LAB MAKES NO WARRANTIES, EXPRESS, IMPLIED OR OTHERWISE, REGARDING ITS ACCURACY, COMPLETENESS OR PERFORMANCE. $/LicenseInfo$

Definition in file llpermissions.h.


Function Documentation

LLSD ll_create_sd_from_permissions ( const LLPermissions perm  ) 

Definition at line 1167 of file llpermissions.cpp.

References LLPermissions::getCreator(), LLPermissions::getGroup(), LLPermissions::getLastOwner(), LLPermissions::getMaskBase(), LLPermissions::getMaskEveryone(), LLPermissions::getMaskGroup(), LLPermissions::getMaskNextOwner(), LLPermissions::getMaskOwner(), LLPermissions::getOwner(), LLPermissions::isGroupOwned(), PERM_BASE_MASK_LABEL(), PERM_CREATOR_ID_LABEL(), PERM_EVERYONE_MASK_LABEL(), PERM_GROUP_ID_LABEL(), PERM_GROUP_MASK_LABEL(), PERM_IS_OWNER_GROUP_LABEL(), PERM_LAST_OWNER_ID_LABEL(), PERM_NEXT_OWNER_MASK_LABEL(), PERM_OWNER_ID_LABEL(), PERM_OWNER_MASK_LABEL(), and S32.

Referenced by LLInventoryItem::asLLSD(), and ll_create_sd_from_inventory_item().

LLPermissions ll_permissions_from_sd ( const LLSD sd_perm  ) 

Definition at line 1183 of file llpermissions.cpp.

References LLPermissions::fix(), LLPermissions::init(), mask, PERM_BASE_MASK_LABEL(), PERM_CREATOR_ID_LABEL(), PERM_EVERYONE_MASK_LABEL(), PERM_GROUP_ID_LABEL(), PERM_GROUP_MASK_LABEL(), PERM_LAST_OWNER_ID_LABEL(), PERM_NEXT_OWNER_MASK_LABEL(), PERM_OWNER_ID_LABEL(), PERM_OWNER_MASK_LABEL(), LLPermissions::setMaskBase(), LLPermissions::setMaskEveryone(), LLPermissions::setMaskGroup(), LLPermissions::setMaskNext(), and LLPermissions::setMaskOwner().

Referenced by LLInventoryItem::fromLLSD(), and ll_create_item_from_sd().

std::string mask_to_string ( U32  mask  ) 

Definition at line 1146 of file llpermissions.cpp.

References mask_to_string().

void mask_to_string ( U32  mask,
char *  str 
)

Definition at line 1102 of file llpermissions.cpp.

References PERM_COPY, PERM_MODIFY, PERM_MOVE, and PERM_TRANSFER.


Generated on Thu Jul 1 06:10:37 2010 for Second Life Viewer by  doxygen 1.4.7