CuteHMI - Modbus (CuteHMI.Modbus.2)
RegisterControllerTraits.hpp
1 #ifndef H_EXTENSIONS_CUTEHMI_MODBUS_2_INCLUDE_CUTEHMI_MODBUS_INTERNAL_REGISTERCONTROLLERTRAITS_HPP
2 #define H_EXTENSIONS_CUTEHMI_MODBUS_2_INCLUDE_CUTEHMI_MODBUS_INTERNAL_REGISTERCONTROLLERTRAITS_HPP
3 
4 #include <QtGlobal>
5 
6 namespace cutehmi {
7 namespace modbus {
8 
9 class Register16Controller;
10 class Register1Controller;
11 
12 namespace internal {
13 
14 template <typename R>
16 {
17 };
18 
19 template <>
21 {
22  typedef qreal ValueType;
23 };
24 
25 template <>
27 {
28  typedef bool ValueType;
29 };
30 
31 }
32 }
33 }
34 
35 #endif
36 
37 //(c)C: Copyright © 2019, Michał Policht <michal@policht.pl>. All rights reserved.
38 //(c)C: This file is a part of CuteHMI.
39 //(c)C: CuteHMI is free software: you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.
40 //(c)C: CuteHMI is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details.
41 //(c)C: You should have received a copy of the GNU Lesser General Public License along with CuteHMI. If not, see <https://www.gnu.org/licenses/>.
cutehmi::modbus::Register1Controller
Register controller for 1 bit registers.
Definition: Register1Controller.hpp:19
cutehmi::modbus::Register16Controller
Register controller for 16 bit registers.
Definition: Register16Controller.hpp:17
cutehmi::modbus::internal::RegisterControllerTraits
Definition: RegisterControllerTraits.hpp:15
cutehmi::modbus::internal::RegisterControllerTraits< Register1Controller >::ValueType
bool ValueType
Definition: RegisterControllerTraits.hpp:28
cutehmi::modbus::internal::RegisterControllerTraits< Register16Controller >::ValueType
qreal ValueType
Definition: RegisterControllerTraits.hpp:22
cutehmi
std::internal
T internal(T... args)