C# Class OpenSim.Framework.Console.Commands

ファイルを表示 Open project: N3X15/VoxelSim Class Usage Examples

Public Methods

Method Description
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[]

Private Methods

Method Description
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

Method Details

AddCommand() public method

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
return void

AddCommand() public method

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
return void

FindNextOption() public method

public FindNextOption ( string cmd, bool term ) : string[]
cmd string
term bool
return string[]

FromXml() public method

public FromXml ( XmlElement root, CommandDelegate fn ) : void
root System.Xml.XmlElement
fn CommandDelegate
return void

GetHelp() public method

Get help for the given help string
public GetHelp ( string cmd ) : List
cmd string
return List

GetXml() public method

public GetXml ( XmlDocument doc ) : XmlElement
doc System.Xml.XmlDocument
return System.Xml.XmlElement

Resolve() public method

public Resolve ( string cmd ) : string[]
cmd string
return string[]