pdal::StageFactory
¶
-
class
pdal
::
StageFactory
¶ This class provides a mechanism for creating Stage objects given a driver name.
Creates stages are owned by the factory and destroyed when the factory is destroyed. Stages can be explicitly destroyed with destroyStage() if desired.
- Note
Stage creation is thread-safe.
Public Functions
-
StageFactory
(bool ignored = true)¶ Create a stage factory.
- Parameters
ignored
: Ignored argument.
Public Static Functions
-
std::string
inferReaderDriver
(const std::string &filename)¶ Infer the reader to use based on a filename.
Find the default reader for a file.
- Return
Driver name or empty string if no reader can be inferred from the filename.
- Return
Name of the reader driver associated with the file.
- Parameters
filename
: Filename that should be analyzed to determine a driver.
- Parameters
filename
: Filename for which to infer a reader.
-
std::string
inferWriterDriver
(const std::string &filename)¶ Infer the writer to use based on filename extension.
Find the default writer for a file.
- Return
Driver name or empty string if no writer can be inferred from the filename.
- Return
Name of the writer driver associated with the file.
- Parameters
filename
: Filename for which to infer a writer.