17 #ifndef HH_SENF_Ext_NetEmu_WLAN_Regulatory_ 18 #define HH_SENF_Ext_NetEmu_WLAN_Regulatory_ 1 22 #include <boost/operators.hpp> 34 :
public boost::equality_comparable<RegulatoryRule>,
35 public boost::less_than_comparable<RegulatoryRule>
87 std::uint32_t
flags()
const;
96 std::uint32_t frequencyRangeBegin_;
99 std::uint32_t frequencyRangeEnd_;
101 std::uint32_t maxBandwidth_;
103 std::int32_t maxAntennaGain_;
105 std::int32_t maxEIRP_;
106 std::uint32_t flags_;
108 std::uint32_t cacTime_;
120 :
public boost::equality_comparable<RegulatoryDomain>,
121 public boost::less_than_comparable<RegulatoryDomain>
138 explicit operator bool()
const;
148 (key(
"DFS_Unset", Unset))(key(
"DFS_FCC", FCC))(key(
"DFS_ETSI", ETSI))(key(
"DFS_JP", JP)) );
157 static bool const singleToken =
false;
161 static std::string
str(type
const & value);
169 static void format(type
const & info, std::ostream & os);
RegulatoryRule & frequencyRange(std::uint32_t lower, std::uint32_t upper)
std::uint32_t cacTime() const
std::int32_t maxAntennaGain() const
std::string str(T const &t)
SENF_CONSOLE_REGISTER_STRONG_ENUM_MEMBER(RegulatoryDomain, DFSRegion,(key("DFS_Unset", Unset))(key("DFS_FCC", FCC))(key("DFS_ETSI", ETSI))(key("DFS_JP", JP)))
bool operator<(RegulatoryRule const &other) const
std::int32_t maxEIRP() const
SENF_CONSOLE_REGISTER_ENUM_MEMBER(DVBModulationParameter, fec_rate_t,(FEC_NONE)(FEC_1_2)(FEC_2_3)(FEC_3_4)(FEC_4_5)(FEC_5_6)(FEC_6_7)(FEC_7_8)(FEC_8_9)(FEC_AUTO)(FEC_3_5)(FEC_9_10))
std::set< RegulatoryRule > rules
std::uint32_t frequencyRangeEnd() const
bool operator==(RegulatoryRule const &other) const
void parse(ParseCommandInfo::TokensRange const &tokens, Type &out)
SENF_CONSOLE_PARSE_AND_FORMAT_AS_TUPLE(senf::emu::RegulatoryDomain,(alpha2Country)(dfsRegion)(rules))
std::uint32_t frequencyRangeBegin() const
std::string alpha2Country
std::uint32_t maxBandwidth() const
std::uint32_t flags() const
unspecified_keyword_type description
std::ostream & operator<<(std::ostream &os, InterfaceDeviceId const &id)
boost::iterator_range< token_iterator > TokensRange
void format(Type const &value, std::ostream &os)
bool isEqualKernel(RegulatoryRule const &other) const