COMMS
Template library intended to help with implementation of communication protocols.
Loading...
Searching...
No Matches
VersionStorage.h
1//
2// Copyright 2019 - 2024 (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
10namespace comms
11{
12
13namespace field
14{
15
16namespace details
17{
18
19template <typename TVersionType>
20struct VersionStorage
21{
22 TVersionType getVersion() const
23 {
24 return version_;
25 }
26protected:
27 TVersionType version_ = TVersionType();
28};
29
30} // namespace details
31
32} // namespace field
33
34} // namespace comms
comms::option::def::VersionStorage VersionStorage
Same as comms::option::def::VersionStorage.
Definition options.h:1818
Main namespace for all classes / functions of COMMS library.