Skip to main content
FRAMES NO FRAMES

Class IloOplDataHandler

Definition file: ilopl/iloopldatasource.h
Map of IloOplDataHandlerIloOplDataHandlerIloOplDataSerializerIloOplDataHandler
Interface to provide OPL with data.

This is the interface used by custom data source implementations. Refer also to the Interfaces User's Manual.

See Also:

Method Summary
public voidaddIntItem(IloInt value)
public voidaddNumItem(IloNum value)
public voidaddStringItem(const char * value)
public voidend()
public voidendArray()
public voidendElement()
public voidendIndexedArray()
public voidendItemTupleIndex()
public voidendNamedTuple()
public voidendSet()
public voidendTuple()
public voidrestartElement(const char * name)
public voidsetItemIntIndex(IloInt value)
public voidsetItemName(const char * name)
public voidsetItemNumIndex(IloNum value)
public voidsetItemStringIndex(const char * value)
public voidstartArray()
public voidstartElement(const char * name)
public voidstartIndexedArray()
public voidstartItemTupleIndex()
public voidstartNamedTuple()
public voidstartSet()
public voidstartTuple()
Method Detail

addIntItem

public void addIntItem(IloInt value)

Adds the item value.

Parameters:

value
The value you want to assign to the item.

addNumItem

public void addNumItem(IloNum value)

Adds the item value.

Parameters:

value
The value you want to assign to the item.

addStringItem

public void addStringItem(const char * value)

Adds the item value.

Parameters:

value
The value you want to assign to the item.

end

public void end()

Clears the memory used by this object


endArray

public void endArray()

End an array.


endElement

public void endElement()

End an element.


endIndexedArray

public void endIndexedArray()

End an indexed array.


endItemTupleIndex

public void endItemTupleIndex()

End the next item's index.


endNamedTuple

public void endNamedTuple()

End a named tuple.


endSet

public void endSet()

End a set.


endTuple

public void endTuple()

End a tuple.


restartElement

public void restartElement(const char * name)

Continue defining a named data element.

Parameters:

name
The name of the element.

setItemIntIndex

public void setItemIntIndex(IloInt value)

Sets the next item's index.

Parameters:

value
The value you want to assign to the next item's index.

setItemName

public void setItemName(const char * name)

Sets the next item's component name.

Parameters:

name
The name of the next component you want to assign to.

setItemNumIndex

public void setItemNumIndex(IloNum value)

Sets the next item's index.

Parameters:

value
The value you want to assign to the next item's index.

setItemStringIndex

public void setItemStringIndex(const char * value)

Sets the next item's index.

Parameters:

value
The value you want to assign to the next item's index.

startArray

public void startArray()

Start defining an array.


startElement

public void startElement(const char * name)

Start defining a named data element.

Parameters:

name
The name of the element.

startIndexedArray

public void startIndexedArray()

Starts defining an indexed array, providing item indices and values.


startItemTupleIndex

public void startItemTupleIndex()

Starts the next item's index.


startNamedTuple

public void startNamedTuple()

Starts defining a named tuple, providing component names and values.


startSet

public void startSet()

Starts defining a set.


startTuple

public void startTuple()

Starts defining a tuple.