C# Class AcManager.AppArguments

Afficher le fichier Open project: gro-ove/actools Class Usage Examples

Méthodes publiques

Méthode 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

Méthode Description
ArgStringToFlag ( string arg ) : AppFlag?
FlagToArgString ( AppFlag flag ) : string

Method Details

AddFromFile() public static méthode

public static AddFromFile ( string filename ) : void
filename string
Résultat void

Get() public static méthode

public static Get ( AppFlag flag ) : string
flag AppFlag
Résultat string

GetBool() public static méthode

public static GetBool ( AppFlag flag, bool defaultValue = false ) : bool
flag AppFlag
defaultValue bool
Résultat bool

GetDouble() public static méthode

public static GetDouble ( AppFlag flag, double defaultValue = 0d ) : double
flag AppFlag
defaultValue double
Résultat double

Has() public static méthode

public static Has ( AppFlag flag ) : bool
flag AppFlag
Résultat bool

Initialize() public static méthode

public static Initialize ( IEnumerable args ) : void
args IEnumerable
Résultat void

Set() public static méthode

public static Set ( AppFlag flag, bool &option ) : void
flag AppFlag
option bool
Résultat void

Set() public static méthode

public static Set ( AppFlag flag, double &option ) : void
flag AppFlag
option double
Résultat void

Set() public static méthode

public static Set ( AppFlag flag, int &option ) : void
flag AppFlag
option int
Résultat void

Set() public static méthode

public static Set ( AppFlag flag, string &option ) : void
flag AppFlag
option string
Résultat void