C# Class POLUtils.PathStorage.PathStorage

Class to handle storage/retrieval of Path Settings.
Exibir arquivo Open project: polserver/poltools

Public Methods

Method Description
AddPath ( string PathName, string Value ) : bool

Adds a new PathName to the Path Settings.

GetPath ( string PathName ) : string

Get the Path stored for a specific PathName.

GetPathNames ( ) : string[]

Get all Path Social Names From The Path Storage.

IsSet ( string PathName ) : bool

Bool for if a PathName contains any data.

PathStorage ( ) : System

Default Constructor. Initializes the following Paths Storage Names: UOPath MULPath POLPath POLExePath UOConvertExePath ECompileExePath RunECLExePath POLConfigPath POLDataPath POLLogPath POLRealmPath

RemovePath ( string PathName ) : bool

Remove a PathName from the Path Settings.

SetPath ( string PathName, string NewValue ) : bool

Sets the Path stored for a specific PathName.

Private Methods

Method Description
InitPathSettings ( ) : void

Method Details

AddPath() public method

Adds a new PathName to the Path Settings.
public AddPath ( string PathName, string Value ) : bool
PathName string PathName to add.
Value string Value to add to the PathName.
return bool

GetPath() public method

Get the Path stored for a specific PathName.
public GetPath ( string PathName ) : string
PathName string PathName to look up the Path for.
return string

GetPathNames() public method

Get all Path Social Names From The Path Storage.
public GetPathNames ( ) : string[]
return string[]

IsSet() public method

Bool for if a PathName contains any data.
public IsSet ( string PathName ) : bool
PathName string PathName to check.
return bool

PathStorage() public method

Default Constructor. Initializes the following Paths Storage Names: UOPath MULPath POLPath POLExePath UOConvertExePath ECompileExePath RunECLExePath POLConfigPath POLDataPath POLLogPath POLRealmPath
public PathStorage ( ) : System
return System

RemovePath() public method

Remove a PathName from the Path Settings.
public RemovePath ( string PathName ) : bool
PathName string PathName to remove.
return bool

SetPath() public method

Sets the Path stored for a specific PathName.
public SetPath ( string PathName, string NewValue ) : bool
PathName string PathName to set the Path for.
NewValue string New string value to set the Path for.
return bool