C# Класс Universe.Framework.ConsoleFramework.GUIConsole

This is a special class designed to take over control of the command console prompt of the server instance to allow for the input and output to the server to be redirected by an external application, in this case a GUI based application on Windows.
Наследование: ICommandConsole
Показать файл Открыть проект

Открытые свойства

Свойство Тип Описание
m_Commands Commands
m_ConsoleScene IScene
m_ConsoleScenes List
m_isPrompting bool
m_lastSetPromptOption int
m_promptOptions List

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

Свойство Тип Описание
m_defaultPrompt string

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

Метод Описание
CleanInfo ( object message ) : void
CleanInfoFormat ( string format ) : void
CompareLogLevels ( string a, string b ) : bool
Debug ( object message ) : void
DebugFormat ( string format ) : void
Dispose ( ) : void
Error ( object message ) : void
ErrorFormat ( string format ) : void
Fatal ( object message ) : void
FatalFormat ( string format ) : void
Format ( Level level, string format ) : void
FormatNoTime ( Level level, string format ) : void
Help ( IScene scene, string cmd ) : void
Info ( object message ) : void
InfoFormat ( string format ) : void
Initialize ( IConfigSource source, ISimulationBase simBase ) : void
LockOutput ( ) : void
Log ( Level level, object message ) : void
Output ( string text, Level level ) : void
OutputNoTime ( string text, Level level ) : void
PasswordPrompt ( string p ) : string
Prompt ( string p ) : string
Prompt ( string p, string def ) : string
Prompt ( string p, string def, List excludedCharacters ) : string
Prompt ( string prompt, string defaultresponse, List options ) : string
Prompt ( ) : void

Display a command prompt on the console and wait for user input

ReadConsole ( ) : void

Starts the prompt for the console. This will never stop until the region is closed.

ReadLine ( string p, bool isCommand, bool e ) : string

Method that reads a line of text from the user.

RunCommand ( string cmd ) : void
Ticker ( ) : void
Ticker ( string message, bool newline ) : void
Trace ( object message ) : void
TraceFormat ( string format ) : void
UnlockOutput ( ) : void
Warn ( object message ) : void
WarnFormat ( string format ) : void
t_Elapsed ( object sender, System.Timers.ElapsedEventArgs e ) : void

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

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

public CleanInfo ( object message ) : void
message object
Результат void

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

public CleanInfoFormat ( string format ) : void
format string
Результат void

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

public CompareLogLevels ( string a, string b ) : bool
a string
b string
Результат bool

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

public Debug ( object message ) : void
message object
Результат void

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

public DebugFormat ( string format ) : void
format string
Результат void

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

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

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

public Error ( object message ) : void
message object
Результат void

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

public ErrorFormat ( string format ) : void
format string
Результат void

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

public Fatal ( object message ) : void
message object
Результат void

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

public FatalFormat ( string format ) : void
format string
Результат void

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

public Format ( Level level, string format ) : void
level Level
format string
Результат void

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

public FormatNoTime ( Level level, string format ) : void
level Level
format string
Результат void

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

public Help ( IScene scene, string cmd ) : void
scene IScene
cmd string
Результат void

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

public Info ( object message ) : void
message object
Результат void

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

public InfoFormat ( string format ) : void
format string
Результат void

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

public Initialize ( IConfigSource source, ISimulationBase simBase ) : void
source IConfigSource
simBase ISimulationBase
Результат void

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

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

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

public Log ( Level level, object message ) : void
level Level
message object
Результат void

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

public Output ( string text, Level level ) : void
text string
level Level
Результат void

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

public OutputNoTime ( string text, Level level ) : void
text string
level Level
Результат void

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

public PasswordPrompt ( string p ) : string
p string
Результат string

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

public Prompt ( string p ) : string
p string
Результат string

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

public Prompt ( string p, string def ) : string
p string
def string
Результат string

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

public Prompt ( string p, string def, List excludedCharacters ) : string
p string
def string
excludedCharacters List
Результат string

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

public Prompt ( string prompt, string defaultresponse, List options ) : string
prompt string
defaultresponse string
options List
Результат string

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

Display a command prompt on the console and wait for user input
public Prompt ( ) : void
Результат void

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

Starts the prompt for the console. This will never stop until the region is closed.
public ReadConsole ( ) : void
Результат void

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

Method that reads a line of text from the user.
public ReadLine ( string p, bool isCommand, bool e ) : string
p string
isCommand bool
e bool
Результат string

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

public RunCommand ( string cmd ) : void
cmd string
Результат void

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

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

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

public Ticker ( string message, bool newline ) : void
message string
newline bool
Результат void

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

public Trace ( object message ) : void
message object
Результат void

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

public TraceFormat ( string format ) : void
format string
Результат void

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

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

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

public Warn ( object message ) : void
message object
Результат void

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

public WarnFormat ( string format ) : void
format string
Результат void

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

public t_Elapsed ( object sender, System.Timers.ElapsedEventArgs e ) : void
sender object
e System.Timers.ElapsedEventArgs
Результат void

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

m_Commands публичное свойство

public Commands,Universe.Framework.ConsoleFramework m_Commands
Результат Commands

m_ConsoleScene публичное свойство

public IScene m_ConsoleScene
Результат IScene

m_ConsoleScenes публичное свойство

public List m_ConsoleScenes
Результат List

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

protected string m_defaultPrompt
Результат string

m_isPrompting публичное свойство

public bool m_isPrompting
Результат bool

m_lastSetPromptOption публичное свойство

public int m_lastSetPromptOption
Результат int

m_promptOptions публичное свойство

public List m_promptOptions
Результат List