AARE
Data analysis library for PSI hybrid detectors
Loading...
Searching...
No Matches
defs.hpp
Go to the documentation of this file.
1#pragma once
2#include "aare/core/Frame.hpp"
4
5#include <stdexcept>
6#include <string>
7
8namespace aare {
13struct ZmqFrame {
16};
17
18namespace network_io {
22class NetworkError : public std::runtime_error {
23 private:
24 const char *m_msg;
25
26 public:
27 NetworkError(const char *msg) : std::runtime_error(msg), m_msg(msg) {}
28 NetworkError(const std::string msg) : std::runtime_error(msg) { m_msg = strdup(msg.c_str()); }
29 virtual const char *what() const noexcept override { return m_msg; }
30};
31
32} // namespace network_io
33
34} // namespace aare
Definition Frame.hpp:18
NetworkError exception class.
Definition defs.hpp:22
virtual const char * what() const noexcept override
Definition defs.hpp:29
NetworkError(const std::string msg)
Definition defs.hpp:28
const char * m_msg
Definition defs.hpp:24
NetworkError(const char *msg)
Definition defs.hpp:27
Frame class to represent a single frame of data model class should be able to work with streams comin...
Definition CircularFifo.hpp:11
ZmqFrame structure wrapper class to contain a ZmqHeader and a Frame.
Definition defs.hpp:13
Frame frame
Definition defs.hpp:15
ZmqHeader header
Definition defs.hpp:14
Definition ZmqHeader.hpp:86