|
Revision 13041, 1.5 kB
(checked in by robert, 14 months ago)
|
|
Ran script to remove trailing spaces and tabs
|
-
Property svn:eol-style set to
native
-
Property svn:keywords set to
Author Date Id Revision
|
| Line | |
|---|
| 1 | /* -*-c++-*- OpenSceneGraph - Copyright (C) 1998-2008 Robert Osfield |
|---|
| 2 | * |
|---|
| 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. |
|---|
| 6 | * |
|---|
| 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. |
|---|
| 10 | */ |
|---|
| 11 | |
|---|
| 12 | #ifndef PLUGINQUERY_H |
|---|
| 13 | #define PLUGINQUERY_H |
|---|
| 14 | |
|---|
| 15 | #include <osgDB/Export> |
|---|
| 16 | #include <osgDB/ReaderWriter> |
|---|
| 17 | |
|---|
| 18 | #include <osg/Referenced> |
|---|
| 19 | #include <osg/ref_ptr> |
|---|
| 20 | |
|---|
| 21 | #include <list> |
|---|
| 22 | #include <string> |
|---|
| 23 | |
|---|
| 24 | namespace osgDB |
|---|
| 25 | { |
|---|
| 26 | |
|---|
| 27 | typedef std::list<std::string> FileNameList; |
|---|
| 28 | |
|---|
| 29 | FileNameList OSGDB_EXPORT listAllAvailablePlugins(); |
|---|
| 30 | |
|---|
| 31 | class ReaderWriterInfo : public osg::Referenced |
|---|
| 32 | { |
|---|
| 33 | public: |
|---|
| 34 | |
|---|
| 35 | ReaderWriterInfo() {} |
|---|
| 36 | |
|---|
| 37 | std::string plugin; |
|---|
| 38 | std::string description; |
|---|
| 39 | ReaderWriter::FormatDescriptionMap protocols; |
|---|
| 40 | ReaderWriter::FormatDescriptionMap extensions; |
|---|
| 41 | ReaderWriter::FormatDescriptionMap options; |
|---|
| 42 | ReaderWriter::Features features; |
|---|
| 43 | |
|---|
| 44 | protected: |
|---|
| 45 | |
|---|
| 46 | virtual ~ReaderWriterInfo() {} |
|---|
| 47 | }; |
|---|
| 48 | |
|---|
| 49 | typedef std::list< osg::ref_ptr<ReaderWriterInfo> > ReaderWriterInfoList; |
|---|
| 50 | |
|---|
| 51 | bool OSGDB_EXPORT queryPlugin(const std::string& fileName, ReaderWriterInfoList& infoList); |
|---|
| 52 | |
|---|
| 53 | bool OSGDB_EXPORT outputPluginDetails(std::ostream& out, const std::string& fileName); |
|---|
| 54 | |
|---|
| 55 | } |
|---|
| 56 | |
|---|
| 57 | #endif |
|---|