MCPcopy Create free account
hub / github.com/cinemast/libjson-rpc-cpp / GetNamedParameters

Method GetNamedParameters

src/jsonrpccpp/common/specificationparser.cpp:121–126  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

119 }
120}
121void SpecificationParser::GetNamedParameters(Json::Value &val, Procedure &result) {
122 vector<string> parameters = val[KEY_SPEC_PROCEDURE_PARAMETERS].getMemberNames();
123 for (unsigned int i = 0; i < parameters.size(); ++i) {
124 result.AddParameter(parameters.at(i), toJsonType(val[KEY_SPEC_PROCEDURE_PARAMETERS][parameters.at(i)]));
125 }
126}
127
128string SpecificationParser::GetProcedureName(Json::Value &signature) {
129 if (signature[KEY_SPEC_PROCEDURE_NAME].isString())

Callers

nothing calls this directly

Calls 2

sizeMethod · 0.80
AddParameterMethod · 0.80

Tested by

no test coverage detected