next up previous contents
Next: standInterface.c Up: Files Previous: server.c
Go to: SmartForest Home Printer-friendly: sf-impl.pdf

slfReader.c

The routines here are responsible for reading the .slf file and storing the data in the standInfoArray variable. Effectively standInfoArray acts solely as the data structure containing the raw data read from the file. The application later builds other data structures from standInfoArray that are actually used as the application's data abstractions. One might consider standInfoArray as a file interface and nothing more.

The data read from the .slf file is stored in standInfoArray and then sorted based on the stand identifier. The access routine findStandInfo then uses binary search to find the record corresponding to the stand identifier passed as a parameter -- hence the sorting.



Matthew S. Davis
2002-08-07