Skip to main content
FRAMES NO FRAMES

Class IloOplDataSourceBaseI

Definition file: ilopl/iloopldatasource.h
Map of IloOplDataSourceBaseIIloOplDataSourceBaseIIloOplDataSourceBaseI
Superclass for custom data source implementations.

Extend this class to connect an OPL model to custom data. Refer also to the Interfaces User's Manual.

See Also:

Method Summary
public IloOplDataHandlergetDataHandler() const
public virtual const char *getDataSourceName() const
public IloOplErrorHandlergetErrorHandler() const
protected IloOplDataSourceBaseI(IloEnv env)
public virtual voidread() const
public ~IloOplDataSourceBaseI()
Method Detail

IloOplDataSourceBaseI

protected IloOplDataSourceBaseI(IloEnv env)

Constructor for extending classes.


~IloOplDataSourceBaseI

public ~IloOplDataSourceBaseI()

 


getDataHandler

public IloOplDataHandler getDataHandler() const

Returns the data handler OPL uses to process this data. Use this instance to send creation events from the read() method.

Returns:

The IloOplDataHandler used.

getDataSourceName

public virtual const char * getDataSourceName() const

Implement this abstract method to name your data source.


getErrorHandler

public IloOplErrorHandler getErrorHandler() const

Returns the error handler OPL uses to process this data. Use this instance to report errors and warnings.

Returns:

The IloOplErrorHandler used.

read

public virtual void read() const

Implement this abstract method to send your data to a data handler. OPL will call this method when it processes external model data.