IRSOL
C++ code implementing socket server for interacting with Baumer camera.
monitor.hpp File Reference

Defines the StatusMonitor class to periodically monitor camera status in a background thread. More...

#include "irsol/camera/interface.hpp"
#include "irsol/types.hpp"
#include <atomic>
#include <chrono>
#include <thread>

Go to the source code of this file.

Classes

class  irsol::camera::StatusMonitor
 Class that offers an easy way to run a background monitorin thread that periodically inspects and reports information about the camera interface passed as argument. More...
 

Namespaces

namespace  irsol
 
namespace  irsol::camera
 Provides a high-level interface to interact with camera devices using NeoAPI.
 

Detailed Description

Defines the StatusMonitor class to periodically monitor camera status in a background thread.

This header declares the StatusMonitor class, which enables monitoring of camera status or other relevant metrics by running a periodic background task on a separate thread. The monitoring interval can be customized via a std::chrono::milliseconds parameter.

The class manages starting and stopping the monitoring thread safely, allowing derived classes to override the monitoring behavior by implementing runMonitor().

Usage:

StatusMonitor monitor(cam, std::chrono::milliseconds(200));
monitor.start();
// do other work...
monitor.stop();
High-level wrapper around the NeoAPI camera for synchronized access.
Definition interface.hpp:61

Definition in file monitor.hpp.