ifw-daq 3.1.0
IFW Data Acquisition modules
Loading...
Searching...
No Matches
utility.hpp
Go to the documentation of this file.
1/**
2 * @file
3 * @ingroup daq_ocm
4 * @copyright 2022 ESO - European Southern Observatory
5 *
6 * @brief Declaration of utilities
7 */
8#ifndef DAQ_UTILITY_HPP_
9#define DAQ_UTILITY_HPP_
10
11namespace daq {
12
13/**
14 * Utility class that represents a result and an error.
15 */
16template<class T=void, class ErrorType=bool>
17struct Result {
18 ErrorType error;
20};
21
22template<>
23struct Result<void> {
24 bool error;
25};
26}
27
28#endif // #ifndef DAQ_UTILITY_HPP_
ErrorType error
Definition: utility.hpp:18
Utility class that represents a result and an error.
Definition: utility.hpp:17