1/* -*-c++-*- OpenSceneGraph - Copyright (C) 1998-2008 Robert Osfield
3 * This application is open source and may be redistributed and/or modified
4 * freely and without restriction, both in commercial and non commercial applications,
5 * as long as this copyright notice is maintained.
7 * This application is distributed in the hope that it will be useful,
8 * but WITHOUT ANY WARRANTY; without even the implied warranty of
9 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
15#include <osgDB/Export>
16#include <osgDB/ReaderWriter>
18#include <osg/Referenced>
27typedef std::list<std::string> FileNameList;
29FileNameList OSGDB_EXPORT listAllAvailablePlugins();
31class ReaderWriterInfo : public osg::Referenced
36 features(ReaderWriter::FEATURE_NONE) {}
39 std::string description;
40 ReaderWriter::FormatDescriptionMap protocols;
41 ReaderWriter::FormatDescriptionMap extensions;
42 ReaderWriter::FormatDescriptionMap options;
43 ReaderWriter::Features features;
47 virtual ~ReaderWriterInfo() {}
50typedef std::list< osg::ref_ptr<ReaderWriterInfo> > ReaderWriterInfoList;
52bool OSGDB_EXPORT queryPlugin(const std::string& fileName, ReaderWriterInfoList& infoList);
54bool OSGDB_EXPORT outputPluginDetails(std::ostream& out, const std::string& fileName);