cc_tools_qt
Common Environment for Protocol Analysis.
Loading...
Searching...
No Matches
ToolsProtMsgInterface.h
1//
2// Copyright 2024 - 2026 (C). Alex Robenko. All rights reserved.
3//
4// SPDX-License-Identifier: GPL-3.0-or-later
5//
6
7// This file is free software: you can redistribute it and/or modify
8// it under the terms of the GNU General Public License as published by
9// the Free Software Foundation, either version 3 of the License, or
10// (at your option) any later version.
11//
12// This program is distributed in the hope that it will be useful,
13// but WITHOUT ANY WARRANTY; without even the implied warranty of
14// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15// GNU General Public License for more details.
16//
17// You should have received a copy of the GNU General Public License
18// along with this program. If not, see <http://www.gnu.org/licenses/>.
19
20#pragma once
21
22#include "comms/options.h"
23
24#include <cstdint>
25#include <iterator>
26#include <vector>
27
28namespace cc_tools_qt
29{
30
42template <template<typename...> class TMessageBase>
44 TMessageBase<
45 comms::option::app::IdInfoInterface,
46 comms::option::app::ReadIterator<const std::uint8_t*>,
47 comms::option::app::WriteIterator<std::back_insert_iterator<std::vector<std::uint8_t>>>,
48 comms::option::app::LengthInfoInterface
49 >;
50
51} // namespace cc_tools_qt
Main namespace for all classes / functions of the shared library.
TMessageBase< comms::option::app::IdInfoInterface, comms::option::app::ReadIterator< const std::uint8_t * >, comms::option::app::WriteIterator< std::back_insert_iterator< std::vector< std::uint8_t > > >, comms::option::app::LengthInfoInterface > ToolsProtMsgInterface
Interface class that needs to be used for the messages when implementing protocol plugin.
Definition ToolsProtMsgInterface.h:49