C# 클래스 kOS.Safe.Persistence.Volume

상속: Structure
파일 보기 프로젝트 열기: KSP-KOS/KOS 1 사용 예제들

공개 메소드들

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

보호된 메소드들

메소드 설명
InitializeName ( string name ) : void
Volume ( ) : System.Collections.Generic

비공개 메소드들

메소드 설명
InitializeVolumeSuffixes ( ) : void

메소드 상세

Clear() 공개 추상적인 메소드

public abstract Clear ( ) : void
리턴 void

CreateDirectory() 공개 추상적인 메소드

public abstract CreateDirectory ( VolumePath path ) : VolumeDirectory
path VolumePath
리턴 VolumeDirectory

CreateDirectory() 공개 메소드

public CreateDirectory ( string pathString ) : VolumeDirectory
pathString string
리턴 VolumeDirectory

CreateFile() 공개 추상적인 메소드

public abstract CreateFile ( VolumePath path ) : VolumeFile
path VolumePath
리턴 VolumeFile

CreateFile() 공개 메소드

public CreateFile ( string pathString ) : VolumeFile
pathString string
리턴 VolumeFile

Delete() 공개 추상적인 메소드

public abstract Delete ( VolumePath path, bool ksmDefault = false ) : bool
path VolumePath
ksmDefault bool
리턴 bool

Delete() 공개 메소드

public Delete ( string pathString, bool ksmDefault = false ) : bool
pathString string
ksmDefault bool
리턴 bool

Exists() 공개 추상적인 메소드

public abstract Exists ( VolumePath path, bool ksmDefault = false ) : bool
path VolumePath
ksmDefault bool
리턴 bool

Exists() 공개 메소드

public Exists ( string pathString, bool ksmDefault = false ) : bool
pathString string
ksmDefault bool
리턴 bool

InitializeName() 보호된 메소드

protected InitializeName ( string name ) : void
name string
리턴 void

IsRoomFor() 공개 메소드

public IsRoomFor ( VolumePath path, FileContent fileContent ) : bool
path VolumePath
fileContent FileContent
리턴 bool

ListAsLexicon() 공개 메소드

public ListAsLexicon ( ) : Lexicon
리턴 Lexicon

Open() 공개 추상적인 메소드

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

Open() 공개 메소드

public Open ( string pathString, bool ksmDefault = false ) : VolumeItem
pathString string
ksmDefault bool
리턴 VolumeItem

OpenOrCreateDirectory() 공개 메소드

public OpenOrCreateDirectory ( VolumePath path ) : VolumeDirectory
path VolumePath
리턴 VolumeDirectory

OpenOrCreateFile() 공개 메소드

public OpenOrCreateFile ( VolumePath path, bool ksmDefault = false ) : VolumeFile
path VolumePath
ksmDefault bool
리턴 VolumeFile

OpenSafe() 공개 메소드

public OpenSafe ( string pathString, bool ksmDefault = false ) : Structure
pathString string
ksmDefault bool
리턴 Structure

RequiredPower() 공개 메소드

public RequiredPower ( ) : float
리턴 float

SaveFile() 공개 메소드

public SaveFile ( VolumeFile volumeFile ) : VolumeFile
volumeFile VolumeFile
리턴 VolumeFile

SaveFile() 공개 추상적인 메소드

public abstract SaveFile ( VolumePath path, FileContent content, bool verifyFreeSpace = true ) : VolumeFile
path VolumePath
content FileContent
verifyFreeSpace bool
리턴 VolumeFile

ToString() 공개 메소드

public ToString ( ) : string
리턴 string

Volume() 보호된 메소드

protected Volume ( ) : System.Collections.Generic
리턴 System.Collections.Generic