C# 클래스 OpenSim.Region.CoreModules.Avatar.Inventory.Archiver.InventoryArchiveReadRequest

파일 보기 프로젝트 열기: N3X15/VoxelSim 1 사용 예제들

공개 프로퍼티들

프로퍼티 타입 설명
MAX_MAJOR_VERSION int

보호된 프로퍼티들

프로퍼티 타입 설명
archive OpenSim.Framework.Serialization.TarArchiveReader
m_merge bool
m_scene OpenSim.Region.Framework.Scenes.Scene

공개 메소드들

메소드 설명
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.

보호된 메소드들

메소드 설명
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

비공개 메소드들

메소드 설명
LoadAsset ( string assetPath, byte data ) : bool

Load an asset

메소드 상세

Close() 공개 메소드

public Close ( ) : void
리턴 void

CreateFoldersForPath() 보호된 메소드

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. ///
리턴 void

Execute() 공개 메소드

Execute the request
public Execute ( ) : HashSet
리턴 HashSet

InventoryArchiveReadRequest() 공개 메소드

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
리턴 System

InventoryArchiveReadRequest() 공개 메소드

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
리턴 System

LoadControlFile() 보호된 메소드

Load control file
protected LoadControlFile ( string path, byte data ) : void
path string
data byte
리턴 void

LoadItem() 보호된 메소드

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
리턴 OpenSim.Framework.InventoryItemBase

ReplicateArchivePathToUserInventory() 공개 메소드

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. ///
리턴 OpenSim.Framework.InventoryFolderBase

ResolveDestinationFolder() 보호된 메소드

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. ///
리턴 OpenSim.Framework.InventoryFolderBase

프로퍼티 상세

MAX_MAJOR_VERSION 공개적으로 정적으로 프로퍼티

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
리턴 int

archive 보호되어 있는 프로퍼티

protected TarArchiveReader,OpenSim.Framework.Serialization archive
리턴 OpenSim.Framework.Serialization.TarArchiveReader

m_merge 보호되어 있는 프로퍼티

Do we want to merge this load with existing inventory?
protected bool m_merge
리턴 bool

m_scene 보호되어 있는 프로퍼티

protected Scene,OpenSim.Region.Framework.Scenes m_scene
리턴 OpenSim.Region.Framework.Scenes.Scene