|
Motion Master 6.0.0-alpha.50
Next-generation motion control software
|
#include "example/example_logic.h"#include <algorithm>#include <format>#include <iterator>#include <vector>#include "node/device.h"#include "node/device_manager.h"Namespaces | |
| namespace | mm |
| namespace | mm::example |
| Example application namespace — the starting point for a C++ HTTP-endpoint plug-in. | |
Functions | |
| void | mm::example::to_json (nlohmann::json &j, const DeviceSummary &summary) |
Serialises a DeviceSummary to JSON. Lives next to the type (ADL-found by nlohmann) so a nlohmann::json(summary) or nlohmann::json(vector<DeviceSummary>) just works. | |
| std::vector< DeviceSummary > | mm::example::summarizeDevices (const mm::node::DeviceManager &deviceManager) |
Builds a summary row for every device currently known to deviceManager. | |