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
20template <typename TBase>
21class FixedValue : public TBase
22{
23 using BaseImpl = TBase;
24public:
25 using ValueType = typename BaseImpl::ValueType;
26
27 using BaseImpl::value;
28
29 ValueType& value() = delete;
30
31 template <typename U>
32 void setValue(U&& val) = delete;
33
34private:
35 using BaseImpl::setValue;
36
37};
38
39} // namespace adapter
40
41} // namespace field
42
43} // namespace comms
44
45
46
47
Main namespace for all classes / functions of COMMS library.