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