mirror of
https://github.com/lora-aprs/LoRa_APRS_iGate.git
synced 2026-04-06 06:55:06 +00:00
remove of smart pointers
This commit is contained in:
parent
c6d73c33b2
commit
c1fd41a355
31 changed files with 203 additions and 194 deletions
|
|
@ -1,17 +1,25 @@
|
|||
|
||||
#include "System.h"
|
||||
|
||||
System::System(std::shared_ptr<BoardConfig> boardConfig, std::shared_ptr<Configuration> userConfig) : _boardConfig(boardConfig), _userConfig(userConfig), _isWifiEthConnected(false) {
|
||||
System::System() : _boardConfig(0), _userConfig(0), _isWifiEthConnected(false) {
|
||||
}
|
||||
|
||||
System::~System() {
|
||||
}
|
||||
|
||||
std::shared_ptr<BoardConfig> System::getBoardConfig() const {
|
||||
void System::setBoardConfig(BoardConfig const *const boardConfig) {
|
||||
_boardConfig = boardConfig;
|
||||
}
|
||||
|
||||
void System::setUserConfig(Configuration const *const userConfig) {
|
||||
_userConfig = userConfig;
|
||||
}
|
||||
|
||||
BoardConfig const *const System::getBoardConfig() const {
|
||||
return _boardConfig;
|
||||
}
|
||||
|
||||
std::shared_ptr<Configuration> System::getUserConfig() const {
|
||||
Configuration const *const System::getUserConfig() const {
|
||||
return _userConfig;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue