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

Method endUseType

src/model/OutputMeter.cpp:142–153  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

140 }
141
142 boost::optional<EndUseType> OutputMeter_Impl::endUseType() const {
143 boost::optional<EndUseType> result;
144 std::string myName = name();
145 boost::smatch matches;
146 if (boost::regex_search(myName, matches, OutputMeter::meterRegex())) {
147 if (matches[2].matched) {
148 result = EndUseType(std::string(matches[2].first, matches[2].second));
149 }
150 }
151
152 return result;
153 }
154
155 boost::optional<FuelType> OutputMeter_Impl::fuelType() const {
156 boost::optional<FuelType> result;

Callers 3

getMeterByFuelTypeMethod · 0.80
TEST_FFunction · 0.80
TEST_FFunction · 0.80

Calls 2

nameClass · 0.85
EndUseTypeClass · 0.70

Tested by 2

TEST_FFunction · 0.64
TEST_FFunction · 0.64