2018-02-09 21:31:05 +00:00
|
|
|
//
|
|
|
|
// MultiConfigurable.hpp
|
|
|
|
// Clock Signal
|
|
|
|
//
|
|
|
|
// Created by Thomas Harte on 09/02/2018.
|
2018-05-13 19:19:52 +00:00
|
|
|
// Copyright 2018 Thomas Harte. All rights reserved.
|
2018-02-09 21:31:05 +00:00
|
|
|
//
|
|
|
|
|
|
|
|
#ifndef MultiConfigurable_hpp
|
|
|
|
#define MultiConfigurable_hpp
|
|
|
|
|
|
|
|
#include "../../../../Machines/DynamicMachine.hpp"
|
|
|
|
|
|
|
|
#include <memory>
|
|
|
|
#include <vector>
|
|
|
|
|
|
|
|
namespace Analyser {
|
|
|
|
namespace Dynamic {
|
|
|
|
|
2018-02-19 21:03:17 +00:00
|
|
|
/*!
|
|
|
|
Provides a class that multiplexes the configurable interface to multiple machines.
|
|
|
|
|
|
|
|
Makes a static internal copy of the list of machines; makes no guarantees about the
|
|
|
|
order of delivered messages.
|
|
|
|
*/
|
2018-02-09 21:31:05 +00:00
|
|
|
class MultiConfigurable: public Configurable::Device {
|
|
|
|
public:
|
|
|
|
MultiConfigurable(const std::vector<std::unique_ptr<::Machine::DynamicMachine>> &machines);
|
|
|
|
|
2018-02-19 21:03:17 +00:00
|
|
|
// Below is the standard Configurable::Device interface; see there for documentation.
|
2018-02-09 21:31:05 +00:00
|
|
|
std::vector<std::unique_ptr<Configurable::Option>> get_options() override;
|
|
|
|
void set_selections(const Configurable::SelectionSet &selection_by_option) override;
|
|
|
|
Configurable::SelectionSet get_accurate_selections() override;
|
|
|
|
Configurable::SelectionSet get_user_friendly_selections() override;
|
|
|
|
|
|
|
|
private:
|
|
|
|
std::vector<Configurable::Device *> devices_;
|
|
|
|
};
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
#endif /* MultiConfigurable_hpp */
|