HORIBA C++ SDK
Library for HORIBA devices
Loading...
Searching...
No Matches
ccds_discovery.h
Go to the documentation of this file.
1#ifndef CCD_DEVICES_DISCOVERY_H
2#define CCD_DEVICES_DISCOVERY_H
3
7
8#include <memory>
9#include <nlohmann/json.hpp>
10
11namespace horiba::devices {
16 public:
23 std::shared_ptr<horiba::communication::Communicator> communicator);
24 ~ChargeCoupledDevicesDiscovery() override = default;
25
32 void execute(bool error_on_no_devices) noexcept(false) override;
33
39 std::vector<std::shared_ptr<single_devices::ChargeCoupledDevice>>
41
42 private:
43 std::shared_ptr<horiba::communication::Communicator> communicator;
44 std::vector<std::shared_ptr<single_devices::ChargeCoupledDevice>> ccds;
45
46 std::vector<std::shared_ptr<single_devices::ChargeCoupledDevice>> parse_ccds(
47 nlohmann::json raw_ccds);
48};
49} /* namespace horiba::devices */
50#endif /* ifndef CCD_DEVICES_DISCOVERY_H */
std::vector< std::shared_ptr< single_devices::ChargeCoupledDevice > > charge_coupled_devices() const
CCDs that have been discovered after calling the execute() function.
ChargeCoupledDevicesDiscovery(std::shared_ptr< horiba::communication::Communicator > communicator)
Builds a CCD discovery.
void execute(bool error_on_no_devices) noexcept(false) override
Executes the CCD discovery.
Interface for device discoveries on the ICL.
Definition device_discovery.h:9
Definition ccds_discovery.h:11