peary/device/DeviceManager.hpp

Peary Device Manager Class. More…

Namespaces

Name
peary
peary::device

Classes

Name
class peary::device::DeviceManager Peary Device Manager.

Detailed Description

Peary Device Manager Class.

Copyright: Copyright (c) 2016-2025 CERN and the Peary Caribou authors. This software is distributed under the terms of the LGPL-3.0-only License, copied verbatim in the file “LICENSE.md”. SPDX-License-Identifier: LGPL-3.0-only

Source code

  
#pragma once

#include <cstdint>
#include <string>
#include <vector>

#include "Device.hpp"

namespace peary::device {

    class DeviceManager {

    public:
        DeviceManager();

        ~DeviceManager();

        Device* getDevice(size_t id);

        std::vector<Device*> getDevices();

        size_t addDevice(const std::string& name, const config::Configuration& config);

        void clearDevices();

    private:
        std::map<std::string, void*> _deviceLibraries;

        std::vector<Device*> _deviceList;

    }; // class DeviceManager

} // namespace peary::device
  

Updated on 2026-01-16 at 00:29:06 +0100