| 64 | } |
| 65 | |
| 66 | PDAL_EXPORT int open(const std::string& filename) |
| 67 | { |
| 68 | if (m_stream) |
| 69 | return -1; |
| 70 | m_stream = FileUtils::createFile(filename); |
| 71 | m_fstream = dynamic_cast<std::ofstream*>(m_stream); |
| 72 | |
| 73 | return 0; |
| 74 | } |
| 75 | PDAL_EXPORT void close() |
| 76 | { |
| 77 | flush(); |
no test coverage detected