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

Function execAndReturnFirstDouble

src/utilities/sql/SqlFile.hpp:1231–1237  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1229 // Variadic arguments are the bind arguments if any, to replace '?' placeholders in the statement string
1230 template <typename... Args>
1231 boost::optional<double> execAndReturnFirstDouble(const std::string& statement, Args&&... args) const {
1232 boost::optional<double> result;
1233 if (m_impl) {
1234 result = m_impl->execAndReturnFirstDouble(statement, std::forward<Args>(args)...);
1235 }
1236 return result;
1237 }
1238
1239 boost::optional<double> execAndReturnFirstDouble(const std::string& statement) const {
1240 // Forward to the variadic one. This one is for the ruby bindings

Callers 15

hoursSimulatedMethod · 0.70
netSiteEnergyMethod · 0.70
netSourceEnergyMethod · 0.70
totalSiteEnergyMethod · 0.70
totalSourceEnergyMethod · 0.70
annualTotalCostMethod · 0.70
economicsEnergyCostMethod · 0.70

Calls 1

Tested by

no test coverage detected