C# Class OpenSim.Region.CoreModules.Avatar.Inventory.Archiver.InventoryArchiveReadRequest

Afficher le fichier Open project: N3X15/VoxelSim Class Usage Examples

Méthodes publiques

Свойство Type Description
MAX_MAJOR_VERSION int

Protected Properties

Свойство Type Description
archive OpenSim.Framework.Serialization.TarArchiveReader
m_merge bool
m_scene OpenSim.Region.Framework.Scenes.Scene

Méthodes publiques

Méthode Description
Close ( ) : void
Execute ( ) : HashSet

Execute the request

InventoryArchiveReadRequest ( Scene scene, UserAccount userInfo, string invPath, Stream loadStream, bool merge ) : System
InventoryArchiveReadRequest ( Scene scene, UserAccount userInfo, string invPath, string loadPath, bool merge ) : System
ReplicateArchivePathToUserInventory ( string iarPath, OpenSim.Framework.InventoryFolderBase rootDestFolder, InventoryFolderBase>.Dictionary resolvedFolders, HashSet loadedNodes ) : OpenSim.Framework.InventoryFolderBase

Replicate the inventory paths in the archive to the user's inventory as necessary.

Méthodes protégées

Méthode Description
CreateFoldersForPath ( OpenSim.Framework.InventoryFolderBase destFolder, string iarPathExisting, string iarPathToReplicate, InventoryFolderBase>.Dictionary resolvedFolders, HashSet loadedNodes ) : void

Create a set of folders for the given path.

LoadControlFile ( string path, byte data ) : void

Load control file

LoadItem ( byte data, OpenSim.Framework.InventoryFolderBase loadFolder ) : OpenSim.Framework.InventoryItemBase

Load an item from the archive

ResolveDestinationFolder ( OpenSim.Framework.InventoryFolderBase rootDestFolder, string &archivePath, InventoryFolderBase>.Dictionary resolvedFolders ) : OpenSim.Framework.InventoryFolderBase

Resolve a destination folder

Private Methods

Méthode Description
LoadAsset ( string assetPath, byte data ) : bool

Load an asset

Method Details

Close() public méthode

public Close ( ) : void
Résultat void

CreateFoldersForPath() protected méthode

Create a set of folders for the given path.
protected CreateFoldersForPath ( OpenSim.Framework.InventoryFolderBase destFolder, string iarPathExisting, string iarPathToReplicate, InventoryFolderBase>.Dictionary resolvedFolders, HashSet loadedNodes ) : void
destFolder OpenSim.Framework.InventoryFolderBase /// The root folder from which the creation will take place. ///
iarPathExisting string /// the part of the iar path that already exists ///
iarPathToReplicate string /// The path to replicate in the user's inventory from iar ///
resolvedFolders InventoryFolderBase>.Dictionary /// The folders that we have resolved so far for a given archive path. ///
loadedNodes HashSet /// Track the inventory nodes created. ///
Résultat void

Execute() public méthode

Execute the request
public Execute ( ) : HashSet
Résultat HashSet

InventoryArchiveReadRequest() public méthode

public InventoryArchiveReadRequest ( Scene scene, UserAccount userInfo, string invPath, Stream loadStream, bool merge ) : System
scene OpenSim.Region.Framework.Scenes.Scene
userInfo OpenSim.Services.Interfaces.UserAccount
invPath string
loadStream Stream
merge bool
Résultat System

InventoryArchiveReadRequest() public méthode

public InventoryArchiveReadRequest ( Scene scene, UserAccount userInfo, string invPath, string loadPath, bool merge ) : System
scene OpenSim.Region.Framework.Scenes.Scene
userInfo OpenSim.Services.Interfaces.UserAccount
invPath string
loadPath string
merge bool
Résultat System

LoadControlFile() protected méthode

Load control file
protected LoadControlFile ( string path, byte data ) : void
path string
data byte
Résultat void

LoadItem() protected méthode

Load an item from the archive
protected LoadItem ( byte data, OpenSim.Framework.InventoryFolderBase loadFolder ) : OpenSim.Framework.InventoryItemBase
data byte The raw item data
loadFolder OpenSim.Framework.InventoryFolderBase
Résultat OpenSim.Framework.InventoryItemBase

ReplicateArchivePathToUserInventory() public méthode

Replicate the inventory paths in the archive to the user's inventory as necessary.
public ReplicateArchivePathToUserInventory ( string iarPath, OpenSim.Framework.InventoryFolderBase rootDestFolder, InventoryFolderBase>.Dictionary resolvedFolders, HashSet loadedNodes ) : OpenSim.Framework.InventoryFolderBase
iarPath string The item archive path to replicate
rootDestFolder OpenSim.Framework.InventoryFolderBase
resolvedFolders InventoryFolderBase>.Dictionary /// The folders that we have resolved so far for a given archive path. /// This method will add more folders if necessary ///
loadedNodes HashSet /// Track the inventory nodes created. ///
Résultat OpenSim.Framework.InventoryFolderBase

ResolveDestinationFolder() protected méthode

Resolve a destination folder
protected ResolveDestinationFolder ( OpenSim.Framework.InventoryFolderBase rootDestFolder, string &archivePath, InventoryFolderBase>.Dictionary resolvedFolders ) : OpenSim.Framework.InventoryFolderBase
rootDestFolder OpenSim.Framework.InventoryFolderBase
archivePath string /// The item archive path to resolve. The portion of the path passed back is that /// which corresponds to the resolved desintation folder. /// /// The root folder for the inventory load ///
resolvedFolders InventoryFolderBase>.Dictionary /// The folders that we have resolved so far for a given archive path. ///
Résultat OpenSim.Framework.InventoryFolderBase

Property Details

MAX_MAJOR_VERSION public_oe static_oe property

The maximum major version of archive that we can read. Minor versions shouldn't need a max number since version bumps here should be compatible.
public static int MAX_MAJOR_VERSION
Résultat int

archive protected_oe property

protected TarArchiveReader,OpenSim.Framework.Serialization archive
Résultat OpenSim.Framework.Serialization.TarArchiveReader

m_merge protected_oe property

Do we want to merge this load with existing inventory?
protected bool m_merge
Résultat bool

m_scene protected_oe property

protected Scene,OpenSim.Region.Framework.Scenes m_scene
Résultat OpenSim.Region.Framework.Scenes.Scene