C# Class POLConfig.POLConfigFile

Show file Open project: polserver/poltools

Public Methods

Method Description
DumpConfigStream ( TextWriter stream ) : void
FindConfigElem ( string elem_name ) : void
GetConfigIntKeys ( ) : int[]
GetConfigMaxIntKey ( ) : int
GetConfigStringKeys ( ) : string[]
POLConfigFile ( string path ) : System
POLConfigFile ( string path, FlagOpts flags ) : System
ReadConfigFile ( ) : bool
SplitLine ( string line, string &propname, string &value, string &comment ) : bool

Private Methods

Method Description
IsComment ( string line ) : bool

Method Details

DumpConfigStream() public method

public DumpConfigStream ( TextWriter stream ) : void
stream System.IO.TextWriter
return void

FindConfigElem() public method

public FindConfigElem ( string elem_name ) : void
elem_name string
return void

GetConfigIntKeys() public method

public GetConfigIntKeys ( ) : int[]
return int[]

GetConfigMaxIntKey() public method

public GetConfigMaxIntKey ( ) : int
return int

GetConfigStringKeys() public method

public GetConfigStringKeys ( ) : string[]
return string[]

POLConfigFile() public method

public POLConfigFile ( string path ) : System
path string
return System

POLConfigFile() public method

public POLConfigFile ( string path, FlagOpts flags ) : System
path string
flags FlagOpts
return System

ReadConfigFile() public method

public ReadConfigFile ( ) : bool
return bool

SplitLine() static public method

static public SplitLine ( string line, string &propname, string &value, string &comment ) : bool
line string
propname string
value string
comment string
return bool