C# Класс OpenSim.Framework.Console.Commands

Показать файл Открыть проект Примеры использования класса

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

Метод Описание
AddCommand ( string module, bool shared, string command, string help, string longhelp, CommandDelegate fn ) : void

Add a command to those which can be invoked from the console.

AddCommand ( string module, bool shared, string command, string help, string longhelp, string descriptivehelp, CommandDelegate fn ) : void

Add a command to those which can be invoked from the console.

FindNextOption ( string cmd, bool term ) : string[]
FromXml ( XmlElement root, CommandDelegate fn ) : void
GetHelp ( string cmd ) : List

Get help for the given help string

GetXml ( XmlDocument doc ) : XmlElement
Resolve ( string cmd ) : string[]

Приватные методы

Метод Описание
CollectHelp ( object>.Dictionary dict ) : List
CollectHelp ( List helpParts ) : List

See if we can find the requested command in order to display longer help

ProcessTreeLevel ( object>.Dictionary level, XmlElement xml, XmlDocument doc ) : void
ReadTreeLevel ( object>.Dictionary level, XmlNode node, CommandDelegate fn ) : void

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

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

Add a command to those which can be invoked from the console.
public AddCommand ( string module, bool shared, string command, string help, string longhelp, CommandDelegate fn ) : void
module string
shared bool
command string
help string
longhelp string
fn CommandDelegate
Результат void

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

Add a command to those which can be invoked from the console.
public AddCommand ( string module, bool shared, string command, string help, string longhelp, string descriptivehelp, CommandDelegate fn ) : void
module string
shared bool
command string
help string
longhelp string
descriptivehelp string
fn CommandDelegate
Результат void

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

public FindNextOption ( string cmd, bool term ) : string[]
cmd string
term bool
Результат string[]

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

public FromXml ( XmlElement root, CommandDelegate fn ) : void
root System.Xml.XmlElement
fn CommandDelegate
Результат void

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

Get help for the given help string
public GetHelp ( string cmd ) : List
cmd string
Результат List

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

public GetXml ( XmlDocument doc ) : XmlElement
doc System.Xml.XmlDocument
Результат System.Xml.XmlElement

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

public Resolve ( string cmd ) : string[]
cmd string
Результат string[]