tcRegPreDumpTrigger
tcRegPreDumpTrigger(s_function[x_priority] ) => t / nil
Description
Registers a trigger function the system calls before dumping a technology database. The s_function argument is a SKILL procedure with three arguments: the database identifier of the technology database, the port (or print destination) for the dump file, and the name of the dump file. Trigger functions are called in order of priority, with 0 having the highest priority. If you do not specify a priority argument, the default is the lowest priority (that is, it executes after any other trigger function that specifies a priority).
You can use this function to add header information to the dumped technology file. You can also use this function to dump the technology data into your preferred format and prevent the system-provided dumping.
Arguments
|
Symbol indicating the name of the trigger function. The format of the function is as follows: |
|
Value Returned
|
The SKILL procedure does not exist or is incomplete; the trigger function did not register. |
Example
procedure(MYPreDumpTrigger(techID techport techfile) if(techID~>owner == "sysAdmin" && techID~>MYTechName && techID~>MYversion then ; write header info at top of dumped file. fprintf(techport "Tech Name = %s.\nVer. %f\n" techID~>MYTechName techID~>MYversion)
)
t
)
tcRegPreDumpTrigger(’MYPreDumpTrigger)
Registers a predump trigger that writes the header information at the top of the dumped technology file.
Return to top