13#include <fhsim/ISimObjectLogger.h>
14#include <fhsim/InputReader.h>
18namespace removed_attributes
29inline void WarnIfPresent(InputReader& reader,
const AttributePath& path,
const std::vector<std::string>& removed,
30 const std::string& release, ISimObjectLogger* logger)
34 StringPairVector attributes;
35 if (!reader.GetAllAttributes(attributes, path))
37 for (
const auto& [name, value] : attributes) {
38 if (std::find(removed.begin(), removed.end(), name) != removed.end())
39 logger->LogInfo(
"Warning: the attribute " + name +
"=\"" + value +
"\" in " + reader.GetFileAndPath() +
" is ignored; it was removed in " + release +
".");