C# Class HFMCmd.NullOutput

Implementation of IOutput that does not output - like a /dev/nul device, it ignores output sent to it. Use this when no output is desired, since a valid IOutput (non-null) IOutput instance must be supplied to many methods. Use of this class prevents methods that take an IOutput from having to check if it is non-null.
Inheritance: IOutput
ファイルを表示 Open project: agardiner/hfmcmd

Public Properties

Property Type Description
Instance NullOutput

Public Methods

Method Description
End ( bool suppress ) : void
EndProgress ( ) : void
InitProgress ( string operation, int iterations ) : void
InitProgress ( string operation, int iterations, int total ) : void
IterationComplete ( ) : bool
SetHeader ( ) : void
SetProgress ( int progress ) : bool
WriteLine ( string format ) : void
WriteRecord ( ) : void

Method Details

End() public method

public End ( bool suppress ) : void
suppress bool
return void

EndProgress() public method

public EndProgress ( ) : void
return void

InitProgress() public method

public InitProgress ( string operation, int iterations ) : void
operation string
iterations int
return void

InitProgress() public method

public InitProgress ( string operation, int iterations, int total ) : void
operation string
iterations int
total int
return void

IterationComplete() public method

public IterationComplete ( ) : bool
return bool

SetHeader() public method

public SetHeader ( ) : void
return void

SetProgress() public method

public SetProgress ( int progress ) : bool
progress int
return bool

WriteLine() public method

public WriteLine ( string format ) : void
format string
return void

WriteRecord() public method

public WriteRecord ( ) : void
return void

Property Details

Instance public_oe static_oe property

public static NullOutput,HFMCmd Instance
return NullOutput