Motion Master 6.0.0-alpha.86
Next-generation motion control software
Loading...
Searching...
No Matches
esi_request.h
Go to the documentation of this file.
1#pragma once
2
3#include <cstdint>
4#include <expected>
5#include <nlohmann/json_fwd.hpp>
6#include <string>
7#include <string_view>
8#include <vector>
9
10#include "etg/esi_entry.h"
11
12namespace mm::etg {
13
24 std::vector<uint32_t> moduleIdents;
25};
26
33std::expected<std::vector<uint32_t>, std::string> parseIdentList(std::string_view csv);
34
50std::expected<nlohmann::json, std::string> buildEsiResponse(std::string_view xml,
51 const EsiParseRequest& request,
52 const EsiEntryOptions& options = {});
53
54} // namespace mm::etg
Definition eni.cc:18
std::expected< std::vector< uint32_t >, std::string > parseIdentList(std::string_view csv)
Parses a comma-separated list of hex-or-decimal values, as a query parameter carries it.
Definition esi_request.cc:80
std::expected< nlohmann::json, std::string > buildEsiResponse(std::string_view xml, const EsiParseRequest &request, const EsiEntryOptions &options)
Parses an ESI document and renders it as JSON.
Definition esi_request.cc:102
Knobs for buildDeviceEntries.
Definition esi_entry.h:142
What a caller wants back from an ESI document.
Definition esi_request.h:18
std::vector< uint32_t > moduleIdents
Restricts the module merge; empty means every ident a device's slots reference.
Definition esi_request.h:24