Log I/O
|
Provides a mechanism for the client to monitor and process data during the LIS read operation, and also to abort the process in case that is requested by the user or for other reasons. More...
Public Member Functions | |
bool | DataRead (LisFile lisFile) |
A notification from LisFileReader indicating that a new portion of data has been read into the specified LIS file. | |
Provides a mechanism for the client to monitor and process data during the LIS read operation, and also to abort the process in case that is requested by the user or for other reasons.
Convenient for handling LIS files that are larger than physical memory. In this case the client should clear the LIS file instance at each invocation:
Typical usage:
class DataListener : ILisDataListener { public bool DataRead(LisFile lisFile) { // Process curve data : // Clear curve data to save memory lisFile.ClearCurves(); // Continue the process return true; } }
bool DataRead | ( | LisFile | lisFile | ) |
A notification from LisFileReader indicating that a new portion of data has been read into the specified LIS file.
After the client has processed the data, it may clear the curve data in order to save memory storage. See LisFile.ClearCurves.
See also LisFileReader.Read(bool,bool,ILisDataListener).
lisFile | LIS file that has been populated with new data. Never null. |