← Documentation
ADS-IDAC Engine 5.0.0
VisualizationServer Class Reference

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_
 

Detailed Description

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.

Constructor & Destructor Documentation

◆ VisualizationServer()

VisualizationServer::VisualizationServer ( std::shared_ptr< TreeState >  state,
int  port 
)
Parameters
stateShared tree state (mutex-protected).
portTCP port to listen on.

Definition at line 28 of file VisualizationServer.cpp.

References impl_.

◆ ~VisualizationServer()

VisualizationServer::~VisualizationServer ( )

Definition at line 36 of file VisualizationServer.cpp.

References stop().

Here is the call graph for this function:

Member Function Documentation

◆ start()

void VisualizationServer::start ( )

Launch the HTTP listener in a background thread.

Definition at line 38 of file VisualizationServer.cpp.

References impl_.

◆ stop()

void VisualizationServer::stop ( )

Stop the HTTP server and join the thread.

Definition at line 44 of file VisualizationServer.cpp.

References impl_.

Referenced by ~VisualizationServer().

Here is the caller graph for this function:

Member Data Documentation

◆ impl_

std::unique_ptr<Impl> VisualizationServer::impl_
private

Definition at line 30 of file VisualizationServer.h.

Referenced by start(), stop(), and VisualizationServer().


The documentation for this class was generated from the following files: