MCPcopy Create free account
hub / github.com/apache/qpid-proton / validate

Function validate

cpp/src/connect_config.cpp:68–72  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

66}
67
68Value validate(ValueType t, const Value& v, const string& name) {
69 if (v.type() != t)
70 throw err(msg() << " '" << name << "' expected " << t << ", found " << v.type());
71 return v;
72}
73
74Value get(ValueType t, const Value& obj, const char *key, const Value& dflt=Value()) {
75 Value v = obj.get(key, dflt);

Callers 6

getFunction · 0.85
parse_saslFunction · 0.85
parseFunction · 0.85
parseMethod · 0.85
parseMethod · 0.85
validateMethod · 0.85

Calls 3

errFunction · 0.85
msgClass · 0.85
typeMethod · 0.45

Tested by

no test coverage detected