-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
expanded basemanager with signal GetSignals
- Loading branch information
Myron Franze
authored
Jun 18, 2020
1 parent
326327d
commit 1c26780
Showing
10 changed files
with
102 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -17,6 +17,7 @@ add_library(${PRJ_NAME} | |
|
||
unit | ||
signal | ||
hal | ||
protocol | ||
managerbase | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
/* SPDX-License-Identifier: GPLv3-or-later */ | ||
/* Copyright (c) 2019 Project WomoLIN */ | ||
/* Author Myron Franze <[email protected]> */ | ||
|
||
#include "hal.h" | ||
|
||
namespace siguni | ||
{ | ||
|
||
CHalUnitInputGetSignals::CHalUnitInputGetSignals( const std::map<std::string_view, interface::ISignal*> & attSignalMap ) | ||
: signalMap( attSignalMap ) | ||
{ | ||
|
||
} | ||
|
||
void CHalUnitInputGetSignals::Get( std::string & attGetInput ) | ||
{ | ||
attGetInput.clear(); | ||
for(const auto & [key, ignored] : signalMap ){ | ||
attGetInput.append( key ); | ||
attGetInput.append( "," ); | ||
} | ||
} | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
/* 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 ) override final; | ||
|
||
private: | ||
const std::map<std::string_view, interface::ISignal*> & signalMap; | ||
}; | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters