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

Method toJSON

src/measure/OSOutput.cpp:107–122  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

105 }
106
107 Json::Value OSOutput::toJSON() const {
108 Json::Value root;
109 root["name"] = m_name;
110 root["display_name"] = m_displayName;
111 root["m_shortName"] = m_shortName;
112 if (m_description) {
113 root["description"] = *m_description;
114 }
115 root["type"] = m_type.valueName();
116 if (m_units) {
117 root["units"] = *m_units;
118 }
119 root["model_dependent"] = m_modelDependent;
120
121 return root;
122 }
123
124 std::string OSOutput::toJSONString() const {
125 return toJSON().toStyledString();

Callers 15

test_jsonFunction · 0.45
test_epJSONMethod · 0.45
updateFloorplanJSMethod · 0.45
TEST_FFunction · 0.45
TEST_FFunction · 0.45
TEST_FFunction · 0.45
internalStateMethod · 0.45
download_bcl_measureMethod · 0.45
bcl_measuresMethod · 0.45
update_measuresMethod · 0.45

Calls 1

valueNameMethod · 0.80

Tested by 5

test_jsonFunction · 0.36
test_epJSONMethod · 0.36
TEST_FFunction · 0.36
TEST_FFunction · 0.36
TEST_FFunction · 0.36