C# Класс Universe.Modules.Archivers.InventoryArchiveReadRequest

Показать файл Открыть проект Примеры использования класса

Защищенные свойства (Protected)

Свойство Тип Описание
archive Universe.Framework.Serialization.TarArchiveReader
m_assetsIncluded bool
m_creatorIdForAssetId UUID>.Dictionary
m_merge bool
m_registry IRegistryCore

Открытые методы

Метод Описание
AddInventoryItem ( InventoryItemBase item ) : bool
Close ( ) : void
Execute ( bool loadAll ) : HashSet

Execute the request

InventoryArchiveReadRequest ( IRegistryCore registry, UserAccount userInfo, string invPath, string loadPath, bool merge, UUID overwriteCreator ) : System
LoadControlFile ( byte data ) : void

Loads the archive.xml control file.

ReplicateArchivePathToUserInventory ( string iarPath, InventoryFolderBase rootDestFolder, InventoryFolderBase>.Dictionary &resolvedFolders, HashSet &loadedNodes ) : InventoryFolderBase

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

Защищенные методы

Метод Описание
CreateFoldersForPath ( InventoryFolderBase destFolder, string iarPathExisting, string iarPathToReplicate, InventoryFolderBase>.Dictionary &resolvedFolders, HashSet &loadedNodes ) : void

Create a set of folders for the given path.

LoadItem ( byte data, InventoryFolderBase loadFolder ) : InventoryItemBase

Load an item from the archive

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

Resolve a destination folder

Приватные методы

Метод Описание
InventoryArchiveReadRequest ( ) : System
LoadAsset ( string assetPath, byte data ) : bool

Load an asset

Описание методов

AddInventoryItem() публичный Метод

public AddInventoryItem ( InventoryItemBase item ) : bool
item Universe.Framework.Services.ClassHelpers.Inventory.InventoryItemBase
Результат bool

Close() публичный Метод

public Close ( ) : void
Результат void

CreateFoldersForPath() защищенный Метод

Create a set of folders for the given path.
protected CreateFoldersForPath ( InventoryFolderBase destFolder, string iarPathExisting, string iarPathToReplicate, InventoryFolderBase>.Dictionary &resolvedFolders, HashSet &loadedNodes ) : void
destFolder Universe.Framework.Services.ClassHelpers.Inventory.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. ///
Результат void

Execute() публичный Метод

Execute the request
public Execute ( bool loadAll ) : HashSet
loadAll bool
Результат HashSet

InventoryArchiveReadRequest() публичный Метод

public InventoryArchiveReadRequest ( IRegistryCore registry, UserAccount userInfo, string invPath, string loadPath, bool merge, UUID overwriteCreator ) : System
registry IRegistryCore
userInfo Universe.Framework.Services.UserAccount
invPath string
loadPath string
merge bool
overwriteCreator UUID
Результат System

LoadControlFile() публичный Метод

Loads the archive.xml control file.
public LoadControlFile ( byte data ) : void
data byte Data.
Результат void

LoadItem() защищенный Метод

Load an item from the archive
protected LoadItem ( byte data, InventoryFolderBase loadFolder ) : InventoryItemBase
data byte The raw item data
loadFolder Universe.Framework.Services.ClassHelpers.Inventory.InventoryFolderBase
Результат Universe.Framework.Services.ClassHelpers.Inventory.InventoryItemBase

ReplicateArchivePathToUserInventory() публичный Метод

Replicate the inventory paths in the archive to the user's inventory as necessary.
public ReplicateArchivePathToUserInventory ( string iarPath, InventoryFolderBase rootDestFolder, InventoryFolderBase>.Dictionary &resolvedFolders, HashSet &loadedNodes ) : InventoryFolderBase
iarPath string The item archive path to replicate
rootDestFolder Universe.Framework.Services.ClassHelpers.Inventory.InventoryFolderBase The root folder for the inventory load
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. ///
Результат Universe.Framework.Services.ClassHelpers.Inventory.InventoryFolderBase

ResolveDestinationFolder() защищенный Метод

Resolve a destination folder
protected ResolveDestinationFolder ( InventoryFolderBase rootDestFolder, string &archivePath, InventoryFolderBase>.Dictionary &resolvedFolders ) : InventoryFolderBase
rootDestFolder Universe.Framework.Services.ClassHelpers.Inventory.InventoryFolderBase /// The root folder for the inventory load ///
archivePath string /// The item archive path to resolve. The portion of the path passed back is that /// which corresponds to the resolved destination folder. ///
resolvedFolders InventoryFolderBase>.Dictionary /// The folders that we have resolved so far for a given archive path. ///
Результат Universe.Framework.Services.ClassHelpers.Inventory.InventoryFolderBase

Описание свойств

archive защищенное свойство

protected TarArchiveReader,Universe.Framework.Serialization archive
Результат Universe.Framework.Serialization.TarArchiveReader

m_assetsIncluded защищенное свойство

protected bool m_assetsIncluded
Результат bool

m_creatorIdForAssetId защищенное свойство

Record the creator id that should be associated with an asset. This is used to adjust asset creator ids after OSP resolution (since OSP creators are only stored in the item
protected Dictionary m_creatorIdForAssetId
Результат UUID>.Dictionary

m_merge защищенное свойство

Do we want to merge this load with existing inventory?
protected bool m_merge
Результат bool

m_registry защищенное свойство

protected IRegistryCore m_registry
Результат IRegistryCore