Device component initialization done more intelligently

This commit is contained in:
Paul Hollinsky
2018-10-26 19:28:09 -04:00
parent 7e6282a7ad
commit a331a2afa8
24 changed files with 255 additions and 213 deletions
+18
View File
@@ -0,0 +1,18 @@
#ifndef __NULL_SETTINGS_H_
#define __NULL_SETTINGS_H_
#include "icsneo/device/idevicesettings.h"
#include "icsneo/communication/communication.h"
#include <memory>
namespace icsneo {
class NullSettings : public IDeviceSettings {
public:
// Calls the base constructor with "createInoperableSettings"
NullSettings(std::shared_ptr<Communication> com = std::shared_ptr<Communication>()) : IDeviceSettings(nullptr) { (void)com; }
};
}
#endif