OpenSim
|
Static Public Member Functions | |
static bool | CheckFileDoesNotExist (ICommandConsole console, string path) |
Check if the given file path exists. More... | |
static bool | TryParseConsoleUuid (ICommandConsole console, string rawUuid, out UUID uuid) |
Try to parse a console UUID from the console. More... | |
static bool | TryParseConsoleLocalId (ICommandConsole console, string rawLocalId, out uint localId) |
static bool | TryParseConsoleId (ICommandConsole console, string rawId, out UUID uuid, out uint localId) |
Tries to parse the input as either a UUID or a local ID. More... | |
static bool | TryParseConsoleBool (ICommandConsole console, string rawConsoleString, out bool b) |
Convert a console input to a bool, automatically complaining if a console is given. More... | |
static bool | TryParseConsoleInt (ICommandConsole console, string rawConsoleInt, out int i) |
Convert a console input to an int, automatically complaining if a console is given. More... | |
static bool | TryParseConsoleFloat (ICommandConsole console, string rawConsoleInput, out float i) |
Convert a console input to a float, automatically complaining if a console is given. More... | |
static bool | TryParseConsoleDouble (ICommandConsole console, string rawConsoleInput, out double i) |
Convert a console input to a double, automatically complaining if a console is given. More... | |
static bool | TryParseConsoleNaturalInt (ICommandConsole console, string rawConsoleInt, out int i) |
Convert a console integer to a natural int, automatically complaining if a console is given. More... | |
static bool | TryParseConsoleMinVector (string rawConsoleVector, out Vector3 vector) |
Convert a minimum vector input from the console to an OpenMetaverse.Vector3 More... | |
static bool | TryParseConsoleMaxVector (string rawConsoleVector, out Vector3 vector) |
Convert a maximum vector input from the console to an OpenMetaverse.Vector3 More... | |
static bool | TryParseConsoleVector (string rawConsoleVector, Func< string, string > blankComponentFunc, out Vector3 vector) |
Convert a vector input from the console to an OpenMetaverse.Vector3 More... | |
static bool | TryParseConsole2DVector (string rawConsoleVector, Func< string, string > blankComponentFunc, out Vector2 vector) |
Convert a vector input from the console to an OpenMetaverse.Vector2 More... | |
Public Attributes | |
const int | LocalIdNotFound = 0 |
const string | CoordHelp |
Used by modules to display stock co-ordinate help, though possibly this should be under some general section rather than in each help summary. More... | |
const string | MinRawConsoleVectorValue = "-~" |
const string | MaxRawConsoleVectorValue = "~" |
const string | VectorSeparator = "," |
Static Public Attributes | |
static char[] | VectorSeparatorChars = VectorSeparator.ToCharArray() |
Definition at line 38 of file ConsoleUtil.cs.
|
inlinestatic |
Check if the given file path exists.
If not, warning is printed to the given console.
console | |
path |
Definition at line 74 of file ConsoleUtil.cs.
|
inlinestatic |
Convert a vector input from the console to an OpenMetaverse.Vector2
rawConsoleVector | A string in the form <x>,<y> where there is no space between values. Any component can be missing (e.g. ,40). blankComponentFunc is invoked to replace the blank with a suitable value Also, if the blank component is at the end, then the comma can be missed off entirely (e.g. 40) The strings "~" and "-~" are valid in components. The first substitutes float.MaxValue whilst the second is float.MinValue Other than that, component values must be numeric. |
blankComponentFunc | Behaviour if component is blank. If null then conversion fails on a blank component. |
vector |
Definition at line 321 of file ConsoleUtil.cs.
|
inlinestatic |
Convert a console input to a bool, automatically complaining if a console is given.
console | Can be null if no console is available. | ||
rawConsoleVector | /param>
|
Definition at line 165 of file ConsoleUtil.cs.
|
inlinestatic |
Convert a console input to a double, automatically complaining if a console is given.
console | Can be null if no console is available. | ||
rawConsoleInput | /param>
|
Definition at line 225 of file ConsoleUtil.cs.
|
inlinestatic |
Convert a console input to a float, automatically complaining if a console is given.
console | Can be null if no console is available. | ||
rawConsoleInput | /param>
|
Definition at line 205 of file ConsoleUtil.cs.
|
inlinestatic |
Tries to parse the input as either a UUID or a local ID.
console | |
rawId | |
uuid | |
localId | Will be set to ConsoleUtil.LocalIdNotFound if parsing result was a UUID or no parse succeeded. |
Definition at line 139 of file ConsoleUtil.cs.
|
inlinestatic |
Convert a console input to an int, automatically complaining if a console is given.
console | Can be null if no console is available. | ||
rawConsoleInt | /param>
|
Definition at line 185 of file ConsoleUtil.cs.
|
inlinestatic |
Definition at line 108 of file ConsoleUtil.cs.
|
inlinestatic |
Convert a maximum vector input from the console to an OpenMetaverse.Vector3
rawConsoleVector | /param>
|
Definition at line 280 of file ConsoleUtil.cs.
|
inlinestatic |
Convert a minimum vector input from the console to an OpenMetaverse.Vector3
rawConsoleVector | /param>
|
Definition at line 269 of file ConsoleUtil.cs.
|
inlinestatic |
Convert a console integer to a natural int, automatically complaining if a console is given.
console | Can be null if no console is available. | ||
rawConsoleInt | /param>
|
Definition at line 245 of file ConsoleUtil.cs.
|
inlinestatic |
Try to parse a console UUID from the console.
Will complain to the console if parsing fails.
console | If null then no complaint is printed. |
rawUuid | |
uuid |
Definition at line 95 of file ConsoleUtil.cs.
|
inlinestatic |
Convert a vector input from the console to an OpenMetaverse.Vector3
rawConsoleVector | A string in the form <x>,<y>,<z> where there is no space between values. Any component can be missing (e.g. ,,40). blankComponentFunc is invoked to replace the blank with a suitable value Also, if the blank component is at the end, then the comma can be missed off entirely (e.g. 40,30 or 40) The strings "~" and "-~" are valid in components. The first substitutes float.MaxValue whilst the second is float.MinValue Other than that, component values must be numeric. |
blankComponentFunc | Behaviour if component is blank. If null then conversion fails on a blank component. |
vector |
Definition at line 300 of file ConsoleUtil.cs.
const string OpenSim.Framework.Console.ConsoleUtil.CoordHelp |
Used by modules to display stock co-ordinate help, though possibly this should be under some general section rather than in each help summary.
Definition at line 49 of file ConsoleUtil.cs.
const int OpenSim.Framework.Console.ConsoleUtil.LocalIdNotFound = 0 |
Definition at line 42 of file ConsoleUtil.cs.
const string OpenSim.Framework.Console.ConsoleUtil.MaxRawConsoleVectorValue = "~" |
Definition at line 62 of file ConsoleUtil.cs.
const string OpenSim.Framework.Console.ConsoleUtil.MinRawConsoleVectorValue = "-~" |
Definition at line 61 of file ConsoleUtil.cs.
const string OpenSim.Framework.Console.ConsoleUtil.VectorSeparator = "," |
Definition at line 64 of file ConsoleUtil.cs.
|
static |
Definition at line 65 of file ConsoleUtil.cs.