LLAssetType Class Reference

#include <llassettype.h>

List of all members.

Public Types

enum  EType {
  AT_TEXTURE = 0, AT_SOUND = 1, AT_CALLINGCARD = 2, AT_LANDMARK = 3,
  AT_SCRIPT = 4, AT_CLOTHING = 5, AT_OBJECT = 6, AT_NOTECARD = 7,
  AT_CATEGORY = 8, AT_ROOT_CATEGORY = 9, AT_LSL_TEXT = 10, AT_LSL_BYTECODE = 11,
  AT_TEXTURE_TGA = 12, AT_BODYPART = 13, AT_TRASH = 14, AT_SNAPSHOT_CATEGORY = 15,
  AT_LOST_AND_FOUND = 16, AT_SOUND_WAV = 17, AT_IMAGE_TGA = 18, AT_IMAGE_JPEG = 19,
  AT_ANIMATION = 20, AT_GESTURE = 21, AT_SIMSTATE = 22, AT_COUNT = 23,
  AT_NONE = -1
}

Static Public Member Functions

static EType lookup (const char *name)
static const char * lookup (EType type)
static EType lookupHumanReadable (const char *name)
static const char * lookupHumanReadable (EType type)
static EDragAndDropType lookupDragAndDropType (EType)
static void generateDescriptionFor (LLAssetType::EType type, std::string &desc)
static EType getType (const std::string &sin)
static std::string getDesc (EType type)

Private Member Functions

 LLAssetType (void)
 ~LLAssetType (void)

Static Private Attributes

static const char * mAssetTypeNames []
static const char * mAssetTypeHumanNames []


Detailed Description

Definition at line 39 of file llassettype.h.


Member Enumeration Documentation

Enumerator:
AT_TEXTURE 
AT_SOUND 
AT_CALLINGCARD 
AT_LANDMARK 
AT_SCRIPT 
AT_CLOTHING 
AT_OBJECT 
AT_NOTECARD 
AT_CATEGORY 
AT_ROOT_CATEGORY 
AT_LSL_TEXT 
AT_LSL_BYTECODE 
AT_TEXTURE_TGA 
AT_BODYPART 
AT_TRASH 
AT_SNAPSHOT_CATEGORY 
AT_LOST_AND_FOUND 
AT_SOUND_WAV 
AT_IMAGE_TGA 
AT_IMAGE_JPEG 
AT_ANIMATION 
AT_GESTURE 
AT_SIMSTATE 
AT_COUNT 
AT_NONE 

Definition at line 42 of file llassettype.h.


Constructor & Destructor Documentation

LLAssetType::LLAssetType ( void   )  [inline, private]

Definition at line 167 of file llassettype.h.

LLAssetType::~LLAssetType ( void   )  [inline, private]

Definition at line 168 of file llassettype.h.


Member Function Documentation

LLAssetType::EType LLAssetType::lookup ( const char *  name  )  [static]

Definition at line 182 of file llassettype.cpp.

References AT_COUNT, AT_NONE, i, mAssetTypeNames, and S32.

Referenced by LLAssetStorage::_cleanupRequests(), LLInventoryItem::asLLSD(), LLHTTPAssetStorage::bumpTimedOutUploads(), LLHTTPAssetStorage::checkForTimeouts(), LLTransferTargetVFile::completionCallback(), LLInvFVBridge::createBridge(), LLHTTPAssetStorage::deletePendingRequest(), LLAssetStorage::deletePendingRequest(), LLAssetStorage::downloadCompleteCallback(), LLInventoryCategory::exportFile(), LLInventoryItem::exportFile(), LLInventoryObject::exportFile(), LLViewerInventoryCategory::exportFileLocal(), LLViewerInventoryItem::exportFileLocal(), LLInventoryItem::exportFileXML(), LLInventoryCategory::exportLegacyStream(), LLInventoryItem::exportLegacyStream(), LLInventoryObject::exportLegacyStream(), LLInventoryItem::fromLLSD(), LLAssetStorage::getEstateAsset(), LLAssetStorage::getInvItemAsset(), LLHTTPAssetStorage::getPendingDetails(), LLAssetStorage::getPendingDetails(), LLAssetRequest::getTerseDetails(), LLInventoryCategory::importFile(), LLInventoryItem::importFile(), LLViewerInventoryCategory::importFileLocal(), LLInventoryCategory::importLegacyStream(), LLInventoryItem::importLegacyStream(), LLInventoryObject::importLegacyStream(), LLInventoryItem::importXML(), LLXfer_VFile::init(), LLXfer_VFile::initializeRequest(), LLAssetStorage::legacyGetDataCallback(), ll_create_category_from_sd(), ll_create_item_from_sd(), ll_create_sd_from_inventory_category(), ll_create_sd_from_inventory_item(), LLXferManager::processFileRequest(), LLFloaterCompileQueue::scriptArrived(), LLAssetInfo::setFromNameValue(), LLViewerAssetStorage::storeAssetData(), LLHTTPAssetStorage::storeAssetData(), upload_new_resource(), LLNewAgentInventoryResponder::uploadComplete(), and LLFloaterReporter::uploadImage().

Here is the caller graph for this function:

const char * LLAssetType::lookup ( LLAssetType::EType  type  )  [static]

---------------------------------------------------------------------------- class LLAssetType ----------------------------------------------------------------------------

Definition at line 169 of file llassettype.cpp.

References AT_COUNT, mAssetTypeNames, and S32.

LLAssetType::EType LLAssetType::lookupHumanReadable ( const char *  name  )  [static]

const char * LLAssetType::lookupHumanReadable ( LLAssetType::EType  type  )  [static]

Definition at line 196 of file llassettype.cpp.

References AT_COUNT, mAssetTypeHumanNames, NULL, and S32.

EDragAndDropType LLAssetType::lookupDragAndDropType ( EType  asset  )  [static]

void LLAssetType::generateDescriptionFor ( LLAssetType::EType  type,
std::string &  desc 
) [static]

Definition at line 245 of file llassettype.cpp.

References lookupHumanReadable(), and S32.

Referenced by LLInventoryPanel::createNewItem(), and LLPanelContents::onClickNewScript().

Here is the call graph for this function:

Here is the caller graph for this function:

LLAssetType::EType LLAssetType::getType ( const std::string &  sin  )  [static]

Definition at line 75 of file llassettype.cpp.

References AT_NONE, asset_info_t::desc, S32, LLStringBase< char >::toUpper(), and asset_info_t::type.

Here is the call graph for this function:

std::string LLAssetType::getDesc ( LLAssetType::EType  type  )  [static]

Definition at line 90 of file llassettype.cpp.

References AT_NONE, asset_info_t::desc, S32, and asset_info_t::type.

Referenced by LLVFS::dumpStatistics(), and LLVFS::listFiles().

Here is the caller graph for this function:


Member Data Documentation

const char * LLAssetType::mAssetTypeNames [static, private]

Initial value:

{ 
        "texture",
        "sound",
        "callcard",
        "landmark",
        "script",
        "clothing",
        "object",
        "notecard",
        "category",
        "root",
        "lsltext",
        "lslbyte",
        "txtr_tga",
        "bodypart",
        "trash",
        "snapshot",
        "lstndfnd",
        "snd_wav",
        "img_tga",
        "jpeg",
        "animatn",
        "gesture",
        "simstate",
}

Definition at line 171 of file llassettype.h.

Referenced by lookup().

const char * LLAssetType::mAssetTypeHumanNames [static, private]

Initial value:

{ 
        "texture",
        "sound",
        "calling card",
        "landmark",
        "legacy script",
        "clothing",
        "object",
        "note card",
        "folder",
        "root",
        "lsl2 script",
        "lsl bytecode",
        "tga texture",
        "body part",
        "trash",
        "snapshot",
        "lost and found",
        "sound",
        "targa image",
        "jpeg image",
        "animation",
        "gesture",
        "simstate",
}

Definition at line 172 of file llassettype.h.

Referenced by lookupHumanReadable().


The documentation for this class was generated from the following files:

Generated on Fri May 16 08:39:10 2008 for SecondLife by  doxygen 1.5.5