1 | #ifndef CPR_LOCAL_PORT_RANGE_H |
---|---|
2 | #define CPR_LOCAL_PORT_RANGE_H |
3 | |
4 | #include <cstdint> |
5 | |
6 | namespace cpr { |
7 | |
8 | class LocalPortRange { |
9 | public: |
10 | // NOLINTNEXTLINE(google-explicit-constructor) |
11 | LocalPortRange(const std::uint16_t p_localportrange) : localportrange_(p_localportrange) {} |
12 | |
13 | operator std::uint16_t() const { |
14 | return localportrange_; |
15 | } |
16 | |
17 | private: |
18 | std::uint16_t localportrange_ = 0; |
19 | }; |
20 | |
21 | } // namespace cpr |
22 | |
23 | #endif |