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
Показать файл Открыть проект Примеры использования класса

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

Метод Описание
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