C# Class AcManager.AppArguments

Exibir arquivo Open project: gro-ove/actools Class Usage Examples

Public Methods

Method Description
AddFromFile ( string filename ) : void
Get ( AppFlag flag ) : string
GetBool ( AppFlag flag, bool defaultValue = false ) : bool
GetDouble ( AppFlag flag, double defaultValue = 0d ) : double
Has ( AppFlag flag ) : bool
Initialize ( IEnumerable args ) : void
Set ( AppFlag flag, bool &option ) : void
Set ( AppFlag flag, double &option ) : void
Set ( AppFlag flag, int &option ) : void
Set ( AppFlag flag, string &option ) : void

Private Methods

Method Description
ArgStringToFlag ( string arg ) : AppFlag?
FlagToArgString ( AppFlag flag ) : string

Method Details

AddFromFile() public static method

public static AddFromFile ( string filename ) : void
filename string
return void

Get() public static method

public static Get ( AppFlag flag ) : string
flag AppFlag
return string

GetBool() public static method

public static GetBool ( AppFlag flag, bool defaultValue = false ) : bool
flag AppFlag
defaultValue bool
return bool

GetDouble() public static method

public static GetDouble ( AppFlag flag, double defaultValue = 0d ) : double
flag AppFlag
defaultValue double
return double

Has() public static method

public static Has ( AppFlag flag ) : bool
flag AppFlag
return bool

Initialize() public static method

public static Initialize ( IEnumerable args ) : void
args IEnumerable
return void

Set() public static method

public static Set ( AppFlag flag, bool &option ) : void
flag AppFlag
option bool
return void

Set() public static method

public static Set ( AppFlag flag, double &option ) : void
flag AppFlag
option double
return void

Set() public static method

public static Set ( AppFlag flag, int &option ) : void
flag AppFlag
option int
return void

Set() public static method

public static Set ( AppFlag flag, string &option ) : void
flag AppFlag
option string
return void