-
Notifications
You must be signed in to change notification settings - Fork 1
/
hal.h
60 lines (45 loc) · 2.01 KB
/
hal.h
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
/* SPDX-License-Identifier: GPLv3-or-later */
/* Copyright (c) 2019 Project WomoLIN */
/* Author Myron Franze <[email protected]> */
#pragma once
#include "interface/isignal.h"
#include "interface/iunit.h"
namespace siguni
{
class CHalUnitInputGetSignals : public interface::IUnitInput
{
public:
CHalUnitInputGetSignals( const std::map<std::string_view, interface::ISignal*> & attSignalMap );
~CHalUnitInputGetSignals() = default;
void Get( std::string & attGetInput, interface::CAdditionals & attAdditionals ) override final;
private:
const std::map<std::string_view, interface::ISignal*> & signalMap;
};
class CHalUnitInputGetSimulationStatus: public interface::IUnitInput
{
public:
CHalUnitInputGetSimulationStatus( const std::map<std::string_view, interface::ISignal*> & attSignalMap );
~CHalUnitInputGetSimulationStatus() = default;
void Get( std::string & attGetInput, interface::CAdditionals & attAdditionals ) override final;
private:
const std::map<std::string_view, interface::ISignal*> & signalMap;
};
class CHalUnitOutputSetResetSimulationModus : public interface::IUnitOutput
{
public:
CHalUnitOutputSetResetSimulationModus( const std::map<std::string_view, interface::ISignal*> & attSignalMap );
~CHalUnitOutputSetResetSimulationModus() = default;
void Set( std::string & attSetOutput, interface::CAdditionals & attAdditionals ) override final;
private:
const std::map<std::string_view, interface::ISignal*> & signalMap;
};
class CHalUnitInputGetLogging : public interface::IUnitInput
{
public:
CHalUnitInputGetLogging( const std::map<std::string_view, interface::ISignal*> & attSignalMap );
~CHalUnitInputGetLogging() = default;
void Get( std::string & attGetInput, interface::CAdditionals & attAdditionals ) override final;
private:
const std::map<std::string_view, interface::ISignal*> & signalMap;
};
}