C# Class PSint.Func

ファイルを表示 Open project: LuckyGeck/PSint Class Usage Examples

Public Properties

Property Type Description
globalVrb List
sInput string
sOutput string
sReturn string

Public Methods

Method Description
Func ( String sCode ) : System

Constructor for Func class. (Without init params)

Func ( String sCode, String sParam ) : System

Constructor for Func class.

Run ( frMain frmain1 ) : string

This method Runs the function.

getGlVar ( string sName ) : string

Gets the value of global var from the list with the name equal to sName

getVar ( string sName ) : string

Gets the value of var from the list with the name equal to sName

setGlVar ( Base param ) : void

Sets the value of param to global var from the list, which name is equal to param's name. If such var in list doesn't exists - it is added.

setVar ( Base param ) : void

Sets the value of param to var from the list, which name is equal to param's name. If such var in list doesn't exists - it is added.

Private Methods

Method Description
addConsts ( ) : void

This method inits Vars list and adds consts to it.

addGlVar ( Base param ) : void

Makes a copy of param global var and adds it to the List.

addVar ( Base param ) : void

Makes a copy of param var and adds it to the List.

varExists ( string sName ) : int

Checks if a var with sName already exists.

varGlExists ( string sName ) : int

Checks if a global var with sName already exists.

Method Details

Func() public method

Constructor for Func class. (Without init params)
public Func ( String sCode ) : System
sCode String Source of the function.
return System

Func() public method

Constructor for Func class.
public Func ( String sCode, String sParam ) : System
sCode String Source of the function.
sParam String Init params for this function.
return System

Run() public method

This method Runs the function.
public Run ( frMain frmain1 ) : string
frmain1 frMain Link to the main form.
return string

getGlVar() public method

Gets the value of global var from the list with the name equal to sName
public getGlVar ( string sName ) : string
sName string The name of the param to get.
return string

getVar() public method

Gets the value of var from the list with the name equal to sName
public getVar ( string sName ) : string
sName string The name of the param to get.
return string

setGlVar() public method

Sets the value of param to global var from the list, which name is equal to param's name. If such var in list doesn't exists - it is added.
public setGlVar ( Base param ) : void
param Base Base-type variable
return void

setVar() public method

Sets the value of param to var from the list, which name is equal to param's name. If such var in list doesn't exists - it is added.
public setVar ( Base param ) : void
param Base Base-type variable
return void

Property Details

globalVrb public_oe static_oe property

public static List globalVrb
return List

sInput public_oe property

public string sInput
return string

sOutput public_oe property

public string sOutput
return string

sReturn public_oe property

public string sReturn
return string