next up previous contents
Next: Writing to a file Up: Performing I/O in WARPED Previous: Performing I/O in WARPED

Allocating a file queue

If a PingObject wanted to access an output file, its constructor might contain the following code:

PingObject::PingObject() {
  :
  :
  numOutFiles = 1;
  outFileQ = new FileQueue[1]("ping_output.out");
  :
  :
};

The application programmer does not have to worry about deallocating the outFileQs. The kernel takes care of flushing and closing the physical file, and deallocating the FileQueues.



Philip A. Wilsey
1/26/1998