OSG  3.4.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
PluginQuery.h
Go to the documentation of this file.
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 
30 
32 {
33  public:
34 
36 
37  std::string plugin;
38  std::string description;
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
ReaderWriter::FormatDescriptionMap extensions
Definition: PluginQuery.h:40
std::list< osg::ref_ptr< ReaderWriterInfo > > ReaderWriterInfoList
Definition: PluginQuery.h:49
Features
Bit mask for setting up which feature types are available for read and/or write.
Definition: ReaderWriter.h:72
ReaderWriter::Features features
Definition: PluginQuery.h:42
ReaderWriter::FormatDescriptionMap options
Definition: PluginQuery.h:41
std::map< std::string, std::string > FormatDescriptionMap
Definition: ReaderWriter.h:54
std::list< std::string > FileNameList
Definition: PluginQuery.h:27
FileNameList OSGDB_EXPORT listAllAvailablePlugins()
bool OSGDB_EXPORT outputPluginDetails(std::ostream &out, const std::string &fileName)
bool OSGDB_EXPORT queryPlugin(const std::string &fileName, ReaderWriterInfoList &infoList)
virtual ~ReaderWriterInfo()
Definition: PluginQuery.h:46
Definition: Archive.h:24
#define OSGDB_EXPORT
Definition: Export.h:39
ReaderWriter::FormatDescriptionMap protocols
Definition: PluginQuery.h:39
std::string description
Definition: PluginQuery.h:38