openscenegraph
PluginQuery
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
24namespace osgDB
25{
26
27typedef std::list<std::string> FileNameList;
28
30
49
50typedef std::list< osg::ref_ptr<ReaderWriterInfo> > ReaderWriterInfoList;
51
52bool OSGDB_EXPORT queryPlugin(const std::string& fileName, ReaderWriterInfoList& infoList);
53
54bool OSGDB_EXPORT outputPluginDetails(std::ostream& out, const std::string& fileName);
55
56}
57
58#endif
Definition PluginQuery:32
virtual ~ReaderWriterInfo()
Definition PluginQuery:47
ReaderWriter::FormatDescriptionMap options
Definition PluginQuery:42
ReaderWriter::FormatDescriptionMap extensions
Definition PluginQuery:41
std::string plugin
Definition PluginQuery:38
std::string description
Definition PluginQuery:39
ReaderWriter::FormatDescriptionMap protocols
Definition PluginQuery:40
ReaderWriterInfo()
Definition PluginQuery:35
ReaderWriter::Features features
Definition PluginQuery:43
Definition ReaderWriter:40
std::map< std::string, std::string > FormatDescriptionMap
Definition ReaderWriter:54
Features
Bit mask for setting up which feature types are available for read and/or write.
Definition ReaderWriter:73
Definition Referenced:44
Definition Archive:24
std::list< osg::ref_ptr< ReaderWriterInfo > > ReaderWriterInfoList
Definition PluginQuery:50
std::list< std::string > FileNameList
Definition PluginQuery:27
FileNameList OSGDB_EXPORT listAllAvailablePlugins()
bool OSGDB_EXPORT queryPlugin(const std::string &fileName, ReaderWriterInfoList &infoList)
bool OSGDB_EXPORT outputPluginDetails(std::ostream &out, const std::string &fileName)
#define OSGDB_EXPORT
Definition osgDB/Export:39