MCPcopy Create free account
hub / github.com/NatLabRockies/OpenStudio / internal_state

Method internal_state

src/cli/MeasureManager.cpp:692–703  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

690}
691
692MeasureManagerServer::ResponseType MeasureManagerServer::internal_state([[maybe_unused]] const web::json::value& body) {
693 Json::Value result;
694 result["status"] = "running";
695 result["my_measures_dir"] = my_measures_dir.generic_string();
696
697 auto internalState = m_measureManager.internalState();
698 for (const auto& key : internalState.getMemberNames()) {
699 result[key] = internalState[key];
700 }
701
702 return {web::http::status_codes::OK, toWebJSON(result)};
703}
704
705MeasureManagerServer::ResponseType MeasureManagerServer::reset([[maybe_unused]] const web::json::value& body) {
706 m_measureManager.reset();

Callers

nothing calls this directly

Calls 2

toWebJSONFunction · 0.85
internalStateMethod · 0.80

Tested by

no test coverage detected