mirror of
https://github.com/intrepidcs/libicsneo.git
synced 2026-08-05 01:18:36 +02:00
Device component initialization done more intelligently
This commit is contained in:
@@ -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
|
||||
Reference in New Issue
Block a user