C# Class kOS.Safe.Persistence.VolumeManager

Inheritance: IVolumeManager
Mostra file Open project: KSP-KOS/KOS Class Usage Examples

Public Methods

Method 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

Protected Methods

Method 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

Method Description
GetVolumeId ( string name ) : int
GlobalPathFromString ( string pathString ) : GlobalPath

Method Details

Add() public method

public Add ( Volume volume ) : void
volume Volume
return void

CheckCurrentVolumeRange() public method

public CheckCurrentVolumeRange ( ) : bool
return bool

CheckRange() public method

public CheckRange ( Volume volume ) : bool
volume Volume
return bool

Copy() public method

public Copy ( GlobalPath sourcePath, GlobalPath destinationPath, bool verifyFreeSpace = true ) : bool
sourcePath GlobalPath
destinationPath GlobalPath
verifyFreeSpace bool
return bool

CopyDirectory() protected method

protected CopyDirectory ( GlobalPath sourcePath, GlobalPath destinationPath, bool verifyFreeSpace ) : bool
sourcePath GlobalPath
destinationPath GlobalPath
verifyFreeSpace bool
return bool

CopyFile() protected method

protected CopyFile ( VolumeFile volumeFile, GlobalPath destinationPath, Volume targetVolume, bool verifyFreeSpace ) : bool
volumeFile VolumeFile
destinationPath GlobalPath
targetVolume Volume
verifyFreeSpace bool
return bool

CopyFileToDirectory() protected method

protected CopyFileToDirectory ( VolumeFile volumeFile, VolumeDirectory volumeDirectory, bool verifyFreeSpace ) : bool
volumeFile VolumeFile
volumeDirectory VolumeDirectory
verifyFreeSpace bool
return bool

GetVolume() public method

public GetVolume ( int id ) : Volume
id int
return Volume

GetVolume() public method

public GetVolume ( object volumeId ) : Volume
volumeId object
return Volume

GetVolume() public method

public GetVolume ( string name ) : Volume
name string
return Volume

GetVolumeBestIdentifier() public method

public GetVolumeBestIdentifier ( Volume volume ) : string
volume Volume
return string

GetVolumeFromPath() public method

public GetVolumeFromPath ( GlobalPath path ) : Volume
path GlobalPath
return Volume

GetVolumeId() public method

public GetVolumeId ( Volume volume ) : int
volume Volume
return int

GetVolumeRawIdentifier() public method

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

GlobalPathFromObject() public method

public GlobalPathFromObject ( object pathObject ) : GlobalPath
pathObject object
return GlobalPath

Move() public method

public Move ( GlobalPath sourcePath, GlobalPath destinationPath ) : bool
sourcePath GlobalPath
destinationPath GlobalPath
return bool

Remove() public method

public Remove ( int id ) : void
id int
return void

Remove() public method

public Remove ( string name ) : void
name string
return void

SwitchTo() public method

public SwitchTo ( Volume volume ) : void
volume Volume
return void

UpdateVolumes() public method

public UpdateVolumes ( List attachedVolumes ) : void
attachedVolumes List
return void

VolumeIsCurrent() public method

public VolumeIsCurrent ( Volume volume ) : bool
volume Volume
return bool

VolumeManager() public method

public VolumeManager ( ) : System
return System