On this page
article
peary/device/DeviceManager.hpp
peary/device/DeviceManager.hpp
Caribou Device Manager Class. More…
Namespaces
| Name |
|---|
| peary |
| peary::device Forward declaration of CaribouDevice, Board, and Carboard classes. |
Classes
| Name | |
|---|---|
| class | peary::device::DeviceManager Caribou Device Manager. |
Detailed Description
Caribou 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 2025-11-14 at 11:31:23 +0100