| Overview | Group | Tree | Graph | Deprecated | Index | Concepts |

This class represents a source from which an OPL model can read data. Refer also to the Interfaces User's Manual.
See Also:
IloOplModel, IloOplDataSourceBaseI, IloOplDataElements
| Method Summary | |
|---|---|
public void | end() |
public const char * | getDataSourceName() const |
public | IloOplDataSource(IloOplDataSourceBaseI * impl) |
public | IloOplDataSource(IloEnv env, const char * filename) |
public | IloOplDataSource(IloEnv env, std::istream & ins, const char * name) |
| Method Detail |
|---|
Constructor taking the implementation of a custom data source.
| impl |
A pointer to the implementation object.
|
Constructor for reading data from a data file. The file has to contain OPL data file syntax. Refer also to the Interfaces User's Manual.
| env |
The environment to allocate memory.
|
| filename |
The path to the data file.
|
Constructor for reading data from an input stream. The stream has to provide OPL data file syntax. Refer also to the Interfaces User's Manual.
| env |
The environment to allocate memory.
|
| ins |
The path to the data file.
|
| name |
The name for this data source.
|
Clears the memory used by this object
Returns the name of this data source.