C# 클래스 POLUtils.ECompile.EConfig

Provides an interface to manipulate the Ecompile.CFG file
파일 보기 프로젝트 열기: polserver/poltools 1 사용 예제들

공개 메소드들

메소드 설명
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