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

Function isInSystem

src/utilities/units/UnitFactory.cpp:619–625  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

617}
618
619bool isInSystem(const std::string& unitString, UnitSystem system) {
620 OptionalUnit unit = createUnit(unitString, system);
621 if (unit && ((unit->system() == system) || (system == UnitSystem::Mixed))) {
622 return true;
623 }
624 return false;
625}
626
627bool containsRegisteredBaseUnit(const std::string& unitString) {
628 if (isUnitString(unitString)) {

Callers 1

TEST_FFunction · 0.85

Calls 2

createUnitFunction · 0.85
systemMethod · 0.45

Tested by 1

TEST_FFunction · 0.68