MCPcopy Create free account
hub / github.com/LAStools/LAStools / createWriter

Method createWriter

src/format_writer.cpp:39–51  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

37#include "lasdefinitions.hpp"
38
39ValidateWriter* 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}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected