|
ADS-IDAC Engine 5.0.0
|
Lightweight HTTP server serving a D3.js DET visualization page. Runs in a background thread alongside the MPI server loop. More...
#include <VisualizationServer.h>
Classes | |
| struct | Impl |
Public Member Functions | |
| VisualizationServer (std::shared_ptr< TreeState > state, int port) | |
| ~VisualizationServer () | |
| void | start () |
| Launch the HTTP listener in a background thread. More... | |
| void | stop () |
| Stop the HTTP server and join the thread. More... | |
Private Attributes | |
| std::unique_ptr< Impl > | impl_ |
Lightweight HTTP server serving a D3.js DET visualization page. Runs in a background thread alongside the MPI server loop.
Definition at line 15 of file VisualizationServer.h.
| VisualizationServer::VisualizationServer | ( | std::shared_ptr< TreeState > | state, |
| int | port | ||
| ) |
| state | Shared tree state (mutex-protected). |
| port | TCP port to listen on. |
Definition at line 28 of file VisualizationServer.cpp.
References impl_.
| VisualizationServer::~VisualizationServer | ( | ) |
Definition at line 36 of file VisualizationServer.cpp.
References stop().
| void VisualizationServer::start | ( | ) |
Launch the HTTP listener in a background thread.
Definition at line 38 of file VisualizationServer.cpp.
References impl_.
| void VisualizationServer::stop | ( | ) |
Stop the HTTP server and join the thread.
Definition at line 44 of file VisualizationServer.cpp.
References impl_.
Referenced by ~VisualizationServer().
|
private |
Definition at line 30 of file VisualizationServer.h.
Referenced by start(), stop(), and VisualizationServer().