-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathunit.cpp
94 lines (69 loc) · 3.55 KB
/
unit.cpp
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
/* SPDX-License-Identifier: GPLv3-or-later */
/* Copyright (c) 2019 Project WomoLIN */
/* Author Myron Franze <[email protected]> */
#include "unit.h"
namespace siguni
{
CUnitOutput::CUnitOutput( interface::IUnitOutput & attUnitOutput ) : unitOutput( attUnitOutput ) {}
void CUnitInput::UpdateUnitSignalGetString( [[maybe_unused]] std::string & attKey, std::string & attValue, interface::CAdditionals & attAdditionals )
{
unitInput.Get( attValue, attAdditionals );
}
void CUnitOutput::UpdateUnitSignalSetReset( [[maybe_unused]] std::string & attKey, std::string & attValue, interface::CAdditionals & attAdditionals )
{
unitOutput.Set( attValue, attAdditionals );
}
CUnitInput::CUnitInput( interface::IUnitInput & attUnitInput ) : unitInput( attUnitInput ) {}
void CUnitInput::UpdateUnitSignalSetReset( [[maybe_unused]] std::string & attKey, std::string & attValue, interface::CAdditionals & attAdditionals )
{
unitInput.Get( attValue, attAdditionals );
}
void CUnitInput::UpdateUnitSignalGetVersion( [[maybe_unused]] std::string & attKey, std::string & attValue, interface::CAdditionals & attAdditionals )
{
unitInput.Get( attValue, attAdditionals );
}
void CUnitInput::UpdateUnitSignalGetVoltage( [[maybe_unused]] std::string & attKey, std::string & attValue, interface::CAdditionals & attAdditionals )
{
unitInput.Get( attValue, attAdditionals );
}
void CUnitInput::UpdateUnitSignalGetPressure( [[maybe_unused]] std::string & attKey, std::string & attValue, interface::CAdditionals & attAdditionals )
{
unitInput.Get( attValue, attAdditionals );
}
void CUnitInput::UpdateUnitSignalGetTemperature( [[maybe_unused]] std::string & attKey, std::string & attValue, interface::CAdditionals & attAdditionals )
{
unitInput.Get( attValue, attAdditionals );
}
void CUnitInput::UpdateUnitSignalGetHumidity( [[maybe_unused]] std::string & attKey, std::string & attValue, interface::CAdditionals & attAdditionals )
{
unitInput.Get( attValue, attAdditionals );
}
void CUnitInput::UpdateUnitSignalGetMagnetic( [[maybe_unused]] std::string & attKey, std::string & attValue, interface::CAdditionals & attAdditionals )
{
unitInput.Get( attValue, attAdditionals );
}
void CUnitInput::UpdateUnitSignalGetAcceleration( [[maybe_unused]] std::string & attKey, std::string & attValue, interface::CAdditionals & attAdditionals )
{
unitInput.Get( attValue, attAdditionals );
}
void CUnitInput::UpdateUnitSignalGetCurrent( [[maybe_unused]] std::string & attKey, std::string & attValue, interface::CAdditionals & attAdditionals )
{
unitInput.Get( attValue, attAdditionals );
}
void CUnitInput::UpdateUnitSignalGetBatteryCapacity( [[maybe_unused]] std::string & attKey, std::string & attValue, interface::CAdditionals & attAdditionals )
{
unitInput.Get( attValue, attAdditionals );
}
void CUnitInput::UpdateUnitSignalGetBatteryCharge( [[maybe_unused]] std::string & attKey, std::string & attValue, interface::CAdditionals & attAdditionals )
{
unitInput.Get( attValue, attAdditionals );
}
void CUnitInput::UpdateUnitSignalGetBatteryHealth( [[maybe_unused]] std::string & attKey, std::string & attValue, interface::CAdditionals & attAdditionals )
{
unitInput.Get( attValue, attAdditionals );
}
void CUnitInput::UpdateUnitSignalGetVictronInfo( [[maybe_unused]] std::string & attKey, std::string & attValue, interface::CAdditionals & attAdditionals )
{
unitInput.Get( attValue, attAdditionals );
}
}