C# Class kOS.Safe.Persistence.Volume

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

Méthodes publiques

Méthode Description
Clear ( ) : void
CreateDirectory ( VolumePath path ) : VolumeDirectory
CreateDirectory ( string pathString ) : VolumeDirectory
CreateFile ( VolumePath path ) : VolumeFile
CreateFile ( string pathString ) : VolumeFile
Delete ( VolumePath path, bool ksmDefault = false ) : bool
Delete ( string pathString, bool ksmDefault = false ) : bool
Exists ( VolumePath path, bool ksmDefault = false ) : bool
Exists ( string pathString, bool ksmDefault = false ) : bool
IsRoomFor ( VolumePath path, FileContent fileContent ) : bool
ListAsLexicon ( ) : Lexicon
Open ( VolumePath path, bool ksmDefault = false ) : VolumeItem

Get a file given its name

Open ( string pathString, bool ksmDefault = false ) : VolumeItem
OpenOrCreateDirectory ( VolumePath path ) : VolumeDirectory
OpenOrCreateFile ( VolumePath path, bool ksmDefault = false ) : VolumeFile
OpenSafe ( string pathString, bool ksmDefault = false ) : Structure
RequiredPower ( ) : float
SaveFile ( VolumeFile volumeFile ) : VolumeFile
SaveFile ( VolumePath path, FileContent content, bool verifyFreeSpace = true ) : VolumeFile
ToString ( ) : string

Méthodes protégées

Méthode Description
InitializeName ( string name ) : void
Volume ( ) : System.Collections.Generic

Private Methods

Méthode Description
InitializeVolumeSuffixes ( ) : void

Method Details

Clear() public abstract méthode

public abstract Clear ( ) : void
Résultat void

CreateDirectory() public abstract méthode

public abstract CreateDirectory ( VolumePath path ) : VolumeDirectory
path VolumePath
Résultat VolumeDirectory

CreateDirectory() public méthode

public CreateDirectory ( string pathString ) : VolumeDirectory
pathString string
Résultat VolumeDirectory

CreateFile() public abstract méthode

public abstract CreateFile ( VolumePath path ) : VolumeFile
path VolumePath
Résultat VolumeFile

CreateFile() public méthode

public CreateFile ( string pathString ) : VolumeFile
pathString string
Résultat VolumeFile

Delete() public abstract méthode

public abstract Delete ( VolumePath path, bool ksmDefault = false ) : bool
path VolumePath
ksmDefault bool
Résultat bool

Delete() public méthode

public Delete ( string pathString, bool ksmDefault = false ) : bool
pathString string
ksmDefault bool
Résultat bool

Exists() public abstract méthode

public abstract Exists ( VolumePath path, bool ksmDefault = false ) : bool
path VolumePath
ksmDefault bool
Résultat bool

Exists() public méthode

public Exists ( string pathString, bool ksmDefault = false ) : bool
pathString string
ksmDefault bool
Résultat bool

InitializeName() protected méthode

protected InitializeName ( string name ) : void
name string
Résultat void

IsRoomFor() public méthode

public IsRoomFor ( VolumePath path, FileContent fileContent ) : bool
path VolumePath
fileContent FileContent
Résultat bool

ListAsLexicon() public méthode

public ListAsLexicon ( ) : Lexicon
Résultat Lexicon

Open() public abstract méthode

Get a file given its name
public abstract Open ( VolumePath path, bool ksmDefault = false ) : VolumeItem
path VolumePath
ksmDefault bool in the scenario where there is no filename extension, do we prefer the .ksm over the .ks? The default is to prefer .ks
Résultat VolumeItem

Open() public méthode

public Open ( string pathString, bool ksmDefault = false ) : VolumeItem
pathString string
ksmDefault bool
Résultat VolumeItem

OpenOrCreateDirectory() public méthode

public OpenOrCreateDirectory ( VolumePath path ) : VolumeDirectory
path VolumePath
Résultat VolumeDirectory

OpenOrCreateFile() public méthode

public OpenOrCreateFile ( VolumePath path, bool ksmDefault = false ) : VolumeFile
path VolumePath
ksmDefault bool
Résultat VolumeFile

OpenSafe() public méthode

public OpenSafe ( string pathString, bool ksmDefault = false ) : Structure
pathString string
ksmDefault bool
Résultat Structure

RequiredPower() public méthode

public RequiredPower ( ) : float
Résultat float

SaveFile() public méthode

public SaveFile ( VolumeFile volumeFile ) : VolumeFile
volumeFile VolumeFile
Résultat VolumeFile

SaveFile() public abstract méthode

public abstract SaveFile ( VolumePath path, FileContent content, bool verifyFreeSpace = true ) : VolumeFile
path VolumePath
content FileContent
verifyFreeSpace bool
Résultat VolumeFile

ToString() public méthode

public ToString ( ) : string
Résultat string

Volume() protected méthode

protected Volume ( ) : System.Collections.Generic
Résultat System.Collections.Generic