next up previous contents
Next: String manipulation Up: The Hoc Language Previous: Two-dimensional Cuts

Communication between Hard and Soft Callbacks

To access or change variables which are defined in hard callbacks (cf. chapter 7) a so-called Broker is used. These variables may be double values, arrays of double values or strings and the corresponding functions are listed in table 5.7. These ``Broker-variables'' are accessed through their names. The name of variable anExample in the hard callback named veryHardCallback would be: "veryHardCallback:anExample".

Furthermore, hard callbacks may be enabled or disabled by soft callbacks.


 
Table 5.12: List of Functions for Communcation between Hard and Soft Callbacks
Function Purpose
x = broker(double_name) assign to x the value of the broker variable named double_name
x = broker(array_name) assign to x the dimension of the broker variable named array_name
broker(double_name,value) assign value to the broker variable named double_name.
broker(array_name,array,dim) copy array of dimension dim to the broker variable named array_name.
broker(string_name,string) assign the string to the broker variable named string_name.
enable(HardCallbackName) enable hard callback
disable(HardCallbackName) disable hard callback
 


next up previous contents
Next: String manipulation Up: The Hoc Language Previous: Two-dimensional Cuts
Heiko Rohdjess
2001-07-19