10 #include "../utils/runtime_error.h" 27 auto id_exists_before = elem->check_optional_keys(
"id");
31 auto id_exists_after = elem->check_optional_keys(
"id");
33 if (id_exists_before != id_exists_after)
ShPtr< Element > ElPtr
An alias for a shared pointer of Element class.
virtual void compute_body(const ElPtr &elem, Json &data) override
Compute properties and add them to Element::data given as a mutable reference.
nlohmann::json Json
Json is an alias for nlohmann::json.
void runtime_error(const Str &msg)
Raise (for Python) and throw (for C++) a runtime error.
This file has a definition of Adder class, which is a subclass of Updater class.
Namespace for utility functions.
virtual void compute_common(const ElPtr &elem, Json &data)
Common part of compute_body.