Developer

API Reference

IDocModel_LoadSource()

Brew Release
Brew MP 1.0.2
See Also
Description
This function is used to pass an ISource interface to the IDocModel object to use as a data source. The IDocModel will use the Read() and Readable() methods on the ISource to load document data into the model. The ISource interface is released on error or end-of-stream.
Parameters
  • p
    []:
    [in] Pointer to the IDocModel interface object.
  • piSource
    []:
    [in] Pointer to an ISource interface to be used as a read source
Interface
Prototype
   int IDocModel_LoadSource(IDocModel *po, ISource *piSource);
Return
   AEE_SUCCESS:     The model accepted the ISource and initiated a read operation.
   ENOMEMORY:       Out of memory error occurred while trying to allocate a read buffer.
   AEE_EBADPARM:    Invalid parameter (piSource)
Side Effect
None
Comment
None
  • Follow