|
Health-GPS 3.0.0.0
Global Health Policy Simulation model (Health-GPS)
|
#include <exception>#include <string>#include <string_view>Go to the source code of this file.
Classes | |
| class | hgps::SimulationPhase |
| RAII label for the simulation step currently running on this thread. More... | |
Namespaces | |
| namespace | hgps |
| Top-level namespace for Health-GPS Console host application. | |
Functions | |
| std::string | hgps::current_simulation_phase () |
| Phase path for this thread, or empty when no SimulationPhase is active. | |
| void | hgps::clear_simulation_phase () |
| Drop the phase path. Used after a worker thread has stored the failure. | |
| void | hgps::validate_requested_thread_count (std::size_t requested) |
| Reject -T values that are set and below minimum_explicit_thread_count. | |
| std::string | hgps::format_failure (std::string_view phase, const std::exception &ex) |
| One paragraph naming the phase, the exception type, and ex.what(). | |
| std::string | hgps::format_unknown_failure (std::string_view phase) |
| Same banner for an exception that is not a std::exception. | |
| void | hgps::report_failure (std::string_view message) |
| Write a failure banner and flush, so a crash cannot discard it. | |
| void | hgps::install_failure_terminate_handler () |
| Last-resort printer for std::terminate (noexcept violations and escaped thread exceptions). | |
Variables | |
| constexpr std::size_t | hgps::minimum_explicit_thread_count = 2 |
| Smallest -T value Health-GPS accepts when a cap is requested. | |