#include <memory>
#include <string>
+using std::list;
+using std::map;
+using std::shared_ptr;
+using std::string;
+
namespace Glib {
class VariantBase;
}
class DeviceManager
{
public:
- DeviceManager(std::shared_ptr<sigrok::Context> context);
+ DeviceManager(shared_ptr<sigrok::Context> context);
~DeviceManager() = default;
- const std::shared_ptr<sigrok::Context>& context() const;
+ const shared_ptr<sigrok::Context>& context() const;
- std::shared_ptr<sigrok::Context> context();
+ shared_ptr<sigrok::Context> context();
- const std::list< std::shared_ptr<devices::HardwareDevice> >&
- devices() const;
+ const list< shared_ptr<devices::HardwareDevice> >& devices() const;
- std::list< std::shared_ptr<devices::HardwareDevice> > driver_scan(
- std::shared_ptr<sigrok::Driver> driver,
- std::map<const sigrok::ConfigKey *, Glib::VariantBase> drvopts);
+ list< shared_ptr<devices::HardwareDevice> > driver_scan(
+ shared_ptr<sigrok::Driver> driver,
+ map<const sigrok::ConfigKey *, Glib::VariantBase> drvopts);
- const std::map<std::string, std::string> get_device_info(
- const std::shared_ptr<devices::Device> device);
+ const map<string, string> get_device_info(
+ const shared_ptr<devices::Device> device);
- const std::shared_ptr<devices::HardwareDevice> find_device_from_info(
- const std::map<std::string, std::string> search_info);
+ const shared_ptr<devices::HardwareDevice> find_device_from_info(
+ const map<string, string> search_info);
private:
- bool compare_devices(std::shared_ptr<devices::Device> a,
- std::shared_ptr<devices::Device> b);
+ bool compare_devices(shared_ptr<devices::Device> a,
+ shared_ptr<devices::Device> b);
protected:
- std::shared_ptr<sigrok::Context> context_;
- std::list< std::shared_ptr<devices::HardwareDevice> > devices_;
+ shared_ptr<sigrok::Context> context_;
+ list< shared_ptr<devices::HardwareDevice> > devices_;
};
} // namespace pv