Function CE::Workers::Json::load_configuration(std::istream&, const std::filesystem::path&)
Defined in File configuration.h
Function Documentation
-
CE::Workers::Configuration CE::Workers::Json::load_configuration(std::istream &input, const std::filesystem::path &source = {})
Declaration:
[[nodiscard]]Consume a JSON configuration stream without owning the stream.
See also
- Parameters:
input – Readable stream; read failures reject rather than publish partial settings.
source – Optional diagnostic filename/label, not separately opened.
- Throws:
CE::Exceptions::invalid_args – For malformed JSON, duplicate/unknown properties, unsupported version, invalid names/options or read/open errors. Allocation failures can propagate. Runtime availability and required placement are resolved separately when constructing a pool/group. Link Cheryl::Workers with JSON enabled; no upstream JSON types enter the API.
- Returns:
Owned inert version1.0 settings; creates no threads/groups, discovers no topology and applies no CPU policy.