public:
DeviceManager(std::shared_ptr<sigrok::Context> context);
- ~DeviceManager();
+ ~DeviceManager() = default;
const std::shared_ptr<sigrok::Context>& context() const;
const std::shared_ptr<devices::HardwareDevice> find_device_from_info(
const std::map<std::string, std::string> search_info);
- void build_display_name(std::shared_ptr<devices::Device> device);
-
- const std::string get_display_name(
- std::shared_ptr<devices::Device> dev);
-
- const std::string get_full_name(std::shared_ptr<devices::Device> dev);
-
- void update_display_name(std::shared_ptr<devices::Device> dev);
-
private:
bool compare_devices(std::shared_ptr<devices::Device> a,
std::shared_ptr<devices::Device> b);
protected:
std::shared_ptr<sigrok::Context> context_;
std::list< std::shared_ptr<devices::HardwareDevice> > devices_;
-
- std::map< std::shared_ptr<devices::Device>, std::string > display_names_;
- std::map< std::shared_ptr<devices::Device>, std::string > full_names_;
};
} // namespace pv