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

Function execAndReturnFirstInt

src/utilities/sql/SqlFile.hpp:1247–1253  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1245 // Variadic arguments are the bind arguments if any, to replace '?' placeholders in the statement string
1246 template <typename... Args>
1247 boost::optional<int> execAndReturnFirstInt(const std::string& statement, Args&&... args) const {
1248 boost::optional<int> result;
1249 if (m_impl) {
1250 result = m_impl->execAndReturnFirstInt(statement, std::forward<Args>(args)...);
1251 }
1252 return result;
1253 }
1254
1255 boost::optional<int> execAndReturnFirstInt(const std::string& statement) const {
1256 // Forward to the variadic one. This one is for the ruby bindings

Callers 5

getNextIndexMethod · 0.70
isValidConnectionMethod · 0.70
insertIlluminanceMapMethod · 0.70
environmentTypeMethod · 0.70
illuminanceMapIndexMethod · 0.70

Calls 1

execAndReturnFirstIntMethod · 0.80

Tested by

no test coverage detected