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

Method valueAsString

src/utilities/data/Variant.cpp:52–57  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

50}
51
52std::string Variant::valueAsString() const {
53 if (m_type != VariantType::String) {
54 LOG_AND_THROW("Variant does not hold a string");
55 }
56 return std::get<std::string>(m_value);
57}
58
59// helper constant for the visitor below so we static assert we didn't miss a type
60template <class>

Callers 15

fromAttributeMethod · 0.45
startDateMethod · 0.45
consumptionUnitMethod · 0.45
peakDemandUnitMethod · 0.45
nameMethod · 0.45
fuelTypeMethod · 0.45
meterInstallLocationMethod · 0.45
meterEndUseCategoryMethod · 0.45
meterSpecificEndUseMethod · 0.45
Variant.cppFile · 0.45
TEST_FFunction · 0.45

Calls

no outgoing calls

Tested by 3

TEST_FFunction · 0.36
TEST_FFunction · 0.36
TEST_FFunction · 0.36