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

Method setOutputVariableorMeterName

src/model/MeterCustom.cpp:163–174  ·  view source on GitHub ↗

Set the Output Variable of Meter Name at index. Indexing starts at 0. */

Source from the content-addressed store, hash-verified

161
162 /** Set the Output Variable of Meter Name at index. Indexing starts at 0. */
163 bool MeterCustom_Impl::setOutputVariableorMeterName(unsigned index, const std::string& str) {
164 IdfExtensibleGroup eg = getExtensibleGroup(index);
165 if (!eg.empty()) {
166 return eg.setString(OS_Meter_CustomExtensibleFields::OutputVariableorMeterName, str);
167 } else {
168 StringVector values(2u);
169 values[OS_Meter_CustomExtensibleFields::OutputVariableorMeterName] = str;
170 return !insertExtensibleGroup(index, values).empty();
171 }
172 OS_ASSERT(false);
173 return false;
174 }
175
176 } // namespace detail
177

Callers 2

TEST_FFunction · 0.45
TEST_FFunction · 0.45

Calls 2

emptyMethod · 0.45
setStringMethod · 0.45

Tested by 2

TEST_FFunction · 0.36
TEST_FFunction · 0.36