| 65 | } |
| 66 | |
| 67 | std::string BCLFileReference::fileName() const { |
| 68 | |
| 69 | std::string usageType = this->usageType(); |
| 70 | openstudio::path baseDir = m_measureRootDir; |
| 71 | if (usageType == "doc") { |
| 72 | baseDir /= "docs"; |
| 73 | } else if (usageType == "resource") { |
| 74 | baseDir /= "resources"; |
| 75 | } else if (usageType == "test") { |
| 76 | baseDir /= "tests"; |
| 77 | } |
| 78 | |
| 79 | return toString(openstudio::filesystem::relative(m_path, baseDir)); |
| 80 | } |
| 81 | |
| 82 | std::string BCLFileReference::fileType() const { |
| 83 | return openstudio::replace(openstudio::toString(m_path.extension()), ".", ""); |