Classes of GRP Parser defined in pconnscl.h

Class index

TprsConn

TprsConn

TObject
   |
   +------TprsConn

Field index of TprsConn

Type
Num
iID
Source

Method index of TprsConn

TprsConn
~TprsConn
IsInput
IsOutput
Match
ShowData
WriteGRP

Fields

prsTConnType Type

Type of the connection.

int Num

Number of the connection within program item.

int iID

Identification number of the connection. It must be unique in the process.

PprsSourceSource

C-source associated with this connection.

Methods

TprsConn(prsTConnType AType, int ANum, int AiID, PprsSource ASrc)

Constructor of the connection object. Parameters are initial values for data fields of the object. ASrc is the source object where source is stored.

virtual ~TprsConn(void)

Destructor of the object.

virtual bool IsInput(void)

This function returns TRUE if connection is input of the program item. This is an abstract method!

virtual bool IsOutput(void)

This function returns TRUE if type of the connection type is output. This is an abstract method!

virtual bool Match(PprsConn Conn)

This function returns TRUE if this connetction and Conn are connected.

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

This method prints out values of data fields of the object to the file To. It prints Pre string at beginning of produced lines.

virtual void WriteGRP(FILE *To, int Ind)

This function can be used to print out the connection into a GRP file because it produces output in GRP syntax.

Back to Grapnel Compiler.