next up previous contents
Next: State machine Up: How to write Previous: Testing

Database support

One of the requirements of the device servers is that they be database driven. No constants which could change during the lifetime of the device server should be hardwired into the program. All weak constants plus any parameters and variables should be configurable from a socalled resource file. The resource file is a standard feature of the DSM. It is an ascii file with a flat structure where resources (basic C types) can be stored according to class names or device names. A Database api exists for retrieving resources from the database, refer to DSN/046.

An example of using the resource database can be found above under the object initialise section.



Andy Goetz
Tue Jan 28 13:58:13 MET 1997