| 37 | #include "lasdefinitions.hpp" |
| 38 | |
| 39 | ValidateWriter* FormatWriterFactory::createWriter(I32 format, FILE* file) { |
| 40 | switch (format) { |
| 41 | case LAS_TOOLS_FORMAT_CSV: |
| 42 | return new ValidateCsvWriter(file); |
| 43 | case LAS_TOOLS_FORMAT_XML: |
| 44 | return new ValidateXmlWriter(file); |
| 45 | case LAS_TOOLS_FORMAT_TXT: |
| 46 | return new ValidateTxtWriter(file); |
| 47 | default : |
| 48 | return new ValidateJsonWriter(file); |
| 49 | } |
| 50 | return nullptr; |
| 51 | } |
nothing calls this directly
no outgoing calls
no test coverage detected