pure-cpp 1.0.0
A C++ physics simulation benchmark comparing performance with Python implementations
AppUtils Namespace Reference

Namespace for application-wide utility functions, primarily for exception handling. More...

Classes

class  AppProfiler
 Global application profiler for measuring non-physics phases. More...
 
class  Logger
 Manages application logging based on command-line arguments. More...
 
class  TranslationLoader
 Provides a static method to load translation files for the application. More...
 

Functions

int handleException (const QString &message, CmdLine::ExitCode code)
 Handles logging an exception message and returning the appropriate exit code. More...
 
int handleException (const char *message, CmdLine::ExitCode code)
 Overload for handling exceptions with a simple C-string message. More...
 

Detailed Description

Namespace for application-wide utility functions, primarily for exception handling.

Namespace for application-wide utility functions.

Function Documentation

◆ handleException() [1/2]

int AppUtils::handleException ( const char *  message,
CmdLine::ExitCode  code 
)

Overload for handling exceptions with a simple C-string message.

Parameters
messageThe non-translated error message.
codeThe exit code to be returned.
Returns
The integer value of the exit code.

Definition at line 69 of file main.cpp.

Here is the call graph for this function:

◆ handleException() [2/2]

int AppUtils::handleException ( const QString &  message,
CmdLine::ExitCode  code 
)

Handles logging an exception message and returning the appropriate exit code.

Parameters
messageThe translated error message to be logged.
codeThe exit code to be returned.
Returns
The integer value of the exit code.

Definition at line 55 of file main.cpp.

Here is the caller graph for this function: