| 245 | |
| 246 | |
| 247 | inline void writeProgress(int fd, const std::string& type, |
| 248 | const std::string& text) |
| 249 | { |
| 250 | #ifdef _WIN32 |
| 251 | #else |
| 252 | #pragma GCC diagnostic push |
| 253 | #pragma GCC diagnostic ignored "-Wunused-result" |
| 254 | if (fd >= 0) |
| 255 | { |
| 256 | std::string out = type + ':' + text + '\n'; |
| 257 | |
| 258 | // This may error, but we don't care. |
| 259 | write(fd, out.c_str(), out.length()); |
| 260 | } |
| 261 | #pragma GCC diagnostic pop |
| 262 | #endif |
| 263 | } |
| 264 | |
| 265 | std::string dllDir(); |
| 266 | std::string PDAL_EXPORT toJSON(const MetadataNode& m); |