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

Method installLocationType

src/model/OutputMeter.cpp:168–179  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

166 }
167
168 boost::optional<InstallLocationType> OutputMeter_Impl::installLocationType() const {
169 boost::optional<InstallLocationType> result;
170 std::string myName = name();
171 boost::smatch matches;
172 if (boost::regex_search(myName, matches, OutputMeter::meterRegex())) {
173 if (matches[4].matched) {
174 result = InstallLocationType(std::string(matches[4].first, matches[4].second));
175 }
176 }
177
178 return result;
179 }
180
181 boost::optional<std::string> OutputMeter_Impl::specificInstallLocation() const {
182 boost::optional<std::string> result;

Callers 6

parentMethod · 0.95
metersMethod · 0.80
metersMethod · 0.80
TEST_FFunction · 0.80
TEST_FFunction · 0.80
TEST_FFunction · 0.80

Calls 2

nameClass · 0.85
InstallLocationTypeClass · 0.70

Tested by 3

TEST_FFunction · 0.64
TEST_FFunction · 0.64
TEST_FFunction · 0.64