| 1243 | // Variadic arguments are the bind arguments if any, to replace '?' placeholders in the statement string |
| 1244 | template <typename... Args> |
| 1245 | int execute(const std::string& statement, Args&&... args) const { |
| 1246 | // copied in here to avoid including sqlite3 header everywhere |
| 1247 | constexpr auto SQLITE_ERROR = 1; |
| 1248 | auto code = SQLITE_ERROR; |
| 1249 | if (m_db) { |
| 1250 | PreparedStatement stmt(statement, m_db, false, args...); |
| 1251 | code = stmt.execute(); |
| 1252 | } |
| 1253 | return code; |
| 1254 | } |
| 1255 | |
| 1256 | /// Returns the summary data for each install location and fuel type found in report variables |
| 1257 | std::vector<openstudio::SummaryData> getSummaryData() const; |