Namespaces | |
qtgui | |
version | |
Classes | |
class | ConsoleStreambuf |
class | EchoInputStreambuf |
class | ForwardingStreambuf |
Functions | |
bool | exitEnabled() |
Returns true if the std::exit function is enabled. More... | |
void | initializeLibrary(int argc, char **argv) |
Initializes the SGL C++ library. More... | |
void | initializeStudentThread() |
This is for any initialization that needs to be done in the student's thread rather than on the Qt GUI main thread. More... | |
void | setExitEnabled(bool enabled) |
Sets whether the std::exit function will be enabled or not. More... | |
void | shutdownLibrary() |
Shuts down the SGL C++ library. More... | |
void | studentThreadHasExited(string reason) |
bool exitEnabled | ( | ) |
Returns true if the std::exit function is enabled.
This will be true unless disabled by, say, an autograder.
void initializeLibrary | ( | int | argc, |
char ** | argv | ||
) |
Initializes the SGL C++ library.
A call to this function is inserted before the student's main() runs. This should be run from the Qt GUI (main) thread.
void initializeStudentThread | ( | ) |
This is for any initialization that needs to be done in the student's thread rather than on the Qt GUI main thread.
Currently this is used primarily to set up exception handlers for the student's thread to catch and report errors.
void setExitEnabled | ( | bool | enabled | ) |
Sets whether the std::exit function will be enabled or not.
If disabled, an error() will be thrown if student tries to exit().
void shutdownLibrary | ( | ) |
Shuts down the SGL C++ library.
A call to this function is inserted after the student's main().
void studentThreadHasExited | ( | string | reason | ) |