SGL
Namespaces | Classes | Functions
sgl Namespace Reference

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)
 

Function Documentation

◆ exitEnabled()

bool exitEnabled ( )

Returns true if the std::exit function is enabled.

This will be true unless disabled by, say, an autograder.

◆ initializeLibrary()

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.

◆ initializeStudentThread()

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.

◆ setExitEnabled()

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().

◆ shutdownLibrary()

void shutdownLibrary ( )

Shuts down the SGL C++ library.

A call to this function is inserted after the student's main().

◆ studentThreadHasExited()

void studentThreadHasExited ( string   reason)