llpermissions.cpp File Reference

Permissions for objects and inventory. More...

#include "linden_common.h"
#include "llpermissions.h"
#include "message.h"
#include "metapropertyt.h"

Include dependency graph for llpermissions.cpp:

Go to the source code of this file.

Functions

std::ostream & operator<< (std::ostream &s, const LLPermissions &perm)
std::ostream & operator<< (std::ostream &s, const LLAggregatePermissions &perm)
void mask_to_string (U32 mask, char *str)
std::string mask_to_string (U32 mask)
static const std::string PERM_CREATOR_ID_LABEL ("creator_id")
static const std::string PERM_OWNER_ID_LABEL ("owner_id")
static const std::string PERM_LAST_OWNER_ID_LABEL ("last_owner_id")
static const std::string PERM_GROUP_ID_LABEL ("group_id")
static const std::string PERM_IS_OWNER_GROUP_LABEL ("is_owner_group")
static const std::string PERM_BASE_MASK_LABEL ("base_mask")
static const std::string PERM_OWNER_MASK_LABEL ("owner_mask")
static const std::string PERM_GROUP_MASK_LABEL ("group_mask")
static const std::string PERM_EVERYONE_MASK_LABEL ("everyone_mask")
static const std::string PERM_NEXT_OWNER_MASK_LABEL ("next_owner_mask")
LLSD ll_create_sd_from_permissions (const LLPermissions &perm)
LLPermissions ll_permissions_from_sd (const LLSD &sd_perm)

Variables

const LLString AGGREGATE_VALUES [4]


Detailed Description

Permissions for objects and inventory.

Author:
Phoenix
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.cpp.


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.

Referenced by mask_to_string(), LLPanelPermissions::refresh(), and LLFloaterProperties::refreshFromItem().

std::ostream& operator<< ( std::ostream &  s,
const LLAggregatePermissions perm 
)

Definition at line 1092 of file llpermissions.cpp.

References AGGREGATE_VALUES, LLAggregatePermissions::mBits, LLAggregatePermissions::PI_COPY, LLAggregatePermissions::PI_MODIFY, and LLAggregatePermissions::PI_TRANSFER.

std::ostream& operator<< ( std::ostream &  s,
const LLPermissions perm 
)

Definition at line 880 of file llpermissions.cpp.

References LLPermissions::getCreator(), LLPermissions::getGroup(), LLPermissions::getMaskBase(), LLPermissions::getMaskEveryone(), LLPermissions::getMaskGroup(), LLPermissions::getMaskNextOwner(), LLPermissions::getMaskOwner(), and LLPermissions::getOwner().

static const std::string PERM_BASE_MASK_LABEL ( "base_mask"   )  [static]

Referenced by ll_create_sd_from_permissions(), and ll_permissions_from_sd().

static const std::string PERM_CREATOR_ID_LABEL ( "creator_id"   )  [static]

---------------------------------------------------------------------------- exported functions ----------------------------------------------------------------------------

Referenced by ll_create_sd_from_permissions(), and ll_permissions_from_sd().

static const std::string PERM_EVERYONE_MASK_LABEL ( "everyone_mask"   )  [static]

Referenced by ll_create_sd_from_permissions(), and ll_permissions_from_sd().

static const std::string PERM_GROUP_ID_LABEL ( "group_id"   )  [static]

Referenced by ll_create_sd_from_permissions(), and ll_permissions_from_sd().

static const std::string PERM_GROUP_MASK_LABEL ( "group_mask"   )  [static]

Referenced by ll_create_sd_from_permissions(), and ll_permissions_from_sd().

static const std::string PERM_IS_OWNER_GROUP_LABEL ( "is_owner_group"   )  [static]

Referenced by ll_create_sd_from_permissions().

static const std::string PERM_LAST_OWNER_ID_LABEL ( "last_owner_id"   )  [static]

Referenced by ll_create_sd_from_permissions(), and ll_permissions_from_sd().

static const std::string PERM_NEXT_OWNER_MASK_LABEL ( "next_owner_mask"   )  [static]

Referenced by ll_create_sd_from_permissions(), and ll_permissions_from_sd().

static const std::string PERM_OWNER_ID_LABEL ( "owner_id"   )  [static]

Referenced by ll_create_sd_from_permissions(), and ll_permissions_from_sd().

static const std::string PERM_OWNER_MASK_LABEL ( "owner_mask"   )  [static]

Referenced by ll_create_sd_from_permissions(), and ll_permissions_from_sd().


Variable Documentation

const LLString AGGREGATE_VALUES[4]

Initial value:

        {
                LLString( "Empty" ),
                LLString( "None" ),
                LLString( "Some" ),
                LLString( "All" )
        }

Definition at line 1084 of file llpermissions.cpp.

Referenced by operator<<().


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