Log I/O
Loading...
Searching...
No Matches
ILisDataListener Interface Reference

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.
 

Detailed Description

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;
      }
    }
  
Author
Petroware AS

Member Function Documentation

◆ DataRead()

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).

Parameters
lisFileLIS file that has been populated with new data. Never null.
Returns
True to continue reading, false to abort the process.

The documentation for this interface was generated from the following file: