C# Class Fusion.Build.BuildContext

Show file Open project: demiurghg/FusionEngine Class Usage Examples

Public Methods

Method Description
BuildContext ( BuildOptions options, IniData iniData ) : System

ContentFileExists ( string path ) : bool

Try to resolve source file path. If succeded returns true. False otherwice.

CopyFileTo ( string fullSourceFileName, BinaryWriter writer ) : void

Copies file file to stream.

CopyFileTo ( string fullSourceFileName, Stream targetStream ) : void

Copies file to stream.

GetTempFileName ( string key, string ext ) : string

Generates temporary file name for given key with given extension and return full path to this file.

ResolveContentPath ( string path ) : string

RunTool ( string exePath, string commandLine ) : void

Private Methods

Method Description
GetAllKeysFromSection ( IniData iniData, string sectionName ) : string[]

ResolveDirectory ( string dir ) : string

ResolvePath ( string path, IEnumerable dirs ) : string

Method Details

BuildContext() public method

public BuildContext ( BuildOptions options, IniData iniData ) : System
options BuildOptions
iniData Fusion.Core.IniParser.Model.IniData
return System

ContentFileExists() public method

Try to resolve source file path. If succeded returns true. False otherwice.
public ContentFileExists ( string path ) : bool
path string
return bool

CopyFileTo() public method

Copies file file to stream.
public CopyFileTo ( string fullSourceFileName, BinaryWriter writer ) : void
fullSourceFileName string Resolved source file name
writer System.IO.BinaryWriter
return void

CopyFileTo() public method

Copies file to stream.
public CopyFileTo ( string fullSourceFileName, Stream targetStream ) : void
fullSourceFileName string
targetStream Stream
return void

GetTempFileName() public method

Generates temporary file name for given key with given extension and return full path to this file.
public GetTempFileName ( string key, string ext ) : string
key string unique key string value
ext string Desired extension with leading dot
return string

ResolveContentPath() public method

public ResolveContentPath ( string path ) : string
path string
return string

RunTool() public method

public RunTool ( string exePath, string commandLine ) : void
exePath string
commandLine string
return void