#include <numeric>
+using std::function;
using std::pair;
using std::make_pair;
using std::string;
return offset;
}
+
+void
+CinemaList::screens(function<void (CinemaID, ScreenID, dcpomatic::Screen const& screen)> callback) const
+{
+ SQLiteStatement statement(_db, _screens.select(""));
+ statement.execute([this, &callback](SQLiteStatement& statement) {
+ auto const screen_id = statement.column_int64(0);
+ callback(statement.column_int64(1), screen_id, screen_from_result(statement, screen_id));
+ });
+
+}
+
std::vector<std::pair<ScreenID, dcpomatic::Screen>> screens(CinemaID cinema_id) const;
std::vector<std::pair<ScreenID, dcpomatic::Screen>> screens_by_cinema_and_name(CinemaID id, std::string const& name) const;
+ void screens(std::function<void (CinemaID, ScreenID, dcpomatic::Screen const&)> callback) const;
+
boost::optional<dcp::UTCOffset> unique_utc_offset(std::set<CinemaID> const& cinemas);
private: