C# 클래스 CClash.CompilerCacheBase

상속: IDisposable
파일 보기 프로젝트 열기: artillery/cclash

보호된 프로퍼티들

프로퍼티 타입 설명
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