C# Класс POLUtils.ECompile.EConfig

Provides an interface to manipulate the Ecompile.CFG file
Показать файл Открыть проект Примеры использования класса

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

Метод Описание
AddPackageRootItem ( string NewValue ) : bool

Adds a new Value to the Package Roots List

EConfig ( ) : System

Default Constructor

Flag ( string OptionName ) : string

Reads commandline flag for given Option

GetPackageRoots ( ) : List

List of Package Roots

LoadConfig ( string ConfigPath ) : bool

Opens the Ecompile.Cfg file for reading.

Option ( string OptionName ) : string

Reads value for given Option

Option ( string OptionName, bool NewValue ) : void

Changes the value for a given Option

Option ( string OptionName, string NewValue ) : void

Changes the value for a given Option

RemoveAllPackageRootItems ( ) : bool

Clears all Values from the List

RemovePackageRootItem ( string Value ) : bool

Remove a specific String Value from the List

SaveConfig ( ) : bool

Saves the Ecompile.Cfg back to file with any changes. File Output is tabbed so that settings are in a straight column and all original lines that were NOT settings are retained as original.

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

Метод Описание
BuildFlagList ( ) : void
FindPackageRoots ( String s ) : bool
ReadOptions ( ) : void

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

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

Adds a new Value to the Package Roots List
public AddPackageRootItem ( string NewValue ) : bool
NewValue string New Value to add
Результат bool

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

Default Constructor
public EConfig ( ) : System
Результат System

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

Reads commandline flag for given Option
public Flag ( string OptionName ) : string
OptionName string OptionName string
Результат string

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

List of Package Roots
public GetPackageRoots ( ) : List
Результат List

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

Opens the Ecompile.Cfg file for reading.
public LoadConfig ( string ConfigPath ) : bool
ConfigPath string Absolute path to Config File
Результат bool

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

Reads value for given Option
public Option ( string OptionName ) : string
OptionName string OptionName string
Результат string

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

Changes the value for a given Option
public Option ( string OptionName, bool NewValue ) : void
OptionName string OptionName string
NewValue bool Bool Value to be converted to 0/1 String
Результат void

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

Changes the value for a given Option
public Option ( string OptionName, string NewValue ) : void
OptionName string OptionName string
NewValue string New string value to place for option
Результат void

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

Clears all Values from the List
public RemoveAllPackageRootItems ( ) : bool
Результат bool

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

Remove a specific String Value from the List
public RemovePackageRootItem ( string Value ) : bool
Value string String Value to remove
Результат bool

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

Saves the Ecompile.Cfg back to file with any changes. File Output is tabbed so that settings are in a straight column and all original lines that were NOT settings are retained as original.
public SaveConfig ( ) : bool
Результат bool