ifw-daq
2.1.0-pre1
IFW Data Acquisition modules
dpm
common
src
include
dpm
message
message.hpp
Go to the documentation of this file.
1
/**
2
* @file
3
* @ingroup daq_dpm_common
4
* @copyright 2022 ESO - European Southern Observatory
5
*
6
* @brief Message declarations shared between daqDpmServer and daqDpmMerge
7
*/
8
#include <chrono>
9
10
#include <
daq/fits/keyword.hpp
>
11
12
namespace
daq::dpm::message
{
13
14
struct
BaseMessage
{
15
std::chrono::system_clock::time_point
timestamp
;
16
};
17
18
struct
BaseAlert
:
BaseMessage
{
19
std::string
alert_type
;
20
};
21
22
/**
23
*/
24
struct
KeywordAlert
:
BaseAlert
{
25
fits::KeywordVariant
keyword
;
26
std::string
message
;
27
};
28
29
}
// namespace daq::dpm::message
daq::dpm::message::KeywordAlert::keyword
fits::KeywordVariant keyword
Definition:
message.hpp:25
daq::fits::KeywordVariant
std::variant< ValueKeyword, EsoKeyword, LiteralKeyword > KeywordVariant
The different variants of keywords that are supported.
Definition:
keyword.hpp:400
daq::dpm::message::BaseAlert
Definition:
message.hpp:18
daq::dpm::message::KeywordAlert::message
std::string message
Definition:
message.hpp:26
daq::dpm::message
Definition:
message.hpp:12
keyword.hpp
Contains data structure for FITS keywords.
daq::dpm::message::BaseMessage
Definition:
message.hpp:14
daq::dpm::message::BaseMessage::timestamp
std::chrono::system_clock::time_point timestamp
Definition:
message.hpp:15
daq::dpm::message::KeywordAlert
Definition:
message.hpp:24
daq::dpm::message::BaseAlert::alert_type
std::string alert_type
Definition:
message.hpp:19
Generated by
1.8.20