Skip to main content
FRAMES NO FRAMES

Class IloOplLocation

Definition file: ilopl/ilooplerrorhandler.h
Map of IloOplLocationIloOplLocationIloOplLocation
A location in an OPL source.

Instances of this class represent a location in an OPL source file. This class holds file name, line, and column information.

Locations are available for model (.mod) files and data (.dat) files.

See Also:

Method Summary
public voidend()
public intgetColumn() const
public intgetEndColumn() const
public intgetEndLine() const
public intgetLine() const
public const char *getSource() const
Method Detail

end

public void end()

Clears the memory used by this object


getColumn

public int getColumn() const

This member function retrieves the column number at which the code starts.

Returns:

An integer representing the number of the column.

getEndColumn

public int getEndColumn() const

This member function retrieves the column number at which the code ends.

Returns:

An integer representing the number of the column.

getEndLine

public int getEndLine() const

This member function retrieves the line number at which the code ends.

Returns:

An integer representing the number of the last line of code.

getLine

public int getLine() const

This member function retrieves the line number at which the code starts.

Returns:

An integer representing the number of the first line of code.

getSource

public const char * getSource() const

This member function retrieves the path to the OPL source file.

Returns:

A file path.