llinventorytype.cpp File Reference

Inventory item type, more specific than an asset type. More...

#include "linden_common.h"
#include "llinventorytype.h"

Include dependency graph for llinventorytype.cpp:

Go to the source code of this file.

Functions

bool inventory_and_asset_types_match (LLInventoryType::EType inventory_type, LLAssetType::EType asset_type)

Variables

static const char * INVENTORY_TYPE_NAMES [LLInventoryType::IT_COUNT]
static const char * INVENTORY_TYPE_HUMAN_NAMES [LLInventoryType::IT_COUNT]
static const LLInventoryType::EType DEFAULT_ASSET_FOR_INV_TYPE [LLAssetType::AT_COUNT]
static const int MAX_POSSIBLE_ASSET_TYPES = 2
static const LLAssetType::EType INVENTORY_TO_ASSET_TYPE [LLInventoryType::IT_COUNT][MAX_POSSIBLE_ASSET_TYPES]


Detailed Description

Inventory item type, more specific than an asset type.

LicenseInfo
firstyear=2001&license=viewergpl

Copyright (c) 2001-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 llinventorytype.cpp.


Function Documentation

bool inventory_and_asset_types_match ( LLInventoryType::EType  inventory_type,
LLAssetType::EType  asset_type 
)

Definition at line 208 of file llinventorytype.cpp.

References i, INVENTORY_TO_ASSET_TYPE, LLInventoryType::IT_COUNT, MAX_POSSIBLE_ASSET_TYPES, and S32.

Referenced by LLInventoryItem::fromLLSD(), LLInventoryItem::importFile(), and LLInventoryItem::importLegacyStream().


Variable Documentation

const LLInventoryType::EType DEFAULT_ASSET_FOR_INV_TYPE[LLAssetType::AT_COUNT] [static]

Initial value:

Definition at line 98 of file llinventorytype.cpp.

Referenced by LLInventoryType::defaultForAssetType().

const LLAssetType::EType INVENTORY_TO_ASSET_TYPE[LLInventoryType::IT_COUNT][MAX_POSSIBLE_ASSET_TYPES] [static]

Initial value:

{
        { LLAssetType::AT_TEXTURE, LLAssetType::AT_NONE },              
        { LLAssetType::AT_SOUND, LLAssetType::AT_NONE },                
        { LLAssetType::AT_CALLINGCARD, LLAssetType::AT_NONE },  
        { LLAssetType::AT_LANDMARK, LLAssetType::AT_NONE },             
        { LLAssetType::AT_NONE, LLAssetType::AT_NONE },
        { LLAssetType::AT_NONE, LLAssetType::AT_NONE },
        { LLAssetType::AT_OBJECT, LLAssetType::AT_NONE },               
        { LLAssetType::AT_NOTECARD, LLAssetType::AT_NONE },             
        { LLAssetType::AT_NONE, LLAssetType::AT_NONE },                 
        { LLAssetType::AT_NONE, LLAssetType::AT_NONE },                 
        { LLAssetType::AT_LSL_TEXT, LLAssetType::AT_LSL_BYTECODE }, 
        { LLAssetType::AT_NONE, LLAssetType::AT_NONE },
        { LLAssetType::AT_NONE, LLAssetType::AT_NONE },
        { LLAssetType::AT_NONE, LLAssetType::AT_NONE },
        { LLAssetType::AT_NONE, LLAssetType::AT_NONE },
        { LLAssetType::AT_TEXTURE, LLAssetType::AT_NONE },              
        { LLAssetType::AT_NONE, LLAssetType::AT_NONE },
        { LLAssetType::AT_OBJECT, LLAssetType::AT_NONE },               
        { LLAssetType::AT_CLOTHING, LLAssetType::AT_BODYPART }, 
        { LLAssetType::AT_ANIMATION, LLAssetType::AT_NONE },    
        { LLAssetType::AT_GESTURE, LLAssetType::AT_NONE },              
}

Definition at line 126 of file llinventorytype.cpp.

Referenced by inventory_and_asset_types_match().

const char* INVENTORY_TYPE_HUMAN_NAMES[LLInventoryType::IT_COUNT] [static]

Initial value:

{ 
        "texture",      
        "sound",
        "calling card",
        "landmark",
        NULL,
        NULL,           
        "object",
        "note card",
        "folder",
        "root",
        "script",       
        NULL,
        NULL,
        NULL,
        NULL,
        "snapshot",     
        NULL,
        "attachment",
        "wearable",
        "animation",
        "gesture",              
}

Definition at line 70 of file llinventorytype.cpp.

Referenced by LLInventoryType::lookupHumanReadable().

const char* INVENTORY_TYPE_NAMES[LLInventoryType::IT_COUNT] [static]

Initial value:

{ 
        "texture",      
        "sound",
        "callcard",
        "landmark",
        NULL,
        NULL,           
        "object",
        "notecard",
        "category",
        "root",
        "script",       
        NULL,
        NULL,
        NULL,
        NULL,
        "snapshot",     
        NULL,
        "attach",
        "wearable",
        "animation",
        "gesture",              
}
---------------------------------------------------------------------------- Class LLInventoryType ----------------------------------------------------------------------------

Definition at line 42 of file llinventorytype.cpp.

Referenced by LLInventoryType::lookup().

const int MAX_POSSIBLE_ASSET_TYPES = 2 [static]

Definition at line 124 of file llinventorytype.cpp.

Referenced by inventory_and_asset_types_match().


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