3 IGNORE_FALLTHROUGH_START
4 #include "rapidjson/document.h" 5 #include "rapidjson/error/en.h" 9 std::vector<std::string>
19 std::string
const& md)
27 : checkSyntax_{config().checkSyntax()}
31 if (config().applicationFamily(appFam)) {
36 if (config().applicationVersion(appVer)) {
48 config().runType(rt)) {
53 if (config().group(g)) {
58 if (config().processID(pid)) {
65 std::string
const&
value)
71 rapidjson::Document
d;
72 std::string checkString(
"{ ");
73 checkString += cet::canonical_string(key);
77 if (d.Parse(checkString.c_str()).HasParseError()) {
78 auto const nSpaces = d.GetErrorOffset();
80 <<
"art::FileCatalogMetadata::addMetadata() JSON syntax error:\n" 81 << rapidjson::GetParseError_En(d.GetParseError())
82 <<
" Faulty key/value clause:\n" 83 << checkString <<
"\n" 84 << (nSpaces ? std::string(nSpaces,
'-') :
"") <<
"^\n";
88 md_.emplace_back(key, value);
#define DEFINE_ART_SERVICE(svc)
bool search_translated_all(std::vector< std::string > const &s, std::string const &md)
cet::coded_exception< errors::ErrorCodes, ExceptionDetail::translate > Exception
std::string value(boost::any const &)
std::vector< std::string > maybeTranslate(std::vector< std::string > names)