C# Класс FastFind.FastFindArgumentParser

Implements the command line parsing for the Fast Find program.
Наследование: ArgParser
Показать файл Открыть проект

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

Метод Описание
FastFindArgumentParser ( ) : System

Initializes a new instance of the FastFindArgumentParser class.

OnUsage ( String errorInfo ) : void

Reports correct command line usage.

Защищенные методы

Метод Описание
OnDoneParse ( ) : SwitchStatus

Called when parsing is finished so final sanity checking can be performed.

OnNonSwitch ( String value ) : SwitchStatus

Called when a non-switch value is parsed out.

OnSwitch ( String switchSymbol, String switchValue ) : SwitchStatus

Called when a switch is parsed out.

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

Метод Описание
TestPath ( String pathToTest ) : SwitchStatus

Isolates the checking for the path parameter.

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

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

Initializes a new instance of the FastFindArgumentParser class.
public FastFindArgumentParser ( ) : System
Результат System

OnDoneParse() защищенный Метод

Called when parsing is finished so final sanity checking can be performed.
protected OnDoneParse ( ) : SwitchStatus
Результат SwitchStatus

OnNonSwitch() защищенный Метод

Called when a non-switch value is parsed out.
protected OnNonSwitch ( String value ) : SwitchStatus
value String /// The value parsed out. ///
Результат SwitchStatus

OnSwitch() защищенный Метод

Called when a switch is parsed out.
protected OnSwitch ( String switchSymbol, String switchValue ) : SwitchStatus
switchSymbol String /// The switch value parsed out. ///
switchValue String /// The value of the switch. For flag switches this is null/Nothing. ///
Результат SwitchStatus

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

Reports correct command line usage.
public OnUsage ( String errorInfo ) : void
errorInfo String /// The string with the invalid command line option. ///
Результат void