| 430 | } |
| 431 | |
| 432 | std::vector<openstudio::path> WorkflowJSON_Impl::absoluteFilePaths() const { |
| 433 | std::vector<openstudio::path> result; |
| 434 | for (const auto& path : filePaths()) { |
| 435 | if (path.is_absolute()) { |
| 436 | result.push_back(path); |
| 437 | } else { |
| 438 | result.push_back(canonicalOrAbsolute(path, absoluteRootDir())); |
| 439 | } |
| 440 | } |
| 441 | return result; |
| 442 | } |
| 443 | |
| 444 | bool WorkflowJSON_Impl::addFilePath(const openstudio::path& path) { |
| 445 | if (!m_value.isMember("file_paths") || !m_value["file_paths"].isArray()) { |