void BasementJob::getFiles(const Files &t_files) const { if (!m_idf) { try { m_idf = t_files.getLastByFilename("BasementGHTIn.idf"); m_expandedidf = t_files.getLastByExtension("idf"); } catch (const std::runtime_error&) { } } }
void SlabJob::getFiles(const Files &t_files) const { if (!m_idf) { try { m_idf = t_files.getLastByFilename("GHTIn.idf"); LOG(Debug, "GHT Idf loaded: " << openstudio::toString(m_idf->fullPath)); m_expandedidf = t_files.getLastByExtension("idf"); LOG(Debug, "Expanded Idf loaded: " << openstudio::toString(m_expandedidf->fullPath)); } catch (const std::exception &) { } } }
OpenStudioPostProcessJob::OpenStudioPostProcessJob(const UUID &t_uuid, const Tools &tools, const JobParams ¶ms, const Files &files, const JobState &t_restoreData) : Job_Impl(t_uuid, JobType::OpenStudioPostProcess, tools, params, files, t_restoreData) { try { m_sql = files.getLastByFilename("eplusout.sql"); resetFiles(m_files, m_sql); } catch (const std::runtime_error &) { } // what should this be? m_description = buildDescription("sql"); }
void DakotaJob::getFiles(const Files &t_files, const JobParams &t_params) const { // This function works with mutable local objects // because it's used to cache looked up variables if (!m_inFile) { try { // first, see if we can get a filename that was specifically requested by the job creation m_inFile = t_files.getLastByFilename(t_params.get("filename").value); } catch (const std::runtime_error &) { // if not, try to get any old .in that was passed in try { m_inFile = t_files.getLastByExtension("in"); } catch (const std::runtime_error &) {} } } }