C# Class kOS.Safe.Persistence.VolumeManager

Inheritance: IVolumeManager
Afficher le fichier Open project: KSP-KOS/KOS Class Usage Examples

Méthodes publiques

Méthode Description
Add ( Volume volume ) : void
CheckCurrentVolumeRange ( ) : bool
CheckRange ( Volume volume ) : bool
Copy ( GlobalPath sourcePath, GlobalPath destinationPath, bool verifyFreeSpace = true ) : bool
GetVolume ( int id ) : Volume
GetVolume ( object volumeId ) : Volume
GetVolume ( string name ) : Volume
GetVolumeBestIdentifier ( Volume volume ) : string
GetVolumeFromPath ( GlobalPath path ) : Volume
GetVolumeId ( Volume volume ) : int
GetVolumeRawIdentifier ( Volume volume ) : string

Like GetVolumeBestIdentifier, but without the extra string formatting.

GlobalPathFromObject ( object pathObject ) : GlobalPath
Move ( GlobalPath sourcePath, GlobalPath destinationPath ) : bool
Remove ( int id ) : void
Remove ( string name ) : void
SwitchTo ( Volume volume ) : void
UpdateVolumes ( List attachedVolumes ) : void
VolumeIsCurrent ( Volume volume ) : bool
VolumeManager ( ) : System

Méthodes protégées

Méthode Description
CopyDirectory ( GlobalPath sourcePath, GlobalPath destinationPath, bool verifyFreeSpace ) : bool
CopyFile ( VolumeFile volumeFile, GlobalPath destinationPath, Volume targetVolume, bool verifyFreeSpace ) : bool
CopyFileToDirectory ( VolumeFile volumeFile, VolumeDirectory volumeDirectory, bool verifyFreeSpace ) : bool

Private Methods

Méthode Description
GetVolumeId ( string name ) : int
GlobalPathFromString ( string pathString ) : GlobalPath

Method Details

Add() public méthode

public Add ( Volume volume ) : void
volume Volume
Résultat void

CheckCurrentVolumeRange() public méthode

public CheckCurrentVolumeRange ( ) : bool
Résultat bool

CheckRange() public méthode

public CheckRange ( Volume volume ) : bool
volume Volume
Résultat bool

Copy() public méthode

public Copy ( GlobalPath sourcePath, GlobalPath destinationPath, bool verifyFreeSpace = true ) : bool
sourcePath GlobalPath
destinationPath GlobalPath
verifyFreeSpace bool
Résultat bool

CopyDirectory() protected méthode

protected CopyDirectory ( GlobalPath sourcePath, GlobalPath destinationPath, bool verifyFreeSpace ) : bool
sourcePath GlobalPath
destinationPath GlobalPath
verifyFreeSpace bool
Résultat bool

CopyFile() protected méthode

protected CopyFile ( VolumeFile volumeFile, GlobalPath destinationPath, Volume targetVolume, bool verifyFreeSpace ) : bool
volumeFile VolumeFile
destinationPath GlobalPath
targetVolume Volume
verifyFreeSpace bool
Résultat bool

CopyFileToDirectory() protected méthode

protected CopyFileToDirectory ( VolumeFile volumeFile, VolumeDirectory volumeDirectory, bool verifyFreeSpace ) : bool
volumeFile VolumeFile
volumeDirectory VolumeDirectory
verifyFreeSpace bool
Résultat bool

GetVolume() public méthode

public GetVolume ( int id ) : Volume
id int
Résultat Volume

GetVolume() public méthode

public GetVolume ( object volumeId ) : Volume
volumeId object
Résultat Volume

GetVolume() public méthode

public GetVolume ( string name ) : Volume
name string
Résultat Volume

GetVolumeBestIdentifier() public méthode

public GetVolumeBestIdentifier ( Volume volume ) : string
volume Volume
Résultat string

GetVolumeFromPath() public méthode

public GetVolumeFromPath ( GlobalPath path ) : Volume
path GlobalPath
Résultat Volume

GetVolumeId() public méthode

public GetVolumeId ( Volume volume ) : int
volume Volume
Résultat int

GetVolumeRawIdentifier() public méthode

Like GetVolumeBestIdentifier, but without the extra string formatting.
public GetVolumeRawIdentifier ( Volume volume ) : string
volume Volume
Résultat string

GlobalPathFromObject() public méthode

public GlobalPathFromObject ( object pathObject ) : GlobalPath
pathObject object
Résultat GlobalPath

Move() public méthode

public Move ( GlobalPath sourcePath, GlobalPath destinationPath ) : bool
sourcePath GlobalPath
destinationPath GlobalPath
Résultat bool

Remove() public méthode

public Remove ( int id ) : void
id int
Résultat void

Remove() public méthode

public Remove ( string name ) : void
name string
Résultat void

SwitchTo() public méthode

public SwitchTo ( Volume volume ) : void
volume Volume
Résultat void

UpdateVolumes() public méthode

public UpdateVolumes ( List attachedVolumes ) : void
attachedVolumes List
Résultat void

VolumeIsCurrent() public méthode

public VolumeIsCurrent ( Volume volume ) : bool
volume Volume
Résultat bool

VolumeManager() public méthode

public VolumeManager ( ) : System
Résultat System