本文整理汇总了C++中OSOptionalQuantity::get方法的典型用法代码示例。如果您正苦于以下问题:C++ OSOptionalQuantity::get方法的具体用法?C++ OSOptionalQuantity::get怎么用?C++ OSOptionalQuantity::get使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类OSOptionalQuantity
的用法示例。
在下文中一共展示了OSOptionalQuantity::get方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: getLoopDesignTemperatureDifference
Quantity SizingPlant_Impl::getLoopDesignTemperatureDifference(bool returnIP) const {
OptionalDouble value = loopDesignTemperatureDifference();
OSOptionalQuantity result = getQuantityFromDouble(OS_Sizing_PlantFields::LoopDesignTemperatureDifference, value, returnIP);
OS_ASSERT(result.isSet());
return result.get();
}
示例2: getToleranceforTimeHeatingSetpointNotMet
Quantity OutputControlReportingTolerances_Impl::getToleranceforTimeHeatingSetpointNotMet(bool returnIP) const {
OptionalDouble value = toleranceforTimeHeatingSetpointNotMet();
OSOptionalQuantity result = getQuantityFromDouble(OS_OutputControl_ReportingTolerancesFields::ToleranceforTimeHeatingSetpointNotMet, value, returnIP);
OS_ASSERT(result.isSet());
return result.get();
}
示例3: setDesignOutletSteamTemperature
bool BoilerSteam_Impl::setDesignOutletSteamTemperature(const OSOptionalQuantity& designOutletSteamTemperature) {
bool result(false);
OptionalDouble value;
if (designOutletSteamTemperature.isSet()) {
value = getDoubleFromQuantity(OS_Boiler_SteamFields::DesignOutletSteamTemperature,designOutletSteamTemperature.get());
if (value) {
setDesignOutletSteamTemperature(value);
result = true;
}
}
else {
setDesignOutletSteamTemperature(value);
result = true;
}
return result;
}
示例4: getSolarIndexofRefraction
Quantity RefractionExtinctionGlazing_Impl::getSolarIndexofRefraction(bool returnIP) const {
OptionalDouble value = solarIndexofRefraction();
OSOptionalQuantity result = getQuantityFromDouble(OS_WindowMaterial_Glazing_RefractionExtinctionMethodFields::SolarIndexofRefraction, value, returnIP);
OS_ASSERT(result.isSet());
return result.get();
}
示例5: getEfficiency
Quantity ZoneHVACBaseboardConvectiveElectric_Impl::getEfficiency(bool returnIP) const {
OptionalDouble value = efficiency();
OSOptionalQuantity result = getQuantityFromDouble(OS_ZoneHVAC_Baseboard_Convective_ElectricFields::Efficiency, value, returnIP);
OS_ASSERT(result.isSet());
return result.get();
}
示例6: getInfraredTransmittanceatNormalIncidence
Quantity RefractionExtinctionGlazing_Impl::getInfraredTransmittanceatNormalIncidence(bool returnIP) const {
OptionalDouble value = infraredTransmittanceatNormalIncidence();
OSOptionalQuantity result = getQuantityFromDouble(OS_WindowMaterial_Glazing_RefractionExtinctionMethodFields::InfraredTransmittanceatNormalIncidence, value, returnIP);
OS_ASSERT(result.isSet());
return result.get();
}
示例7: getDirtCorrectionFactorforSolarandVisibleTransmittance
Quantity RefractionExtinctionGlazing_Impl::getDirtCorrectionFactorforSolarandVisibleTransmittance(bool returnIP) const {
OptionalDouble value = dirtCorrectionFactorforSolarandVisibleTransmittance();
OSOptionalQuantity result = getQuantityFromDouble(OS_WindowMaterial_Glazing_RefractionExtinctionMethodFields::DirtCorrectionFactorforSolarandVisibleTransmittance, value, returnIP);
OS_ASSERT(result.isSet());
return result.get();
}
示例8: getTubeSpacing
Quantity ConstructionWithInternalSource_Impl::getTubeSpacing(bool returnIP) const {
OSOptionalQuantity value = getQuantity(OS_Construction_InternalSourceFields::TubeSpacing,true,returnIP);
OS_ASSERT(value.isSet());
return value.get();
}
示例9: getOutdoorHighTemperature
Quantity SetpointManagerOutdoorAirReset_Impl::getOutdoorHighTemperature(bool returnIP) const {
OptionalDouble value = outdoorHighTemperature();
OSOptionalQuantity result = getQuantityFromDouble(OS_SetpointManager_OutdoorAirResetFields::OutdoorHighTemperature, value, returnIP);
OS_ASSERT(result.isSet());
return result.get();
}
示例10: setMaximumAirFlowRate
bool AirTerminalSingleDuctUncontrolled_Impl::setMaximumAirFlowRate(const OSOptionalQuantity& maximumAirFlowRate) {
bool result(false);
OptionalDouble value;
if (maximumAirFlowRate.isSet()) {
value = getDoubleFromQuantity(OS_AirTerminal_SingleDuct_UncontrolledFields::MaximumAirFlowRate,maximumAirFlowRate.get());
if (value) {
result = setMaximumAirFlowRate(value);
}
}
else {
result = setMaximumAirFlowRate(value);
}
return result;
}
示例11: getWindCoefficient
Quantity SpaceInfiltrationEffectiveLeakageArea_Impl::getWindCoefficient(bool returnIP) const {
OptionalDouble value = windCoefficient();
OSOptionalQuantity result = getQuantityFromDouble(OS_SpaceInfiltration_EffectiveLeakageAreaFields::WindCoefficient, value, returnIP);
OS_ASSERT(result.isSet());
return result.get();
}
示例12: setMaximumDifferenceInMonthlyAverageOutdoorAirTemperatures
bool SiteWaterMainsTemperature_Impl::setMaximumDifferenceInMonthlyAverageOutdoorAirTemperatures(const OSOptionalQuantity& maximumDifferenceInMonthlyAverageOutdoorAirTemperatures) {
bool result(false);
OptionalDouble value;
if (maximumDifferenceInMonthlyAverageOutdoorAirTemperatures.isSet()) {
value = getDoubleFromQuantity(OS_Site_WaterMainsTemperatureFields::MaximumDifferenceInMonthlyAverageOutdoorAirTemperatures,maximumDifferenceInMonthlyAverageOutdoorAirTemperatures.get());
if (value) {
result = setMaximumDifferenceInMonthlyAverageOutdoorAirTemperatures(value);
}
}
else {
result = setMaximumDifferenceInMonthlyAverageOutdoorAirTemperatures(value);
}
return result;
}
示例13: setAnnualAverageOutdoorAirTemperature
bool SiteWaterMainsTemperature_Impl::setAnnualAverageOutdoorAirTemperature(const OSOptionalQuantity& annualAverageOutdoorAirTemperature) {
bool result(false);
OptionalDouble value;
if (annualAverageOutdoorAirTemperature.isSet()) {
value = getDoubleFromQuantity(OS_Site_WaterMainsTemperatureFields::AnnualAverageOutdoorAirTemperature,annualAverageOutdoorAirTemperature.get());
if (value) {
setAnnualAverageOutdoorAirTemperature(value);
result = true;
}
}
else {
setAnnualAverageOutdoorAirTemperature(value);
result = true;
}
return result;
}
示例14: getDesignLoopExitTemperature
Quantity SizingPlant_Impl::getDesignLoopExitTemperature(bool returnIP) const {
OptionalDouble value = designLoopExitTemperature();
OSOptionalQuantity result = getQuantityFromDouble(OS_Sizing_PlantFields::DesignLoopExitTemperature, value, returnIP);
OS_ASSERT(result.isSet());
return result.get();
}
示例15: getSpecificHeat
Quantity MasslessOpaqueMaterial_Impl::getSpecificHeat(bool returnIP) const {
OptionalDouble value = specificHeat();
OSOptionalQuantity result = getQuantityFromDouble(OS_MaterialFields::SpecificHeat, value, returnIP);
OS_ASSERT(result.isSet());
return result.get();
}