pdal::StageFactory
#
-
class 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
-
static std::string inferReaderDriver(const std::string &filename)#
Infer the reader to use based on a filename.
Find the default reader for a file.
- Parameters:
filename – Filename that should be analyzed to determine a driver.
filename – Filename for which to infer a reader.
- Returns:
Driver name or empty string if no reader can be inferred from the filename.
- Returns:
Name of the reader driver associated with the file.
-
static std::string inferWriterDriver(const std::string &filename)#
Infer the writer to use based on filename extension.
Find the default writer for a file.
- Parameters:
filename – Filename for which to infer a writer.
- Returns:
Driver name or empty string if no writer can be inferred from the filename.
- Returns:
Name of the writer driver associated with the file.
-
StageFactory(bool ignored = true)#