OpenSim::Region::CoreModules::World::Archiver::AssetsDearchiver Class Reference

Dearchives assets. More...

List of all members.

Public Member Functions

 AssetsDearchiver (IAssetService cache)
void AddAssetData (string assetFilename, byte[] data)
 Add asset data to the dearchiver.
void AddAssetMetadata (string xml)
 Add asset metadata xml.

Protected Member Functions

void ResolvePendingAssetData ()
 Resolve asset data that we collected before receiving the metadata.
void ResolveAssetData (string assetPath, byte[] data)
 Resolve a new piece of asset data against stored metadata.

Protected Attributes

Dictionary< string, byte[]> m_assetDataAwaitingMetadata = new Dictionary<string, byte[]>()
 Store for asset data we received before we get the metadata.
Dictionary< string, AssetMetadatam_metadata
 Asset metadata. Is null if asset metadata isn't yet available.
IAssetService m_cache
 Cache to which dearchived assets will be added.

Static Protected Attributes

static ASCIIEncoding m_asciiEncoding = new ASCIIEncoding()

Classes

struct  AssetMetadata
 Metadata for an asset. More...


Detailed Description

Dearchives assets.


Constructor & Destructor Documentation

OpenSim::Region::CoreModules::World::Archiver::AssetsDearchiver::AssetsDearchiver ( IAssetService  cache  )  [inline]


Member Function Documentation

void OpenSim::Region::CoreModules::World::Archiver::AssetsDearchiver::AddAssetData ( string  assetFilename,
byte[]  data 
) [inline]

Add asset data to the dearchiver.

Parameters:
assetFilename 
data 

void OpenSim::Region::CoreModules::World::Archiver::AssetsDearchiver::AddAssetMetadata ( string  xml  )  [inline]

Add asset metadata xml.

Parameters:
xml 

void OpenSim::Region::CoreModules::World::Archiver::AssetsDearchiver::ResolvePendingAssetData (  )  [inline, protected]

Resolve asset data that we collected before receiving the metadata.

void OpenSim::Region::CoreModules::World::Archiver::AssetsDearchiver::ResolveAssetData ( string  assetPath,
byte[]  data 
) [inline, protected]

Resolve a new piece of asset data against stored metadata.

Parameters:
assetFilename 
data 


Member Data Documentation

ASCIIEncoding OpenSim::Region::CoreModules::World::Archiver::AssetsDearchiver::m_asciiEncoding = new ASCIIEncoding() [static, protected]

Dictionary<string, byte[]> OpenSim::Region::CoreModules::World::Archiver::AssetsDearchiver::m_assetDataAwaitingMetadata = new Dictionary<string, byte[]>() [protected]

Store for asset data we received before we get the metadata.

Asset metadata. Is null if asset metadata isn't yet available.

Cache to which dearchived assets will be added.


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

Generated on Sun Feb 12 01:00:46 2012 for OpenSim by  doxygen 1.5.6