Classes of GRP Parser defined in pparamcl.h

Class index

TprsParam
TprsIntParam
TprsFloatParam
TprsStringParam
TprsValueColl

TprsParam

TObject
   |
   +------TprsParam

Method index of TprsParam

TprsParam
~TprsParam
PrintValue
ShowData
GetValue
GetValue
GetValue

Methods

TprsParam(void)

TprsParam is an abstract class. This method is the contructor of the class.

virtual ~TprsParam(void)

Destructor of the class.

virtual void PrintValue(FILE *To)

This abstract method prints value of the parameter to To file.

virtual void ShowData(FILE *To, char *Pre)

This function prints out values of data fileds of the object to To file and it prints Pre string at the beginning of every lines.

virtual bool GetValue(long *val)

This function returns the value of the parameter in the *val argument. Return value is TRUE if type of parameter is long otherwise the function returns FALSE and *val remains unchanged. This is an abstract method which should be overwritten in descendant classes.

virtual bool GetValue(double *val)

This function returns the value of the parameter in the *val argument. Return value is TRUE if type of parameter is double otherwise the function returns FALSE and *val remains unchanged. This is an abstract method which should be overwritten in descendant classes.

virtual bool GetValue(char **val)

This function returns the value of the parameter in the *val argument. Return value is TRUE if type of parameter is char * otherwise the function returns FALSE and *val remains unchanged. This is an abstract method which should be overwritten in descendant classes.

TprsIntParam

TObject
   |
   +------TprsParam
             |
             +------TprsIntParam

Field index of TprsIntParam

Value

Method index of TprsIntParam

TprsIntParam
~TprsIntParam
PrintValue
ShowData
GetValue

Fields

long Value

Value of the parameter.

Methods

TprsIntParam(long AValue)

Constructor of the parameter object, it initializes Value data field to AValue.

virtual ~TprsIntParam(void)

Destructor of the class.

virtual void PrintValue(FILE *To)

This method prints out value of the parameter to To file.

virtual void ShowData(FILE *To, char *Pre)

This method prints out values of data fields of the object to To file and it prints Pre string at the beginning of every lines.

virtual bool GetValue(long *val)

This function returns the Value of the parameter object in the *val argument. Return value of the function is TRUE.

TprsFloatParam

TObject
   |
   +------TprsParam
             |
             +------TprsFloatParam

Field index of TprsFloatParam

Value

Method index of TprsFloatParam

TprsFloatParam
~TprsFloatParam
PrintValue
ShowData
GetValue

Fields

double Value

Value of the parameter.

Methods

TprsFloatParam(double AValue)

Constructor of the parameter object, it initializes Value data field to AValue.

virtual ~TprsFloatParam(void)

Destructor of the class.

virtual void PrintValue(FILE *To)

This method prints out value of the parameter to To file.

virtual void ShowData(FILE *To, char *Pre)

This method prints out values of data fields of the object to To file and it prints Pre string at the beginning of every lines.

virtual bool GetValue(float *val)

This function returns the Value of the parameter object in the *val argument. Return value is TRUE.

TprsStringParam

TObject
   |
   +------TprsParam
             |
             +------TprsStringParam

Field index of TprsStringParam

Value

Method index of TprsStringParam

TprsStringParam
~TprsStringParam
PrintValue
ShowData
GetValue

Fields

char *Value

Value of the parameter.

Methods

TprsStringParam(char *AValue)

Constructor of the parameter object, it makes a copy of AValue and stores it in tha Value data field.

virtual ~TprsStringParam(void)

Destructor of the class.

virtual void PrintValue(FILE *To)

This method prints out value of the parameter to To file.

virtual void ShowData(FILE *To, char *Pre)

This method prints out values of data fields of the object to To file and it prints Pre string at the beginning of every lines.

virtual bool GetValue(char **val)

This function returns the Value of the parameter object in the *val argument. This is the address of the original character string. If you are going to modify the string you must be make a copy of it before the modification. Return value is TRUE.

TprsValueColl

TObject
   |
   +------TCollection
             |
             +------TprsValueColl

Field index of TprsValueColl

Name

Method index of TprsValueColl

TprsValueColl
~TprsValueColl
ShowData
WriteGRP

Fields

char *Name

Name of the parameter.

Methods

TprsValueColl(char *AName)

Constructor of the parameter value list object class. AName is the name of the parameter.

virtual ~TprsValueColl(void)

Destructor of the class.

virtual void ShowData(FILE *To, char *Pre)

This mathos prints out value of data fields to To file and it prints Pre string at the beginning of every lines.

virtual void WriteGRP(FILE *To, int Ind)

This function generates GRP code of the parameter in To file and indents line by Ind characters.

Back to Grapnel Compiler.