[pdal-commits] [PDAL/PDAL] f1094b: Load only one plugin when guessing plugin names
GitHub
noreply at github.com
Sun Apr 26 04:28:12 PDT 2015
Branch: refs/heads/missing-plugin-cleanup
Home: https://github.com/PDAL/PDAL
Commit: f1094b6884551409a5db3f6699a5f2710faf6f7e
https://github.com/PDAL/PDAL/commit/f1094b6884551409a5db3f6699a5f2710faf6f7e
Author: Pete Gadomski <pete.gadomski at gmail.com>
Date: 2015-04-25 (Sat, 25 Apr 2015)
Changed paths:
M src/PluginManager.cpp
Log Message:
-----------
Load only one plugin when guessing plugin names
In `PluginManager::guessLoadByPath`, the driverName was not being
entirely used when loading plugins. Only the plugin type (filter,
reader, writer) was used. This patch checks the actual name of the
driver (e.g. hexbin) against the filename of the library, and only loads
the plugin if the name matches.
Since a plugin only needs to be loaded once, the return value of the
`loadByPath` call is returned from `guessLoadByPath`. If no plugins are
found, the `guessLoadByPath` now returns -1.
More information about the pdal-commits
mailing list