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

Method illuminanceMapIndex

src/utilities/sql/SqlFile_Impl.cpp:4244–4252  ·  view source on GitHub ↗

find the illuminance map index by name

Source from the content-addressed store, hash-verified

4242
4243 // find the illuminance map index by name
4244 boost::optional<int> SqlFile_Impl::illuminanceMapIndex(const std::string& name) const {
4245 // TODO: haven't figured out how to bind properly to the LIKE statement, tried
4246 // LIKE ?
4247 // LIKE %?% => sqlite3_prepare_v2 fails
4248 // LIKE %%?%%
4249 // LIKE '%?%' (not recognized as a placeholder)
4250 const std::string& s = "SELECT MapNumber FROM DaylightMaps WHERE MapName LIKE '%" + name + "%'";
4251 return execAndReturnFirstInt(s);
4252 }
4253
4254 void SqlFile_Impl::mf_makeConsistent(std::vector<SqlFileTimeSeriesQuery>& queries) {
4255 // make each query consistent, or delete it if there is no possibility of a matching TimeSeries

Callers

nothing calls this directly

Calls 1

execAndReturnFirstIntFunction · 0.70

Tested by

no test coverage detected