9 #ifndef ADD_CHILD_IDS_H 10 #define ADD_CHILD_IDS_H 99 const Str &child_name_,
100 const Str &key_for_parent_id_);
ShPtr< Element > ElPtr
An alias for a shared pointer of Element class.
AddChildIDs adds id property of a child Element object to a parent Element object.
Adder adds new properties to a non-empty Element object.
std::function< bool(const Json &)> JsonToBoolFunc
An alias for a function accepts a Json object and returns a bool.
std::string Str
Str is an alias for string.
nlohmann::json Json
Json is an alias for nlohmann::json.
This file has a definition of Adder class, which is a subclass of Updater class.
virtual void compute_impl(Json &data, JsonToVoidFunc check_required_keys, JsonToBoolFunc check_optional_keys) override
This method overrides Updater::compute_impl.
std::function< void(const Json &)> JsonToVoidFunc
An alias for a function accepts a Json object.
AddChildIDs(const ElPtr &elem, const Str &child_name_, const Str &key_for_parent_id_)
Constructor of AddChildIDs class.