TObject | +------TprsItem
Name
Type
iID
Pair
Sources
Connections
Ports
NestedItems
Options
TprsItem
~TprsItem
Init
SetOption
ShowData
WriteGRP
char *Name
Name of the program item. It can contain spaces.
prsTProgType Type
Type of the program item.
int iID
Identification number of the program item. It must be unique within process.
prsTProgType Pair
Type of pair of this program item. This information is used by code generator.
PprsSource Sources
Source codes (one or two) of the program item, or NULL if there is no C-source code attached into this program item.
PCollection Connections
List of connections to other items.
PCollection Ports
List of references to port objects if this item is a communacator.
PprsItemColl NestedItems
List of nested program items if this is a graphical item.
struct
{
iopValue
Blocking;
} Options
This structure holds options associated with the program item. Options are:
- iopValue Blocking
- This options specifies, if the sending operation is blocked or not. It is used in CAO item only.
TprsItem(prsTProgType
AType, int AID)
Constructor of the program item class.
virtual ~TprsItem(void)
Destructor of the program item class.
virtual int Init(void)
Initialization of the object. This method must be called after constructor immediately when a new program item object is instantiated.
virtual void SetOption(iopType
what, iopValue val, void
*inf)
This function is used to set up a field in the Options structure.
virtual void ShowData(FILE *To,
char *Pre)
Printing out values of data of the object in file To. It writes out Pre string at beginning of every generated lines.
virtual void WriteGRP(FILE *To,
int Ind)
This object generates GRP code of the program item in file To. It indents lines by Ind characters.
TObject | +-----TCollection | +-------TSortedCollection | +----------TprsItemColl
TprsItemColl
~TprsItemColl
Compare
InsertItem
*KeyOf
ShowData
WriteGRP
TprsItemColl(TIndex
ALimit, TIndex ADelta)
Constructor of program item collection class.
virtual ~TprsItemColl(void)
Destructor of the program item collection class.
virtual int Compare(void *Key1,
void *Key2)
This function overrides inherited Compare method and implements special comparition to order program items by their identification number.
void InsertItem(PprsItem
Item)
This method checks if Item program item is on the collection and if it is not then inserts it to the collection.
virtual void *KeyOf(void
*Item)
This method is used for get address of key field of the items of the collection. It returns address of iID field if Item (it assumes that Item is a program item object.
virtual void ShowData(FILE *To,
char *Pre)
This method prints out values of data fileds of the object to To file and prints Pre string at beginning of every produced lines.
virtual void WriteGRP(FILE *To, int Ind)
This method generates GRP code of the object in To file and indents lines by Ind characters.