当前位置: 首页>>代码示例>>C++>>正文


C++ OSOptionalQuantity::get方法代码示例

本文整理汇总了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();
 }
开发者ID:pepsi7959,项目名称:OpenStudio,代码行数:6,代码来源:SizingPlant.cpp

示例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();
 }
开发者ID:MatthewSteen,项目名称:OpenStudio,代码行数:6,代码来源:OutputControlReportingTolerances.cpp

示例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;
  }
开发者ID:ChengXinDL,项目名称:OpenStudio,代码行数:17,代码来源:BoilerSteam.cpp

示例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();
 }
开发者ID:MatthewSteen,项目名称:OpenStudio,代码行数:6,代码来源:RefractionExtinctionGlazing.cpp

示例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();
 }
开发者ID:pepsi7959,项目名称:OpenStudio,代码行数:6,代码来源:ZoneHVACBaseboardConvectiveElectric.cpp

示例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();
 }
开发者ID:MatthewSteen,项目名称:OpenStudio,代码行数:6,代码来源:RefractionExtinctionGlazing.cpp

示例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();
 }
开发者ID:MatthewSteen,项目名称:OpenStudio,代码行数:6,代码来源:RefractionExtinctionGlazing.cpp

示例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();
 }
开发者ID:ChengXinDL,项目名称:OpenStudio,代码行数:5,代码来源:ConstructionWithInternalSource.cpp

示例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();
 }
开发者ID:ChengXinDL,项目名称:OpenStudio,代码行数:6,代码来源:SetpointManagerOutdoorAirReset.cpp

示例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;
 }
开发者ID:ChengXinDL,项目名称:OpenStudio,代码行数:14,代码来源:AirTerminalSingleDuctUncontrolled.cpp

示例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();
 }
开发者ID:MatthewSteen,项目名称:OpenStudio,代码行数:6,代码来源:SpaceInfiltrationEffectiveLeakageArea.cpp

示例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;
}
开发者ID:jbl5088,项目名称:OpenStudio,代码行数:14,代码来源:SiteWaterMainsTemperature.cpp

示例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;
}
开发者ID:jbl5088,项目名称:OpenStudio,代码行数:16,代码来源:SiteWaterMainsTemperature.cpp

示例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();
 }
开发者ID:pepsi7959,项目名称:OpenStudio,代码行数:6,代码来源:SizingPlant.cpp

示例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();
 }
开发者ID:CUEBoxer,项目名称:OpenStudio,代码行数:6,代码来源:MasslessOpaqueMaterial.cpp


注:本文中的OSOptionalQuantity::get方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。