Added --plugins and --formats query support into osgconv to help with querying the

available plugins and the file formats/protocols they support
This commit is contained in:
Robert Osfield
2008-07-14 20:22:38 +00:00
parent 5ab4af80c5
commit f22c06acbe
3 changed files with 96 additions and 3 deletions

View File

@@ -22,6 +22,20 @@ typedef std::list<std::string> FileNameList;
FileNameList listAllAvailablePlugins();
class ReaderWriterInfo : public osg::Referenced
{
public:
std::string plugin;
std::string description;
ReaderWriter::FormatDescriptionMap protocols;
ReaderWriter::FormatDescriptionMap extensions;
ReaderWriter::FormatDescriptionMap options;
};
typedef std::list< osg::ref_ptr<ReaderWriterInfo> > ReaderWriterInfoList;
bool queryPlugin(const std::string& fileName, ReaderWriterInfoList& infoList);
}