17 #ifndef GNSS_SDR_SIGNAL_ENABLED_FLAGS_H 18 #define GNSS_SDR_SIGNAL_ENABLED_FLAGS_H 24 enum signal_flag : uint32_t
48 uint32_t or_all(
const T& value)
const 53 template <
typename T,
typename... Args>
54 uint32_t or_all(
const T& first,
const Args&... rest)
const 56 return first | or_all(rest...);
59 template <
typename... Args>
60 bool check_only_enabled(
const Args&... args)
const 62 return (flags ^ or_all(args...)) == 0;
65 template <
typename... Args>
66 bool check_any_enabled(
const Args&... args)
const 68 return (flags & or_all(args...)) > 0;
74 const bool has_galileo;
75 const bool has_glonass;
76 const bool has_beidou;
80 const bool only_galileo;
81 const bool only_glonass;
82 const bool only_beidou;
86 #endif // GNSS_SDR_SIGNAL_ENABLED_FLAGS_H
This abstract class represents an interface to configuration parameters.