Skip to main content
FRAMES NO FRAMES

Class IloOplDataSerializer

Definition file: ilopl/iloopldatasource.h
Map of IloOplDataSerializerIloOplDataSerializerIloOplDataSerializerIloOplDataHandler
Service class to serialize OPL data objects.

Use this class to print OPL data objects.

See Also:

Method Summary
public IloOplDataSerializer(IloEnv env, IloOplSettings settings, std::ostream & outs)
public IloOplDataSerializer(IloEnv env, IloOplSettings settings, std::ostream & outs, IloBool header)
public IloOplDataSerializer(IloEnv env, IloOplSettings settings, std::ostream & outs, const char * title)
public IloOplDataSerializer(IloEnv env, std::ostream & outs)
public voidprintElement(IloOplElement element)
Inherited Methods from IloOplDataHandler
addIntItem, addNumItem, addStringItem, end, endArray, endElement, endIndexedArray, endItemTupleIndex, endNamedTuple, endSet, endTuple, restartElement, setItemIntIndex, setItemName, setItemNumIndex, setItemStringIndex, startArray, startElement, startIndexedArray, startItemTupleIndex, startNamedTuple, startSet, startTuple
Method Detail

IloOplDataSerializer

public IloOplDataSerializer(IloEnv env, IloOplSettings settings, std::ostream & outs)

Constructor for a serializing data handler. The data will be written in OPL data file format, and can be used as a data source.

Parameters:

env
The environment to allocate memory.
settings
The settings to control display.
outs
The output stream to write data to.

IloOplDataSerializer

public IloOplDataSerializer(IloEnv env, IloOplSettings settings, std::ostream & outs, IloBool header)

Constructor for a serializing data handler. The data will be written in OPL data file format, and can be used as a data source.

Parameters:

env
The environment to allocate memory.
settings
The settings to control display.
outs
The output stream to write data to.
header
Print header, or not.

IloOplDataSerializer

public IloOplDataSerializer(IloEnv env, IloOplSettings settings, std::ostream & outs, const char * title)

Constructor for a serializing data handler. The data will be written in OPL data file format, and can be used as a data source.

Parameters:

env
The environment to allocate memory.
settings
The settings to control display.
outs
The output stream to write data to.
title
Print title header, or not, if 0.

IloOplDataSerializer

public IloOplDataSerializer(IloEnv env, std::ostream & outs)

Shortcut constructor for a serializing data handler. The data will be written in OPL data file format, and can be used as a data source.

Default settings will be used.

Parameters:

env
The environment to allocate memory.
outs
The output stream to write data to.

printElement

public void printElement(IloOplElement element)

Print an element.

Parameters:

element
The element to print.