OutputHandler¶
-
class ampl::OutputHandler¶
Implement this interface to handle the outputs from the calls to any function that causes the underlying AMPL interpreter to display a message.
Note that errors and warnings are not passed through this interface, see ampl::ErrorHandler for more information.
-
enum ampl::output::Kind¶
Represents the type of the output coming from the interpreter
Values:
-
enumerator WAITING¶
Output
prompt2, returned when incomplete statements are interpreted.
-
enumerator BREAK¶
Output
break, displayed when an operation is interrupted with SIGINT.
-
enumerator CD¶
Output
cd, returned by thecdfunction.
-
enumerator DISPLAY¶
Output
display, returned by thedisplayfunction.
-
enumerator EXIT¶
Output
exit, returned as last message from AMPL before exiting the interpreter.
-
enumerator EXPAND¶
Output
expand, returned by theexpandfunction.
-
enumerator LOAD¶
Output
load, returned by theloadfunction when loading a library.
-
enumerator OPTION¶
Output
option, returned by theoptionfunction when getting the value of an option.
-
enumerator PRINT¶
Output
print, returned by theprintfunction when printing values from AMPL command line.
-
enumerator PROMPT¶
Output
prompt1, normal AMPL prompt.
-
enumerator SOLUTION¶
Output
solution, returned when loading a solution with the commandsolution, contains the solver message.
-
enumerator SOLVE¶
Output
solve, returned by thesolvefunction, contains the solver message.
-
enumerator SHOW¶
Output
show, returned by theshowfunction.
-
enumerator XREF¶
Output
xref, returned by thexreffunction.
-
enumerator SHELL_OUTPUT¶
Output of the AMPL command
shell
-
enumerator SHELL_MESSAGE¶
Messages from the command
shell
-
enumerator MISC¶
Output
misc
-
enumerator WRITE_TABLE¶
Messages from the command
write table
-
enumerator READ_TABLE¶
Messages from the command
read table
-
enumerator _READTABLE¶
Internal messages from the command
read table
-
enumerator _WRITETABLE¶
Internal messages from the command
write table
-
enumerator BREAKPOINT¶
Breakpoint hit.
-
enumerator CALL¶
Output of a script
call
-
enumerator CHECK¶
Output of a
checkoperation.
-
enumerator CLOSE¶
Output of a
closecommand for output redirection.
-
enumerator COMMANDS¶
Output of a
commandscall into another file.
-
enumerator CONTINUE¶
Issued when
continueis encountered.
-
enumerator DATA¶
Output of a
datacommand.
-
enumerator DELETECMD¶
Output of a
deletecommand.
-
enumerator DROP¶
Output of a
dropcommand.
-
enumerator DROP_OR_RESTORE_ALL¶
Internal.
-
enumerator ELSE¶
Else block.
-
enumerator ELSE_CHECK¶
Internal.
-
enumerator ENDIF¶
End of if block.
-
enumerator ENVIRON¶
Output of a
environcommand.
-
enumerator FIX¶
Output of a
fixcommand.
-
enumerator FOR¶
Output of a
forcommand.
-
enumerator IF¶
Output of an
ifcommand.
-
enumerator LET¶
Output of a
letcommand.
-
enumerator LOOPEND¶
End of loop.
-
enumerator OBJECTIVE¶
Output of an
objectivecommand.
-
enumerator OPTION_RESET¶
Occurs when resetting option values.
-
enumerator PRINTF¶
Output of a
printfcommand.
-
enumerator PROBLEM¶
Output of a
problemcommand.
-
enumerator PURGE¶
Output of a
purgecommand.
-
enumerator RBRACE¶
Occurs when a right brace is encountered.
-
enumerator READ¶
Output of a
readcommand.
-
enumerator RELOAD¶
Output of a
reloadcommand.
-
enumerator REMOVE¶
Output of a
removecommand.
-
enumerator REPEAT¶
Beginning of a repeat loop.
-
enumerator REPEAT_END¶
End of a repeat loop.
-
enumerator RESET¶
Output of a
resetcommand.
-
enumerator RESTORE¶
Output of a
restorecommand.
-
enumerator RUN_ARGS¶
Internal.
-
enumerator SEMICOLON¶
Internal.
-
enumerator SSTEP¶
Internal.
-
enumerator THEN¶
Beginning of the
thenpart of an if statement.
-
enumerator UNFIX¶
Output of an
unfixcommand.
-
enumerator UNLOAD¶
Output of an
unloadcommand.
-
enumerator UPDATE¶
Output of an
updatecommand.
-
enumerator WRITE¶
Output of a
writecommand.
-
enumerator WAITING¶