C# Class AcTools.DataFile.AbstractDataFile

显示文件 Open project: gro-ove/actools Class Usage Examples

Public Properties

Property Type Description
Mode StorageMode
SourceFilename string
UnpackedFilename string

Public Methods

Method Description
Clear ( ) : void
Load ( Acd acd = null ) : void
Save ( bool backup = false ) : void
Save ( string filename, bool backup = false ) : void
SaveAsync ( string filename = null, bool backup = false ) : System.Threading.Tasks.Task
Stringify ( ) : string

Protected Methods

Method Description
AbstractDataFile ( ) : System
AbstractDataFile ( string filename ) : System
AbstractDataFile ( string carDir, string filename ) : System
AbstractDataFile ( string carDir, string filename, Acd loadedAcd ) : System
ParseString ( string file ) : void
SaveTo ( string filename, bool backup ) : void
SaveToAsync ( string filename, bool backup ) : System.Threading.Tasks.Task
UpdateAcd ( bool backup ) : void

Private Methods

Method Description
Exists ( ) : bool

Method Details

AbstractDataFile() protected method

protected AbstractDataFile ( ) : System
return System

AbstractDataFile() protected method

protected AbstractDataFile ( string filename ) : System
filename string
return System

AbstractDataFile() protected method

protected AbstractDataFile ( string carDir, string filename ) : System
carDir string
filename string
return System

AbstractDataFile() protected method

protected AbstractDataFile ( string carDir, string filename, Acd loadedAcd ) : System
carDir string
filename string
loadedAcd AcTools.AcdFile.Acd
return System

Clear() public abstract method

public abstract Clear ( ) : void
return void

Load() public method

public Load ( Acd acd = null ) : void
acd AcTools.AcdFile.Acd
return void

ParseString() protected abstract method

protected abstract ParseString ( string file ) : void
file string
return void

Save() public method

public Save ( bool backup = false ) : void
backup bool
return void

Save() public method

public Save ( string filename, bool backup = false ) : void
filename string
backup bool
return void

SaveAsync() public method

public SaveAsync ( string filename = null, bool backup = false ) : System.Threading.Tasks.Task
filename string
backup bool
return System.Threading.Tasks.Task

SaveTo() protected method

protected SaveTo ( string filename, bool backup ) : void
filename string
backup bool
return void

SaveToAsync() protected method

protected SaveToAsync ( string filename, bool backup ) : System.Threading.Tasks.Task
filename string
backup bool
return System.Threading.Tasks.Task

Stringify() public abstract method

public abstract Stringify ( ) : string
return string

UpdateAcd() protected method

protected UpdateAcd ( bool backup ) : void
backup bool
return void

Property Details

Mode public_oe property

public StorageMode Mode
return StorageMode

SourceFilename public_oe property

public string SourceFilename
return string

UnpackedFilename public_oe property

public string UnpackedFilename
return string