| 142 | |
| 143 | |
| 144 | StringList StageExtensions::extensions(const std::string& stage) |
| 145 | { |
| 146 | StringList exts; |
| 147 | |
| 148 | std::lock_guard<std::mutex> lock(m_mutex); |
| 149 | |
| 150 | if (Utils::startsWith(stage, "readers.")) |
| 151 | { |
| 152 | for (auto& entry : m_readers) |
| 153 | if (entry.second == stage) |
| 154 | exts.push_back(entry.first); |
| 155 | } |
| 156 | else if (Utils::startsWith(stage, "writers.")) |
| 157 | { |
| 158 | for (auto& entry : m_writers) |
| 159 | if (entry.second == stage) |
| 160 | exts.push_back(entry.first); |
| 161 | } |
| 162 | return exts; |
| 163 | } |
| 164 | |
| 165 | } // namespace pdal |
no test coverage detected