Go to the documentation of this file.
29 #include <SimoxUtility/json.h>
44 nlohmann::json
writeList(
const std::vector<nlohmann::json>& elements,
const Path& p =
Path())
override;
45 nlohmann::json
writeDict(
const std::map<std::string, nlohmann::json>& elements,
const std::optional<nlohmann::json>& extends = std::nullopt,
const Path& p =
Path())
override;
47 nlohmann::json
writeNDArray(
const std::vector<int>& shape,
const std::string& typeAsString,
const unsigned char*
data,
const Path& p =
Path())
override;
nlohmann::json writeInt(const int i, const Path &p=Path()) override
data::Descriptor getDescriptor(ReturnTypeConst &input) final
nlohmann::json writeString(const std::string &i, const Path &p=Path()) override
nlohmann::json writeFloat(const float i, const Path &p=Path()) override
nlohmann::json writeNDArray(const std::vector< int > &shape, const std::string &typeAsString, const unsigned char *data, const Path &p=Path()) override
NlohmannJSONWriter()=default
nlohmann::json writeBool(const bool i, const Path &p=Path()) override
nlohmann::json writeDouble(const double i, const Path &p=Path()) override
ReaderT::InputType & input
nlohmann::json writeDict(const std::map< std::string, nlohmann::json > &elements, const std::optional< nlohmann::json > &extends=std::nullopt, const Path &p=Path()) override
nlohmann::json writeLong(const long i, const Path &p=Path()) override
typename std::add_const< ReturnType >::type ReturnTypeConst
std::filesystem::path Path
nlohmann::json writeList(const std::vector< nlohmann::json > &elements, const Path &p=Path()) override