COMMS
Template library intended to help with implementation of communication protocols.
Loading...
Searching...
No Matches
FixedValue.h
1//
2// Copyright 2019 - 2025 (C). Alex Robenko. All rights reserved.
3//
4// This Source Code Form is subject to the terms of the Mozilla Public
5// License, v. 2.0. If a copy of the MPL was not distributed with this
6// file, You can obtain one at http://mozilla.org/MPL/2.0/.
7
8#pragma once
9
10
11namespace comms
12{
13
14namespace field
15{
16
17namespace adapter
18{
19
20
21template <typename TBase>
22class FixedValue : public TBase
23{
24 using BaseImpl = TBase;
25public:
26 using ValueType = typename BaseImpl::ValueType;
27
28 using BaseImpl::value;
29
30 ValueType& value() = delete;
31
32 template <typename U>
33 void setValue(U&& val) = delete;
34
35private:
36 using BaseImpl::setValue;
37
38};
39
40} // namespace adapter
41
42} // namespace field
43
44} // namespace comms
45
46
47
48
Main namespace for all classes / functions of COMMS library.