C# 클래스 RevitPythonShell.ScriptOutputStream

A stream to write output to... This can be passed into the python interpreter to render all output to. Only a minimal subset is actually implemented - this is all we really expect to use.
상속: Stream
파일 보기 프로젝트 열기: pterelaos/revitpythonshell 1 사용 예제들

공개 메소드들

메소드 설명
Flush ( ) : void
Read ( byte buffer, int offset, int count ) : int

Read from the _inputBuffer, block until a new line has been entered...

ScriptOutputStream ( ScriptOutput gui, ScriptEngine engine ) : System
Seek ( long offset, SeekOrigin origin ) : long
SetLength ( long value ) : void
Write ( byte buffer, int offset, int count ) : void

Append the text in the buffer to gui.txtStdOut

비공개 메소드들

메소드 설명
ClosedEventHandler ( object sender, EventArgs e ) : void
ClosingEventHandler ( object sender, System e ) : void

Terminate reading from STDIN. FIXME: this doesn't work!

KeyDownEventHandler ( object sender, KeyEventArgs e ) : void

Complete a line when the enter key is pressed. Also try to emulate a nice control window. This is going to be a big gigantic pile of ifs, sigh.

KeyPressEventHandler ( object sender, KeyPressEventArgs e ) : void

Stash away any printable characters for later...

메소드 상세

Flush() 공개 메소드

public Flush ( ) : void
리턴 void

Read() 공개 메소드

Read from the _inputBuffer, block until a new line has been entered...
public Read ( byte buffer, int offset, int count ) : int
buffer byte
offset int
count int
리턴 int

ScriptOutputStream() 공개 메소드

public ScriptOutputStream ( ScriptOutput gui, ScriptEngine engine ) : System
gui ScriptOutput
engine ScriptEngine
리턴 System

Seek() 공개 메소드

public Seek ( long offset, SeekOrigin origin ) : long
offset long
origin SeekOrigin
리턴 long

SetLength() 공개 메소드

public SetLength ( long value ) : void
value long
리턴 void

Write() 공개 메소드

Append the text in the buffer to gui.txtStdOut
public Write ( byte buffer, int offset, int count ) : void
buffer byte
offset int
count int
리턴 void