Developer

API Reference

IGetLine

Brew Release
Brew MP 1.0.2
See Also
AEECLSID_GETLINE ISOURCEUTIL_GetLineFromSource()
Description
The IGetLine Interface inherits from the IPeek interface, and provides functions for line parsing data. IGetLine uses a buffer (allocated at creation) to accumulate the data for the lines it returns.
Usage
ISourceUtil provides the ISOURCEUTIL_GetLineFromSource() function to create an IGetLine interface object from ISource object.
Example code:
      IGetLine * pIGetLine = NULL;
      int nErr;

      nErr = ISHELL_CreateInstance(piShell, AEECLSID_SOURCEUTIL,
                                   (void **)&piSourceUtil);
      if (SUCCESS != nErr) {
         // handle error
      }
      
      // pISource already allocated
      nErr = ISOURCEUTIL_GetLineFromSource(piSourceUtil, pMe->pISource, 
                                           pMe->nBufferLen, &pIGetLine);
      if (SUCCESS != nErr) { 
         // handle error
      }
        
      ISOURCEUTIL_Release(piSourceUtil);
  • Follow