C# Класс CClash.CompilerCacheBase

Наследование: IDisposable
Показать файл Открыть проект

Защищенные свойства (Protected)

Свойство Тип Описание
compilerPath String
hasher HashUtil
includeCache FileCacheStore
outputCache FileCacheStore

Открытые методы

Метод Описание
CheckCache ( ICompiler comp, IEnumerable args, DataHash commonkey, CacheManifest &manifest ) : bool
CompileOnly ( ICompiler comp, IEnumerable args ) : int
CompileOrCache ( ICompiler comp, IEnumerable args ) : int
CompilerCacheBase ( string cacheFolder ) : System
CopyFile ( string from, string to ) : void
CopyOutputFiles ( ICompiler comp, DataHash hc ) : void
CopyStdio ( ICompiler comp, DataHash hc ) : void
DeriveHashKey ( ICompiler comp, IEnumerable args ) : DataHash
DigestBinaryFile ( string path ) : DataHash
DigestCompiler ( string compilerPath ) : DataHash
Dispose ( ) : void
FileExists ( string path ) : bool
FileMissing ( string path ) : bool
Finished ( ) : void
GetHashes ( IEnumerable fnames ) : DataHash>.Dictionary
IsSupported ( ICompiler comp, IEnumerable args ) : bool
Lock ( CacheLockType mode ) : void
SetCaptureCallback ( ICompiler comp, Action onOutput, Action onError ) : void
SetCompiler ( string compiler, string workdir, string>.Dictionary envs ) : ICompiler
SetCompilerEx ( int parentpid, string compiler, string workdir, string>.Dictionary envs ) : ICompiler
Setup ( ) : void
Unlock ( CacheLockType mode ) : void

Защищенные методы

Метод Описание
CompileWithStreams ( ICompiler comp, IEnumerable args, StreamWriter stderr, StreamWriter stdout, List includes ) : int
CompilerCacheBase ( ) : System
Dispose ( bool disposing ) : void
GetCachedManifestLocked ( DataHash commonkey ) : CacheManifest
OnCacheHitLocked ( ICompiler comp, DataHash hc, CacheManifest hm ) : int
OnCacheMissLocked ( ICompiler comp, DataHash hc, IEnumerable args, CacheManifest m ) : int

Описание методов

CheckCache() публичный абстрактный Метод

public abstract CheckCache ( ICompiler comp, IEnumerable args, DataHash commonkey, CacheManifest &manifest ) : bool
comp ICompiler
args IEnumerable
commonkey DataHash
manifest CacheManifest
Результат bool

CompileOnly() публичный Метод

public CompileOnly ( ICompiler comp, IEnumerable args ) : int
comp ICompiler
args IEnumerable
Результат int

CompileOrCache() публичный Метод

public CompileOrCache ( ICompiler comp, IEnumerable args ) : int
comp ICompiler
args IEnumerable
Результат int

CompileWithStreams() защищенный Метод

protected CompileWithStreams ( ICompiler comp, IEnumerable args, StreamWriter stderr, StreamWriter stdout, List includes ) : int
comp ICompiler
args IEnumerable
stderr System.IO.StreamWriter
stdout System.IO.StreamWriter
includes List
Результат int

CompilerCacheBase() защищенный Метод

protected CompilerCacheBase ( ) : System
Результат System

CompilerCacheBase() публичный Метод

public CompilerCacheBase ( string cacheFolder ) : System
cacheFolder string
Результат System

CopyFile() публичный Метод

public CopyFile ( string from, string to ) : void
from string
to string
Результат void

CopyOutputFiles() публичный Метод

public CopyOutputFiles ( ICompiler comp, DataHash hc ) : void
comp ICompiler
hc DataHash
Результат void

CopyStdio() публичный Метод

public CopyStdio ( ICompiler comp, DataHash hc ) : void
comp ICompiler
hc DataHash
Результат void

DeriveHashKey() публичный Метод

public DeriveHashKey ( ICompiler comp, IEnumerable args ) : DataHash
comp ICompiler
args IEnumerable
Результат DataHash

DigestBinaryFile() публичный Метод

public DigestBinaryFile ( string path ) : DataHash
path string
Результат DataHash

DigestCompiler() публичный Метод

public DigestCompiler ( string compilerPath ) : DataHash
compilerPath string
Результат DataHash

Dispose() публичный Метод

public Dispose ( ) : void
Результат void

Dispose() защищенный Метод

protected Dispose ( bool disposing ) : void
disposing bool
Результат void

FileExists() публичный Метод

public FileExists ( string path ) : bool
path string
Результат bool

FileMissing() публичный Метод

public FileMissing ( string path ) : bool
path string
Результат bool

Finished() публичный абстрактный Метод

public abstract Finished ( ) : void
Результат void

GetCachedManifestLocked() защищенный Метод

protected GetCachedManifestLocked ( DataHash commonkey ) : CacheManifest
commonkey DataHash
Результат CacheManifest

GetHashes() публичный Метод

public GetHashes ( IEnumerable fnames ) : DataHash>.Dictionary
fnames IEnumerable
Результат DataHash>.Dictionary

IsSupported() публичный Метод

public IsSupported ( ICompiler comp, IEnumerable args ) : bool
comp ICompiler
args IEnumerable
Результат bool

Lock() публичный Метод

public Lock ( CacheLockType mode ) : void
mode CacheLockType
Результат void

OnCacheHitLocked() защищенный Метод

protected OnCacheHitLocked ( ICompiler comp, DataHash hc, CacheManifest hm ) : int
comp ICompiler
hc DataHash
hm CacheManifest
Результат int

OnCacheMissLocked() защищенный абстрактный Метод

protected abstract OnCacheMissLocked ( ICompiler comp, DataHash hc, IEnumerable args, CacheManifest m ) : int
comp ICompiler
hc DataHash
args IEnumerable
m CacheManifest
Результат int

SetCaptureCallback() публичный Метод

public SetCaptureCallback ( ICompiler comp, Action onOutput, Action onError ) : void
comp ICompiler
onOutput Action
onError Action
Результат void

SetCompiler() публичный Метод

public SetCompiler ( string compiler, string workdir, string>.Dictionary envs ) : ICompiler
compiler string
workdir string
envs string>.Dictionary
Результат ICompiler

SetCompilerEx() публичный Метод

public SetCompilerEx ( int parentpid, string compiler, string workdir, string>.Dictionary envs ) : ICompiler
parentpid int
compiler string
workdir string
envs string>.Dictionary
Результат ICompiler

Setup() публичный абстрактный Метод

public abstract Setup ( ) : void
Результат void

Unlock() публичный Метод

public Unlock ( CacheLockType mode ) : void
mode CacheLockType
Результат void

Описание свойств

compilerPath защищенное свойство

protected String compilerPath
Результат String

hasher защищенное свойство

protected HashUtil,CClash hasher
Результат HashUtil

includeCache защищенное свойство

protected FileCacheStore,CClash includeCache
Результат FileCacheStore

outputCache защищенное свойство

protected FileCacheStore,CClash outputCache
Результат FileCacheStore