IRSOL
C++ code implementing socket server for interacting with Baumer camera.
params.hpp
Go to the documentation of this file.
1#pragma once
2
4#include "irsol/types.hpp"
5#include "irsol/utils.hpp"
6
7#include <chrono>
8#include <functional>
9#include <memory>
10
11namespace irsol {
12namespace server {
13namespace frame_collector {
14
16{
18
19 double fps = 0.0;
20 std::chrono::microseconds interval;
22 std::shared_ptr<frame_queue_t> queue;
23 int64_t remainingFrames = -1; // -1 for infinite
24 bool immediate = false; // true for "immediate-once" clients
25
27 double fps,
28 std::chrono::microseconds interval,
30 std::shared_ptr<frame_queue_t> queue,
31 int64_t remainingFrames,
32 bool immediate)
33 : fps(fps)
36 , queue(queue)
39 {}
40};
41}
42}
43}
A thread-safe, optionally bounded queue with blocking push and pop operations.
Definition queue.hpp:66
clock_t::time_point timepoint_t
Alias for a point in time as defined by clock_t.
Definition types.hpp:120
ClientCollectionParams(double fps, std::chrono::microseconds interval, irsol::types::timepoint_t nextFrameDue, std::shared_ptr< frame_queue_t > queue, int64_t remainingFrames, bool immediate)
Definition params.hpp:26
Core type definitions for networking, time handling, and protocol values used throughout the irsol li...
General utility functions used throughout the irsol library.