Motion Master 6.0.0-alpha.50
Next-generation motion control software
Loading...
Searching...
No Matches
example_logic.cc File Reference
#include "example/example_logic.h"
#include <algorithm>
#include <format>
#include <iterator>
#include <vector>
#include "node/device.h"
#include "node/device_manager.h"
Include dependency graph for example_logic.cc:

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< DeviceSummarymm::example::summarizeDevices (const mm::node::DeviceManager &deviceManager)
 Builds a summary row for every device currently known to deviceManager.