PluginQuery
Go to the documentation of this file.
/* -*-c++-*- OpenSceneGraph - Copyright (C) 1998-2008 Robert Osfield
*
* This application is open source and may be redistributed and/or modified
* freely and without restriction, both in commercial and non commercial applications,
* as long as this copyright notice is maintained.
*
* This application is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
*/
#ifndef PLUGINQUERY_H
#define PLUGINQUERY_H
#include <osgDB/Export>
#include <osgDB/ReaderWriter>
#include <osg/Referenced>
#include <osg/ref_ptr>
#include <list>
#include <string>
namespace osgDB
{
typedef std::list<std::string> FileNameList;
FileNameList OSGDB_EXPORT listAllAvailablePlugins();
class ReaderWriterInfo : public osg::Referenced
{
public:
ReaderWriterInfo():
features(ReaderWriter::FEATURE_NONE) {}
std::string plugin;
std::string description;
ReaderWriter::FormatDescriptionMap protocols;
ReaderWriter::FormatDescriptionMap extensions;
ReaderWriter::FormatDescriptionMap options;
ReaderWriter::Features features;
protected:
virtual ~ReaderWriterInfo() {}
};
typedef std::list< osg::ref_ptr<ReaderWriterInfo> > ReaderWriterInfoList;
bool OSGDB_EXPORT queryPlugin(const std::string& fileName, ReaderWriterInfoList& infoList);
bool OSGDB_EXPORT outputPluginDetails(std::ostream& out, const std::string& fileName);
}
#endif
ReaderWriter
Referenced
osgDB::ReaderWriterInfo::~ReaderWriterInfo
virtual ~ReaderWriterInfo()
Definition PluginQuery:47
osgDB::ReaderWriterInfo::options
ReaderWriter::FormatDescriptionMap options
Definition PluginQuery:42
osgDB::ReaderWriterInfo::extensions
ReaderWriter::FormatDescriptionMap extensions
Definition PluginQuery:41
osgDB::ReaderWriterInfo::plugin
std::string plugin
Definition PluginQuery:38
osgDB::ReaderWriterInfo::description
std::string description
Definition PluginQuery:39
osgDB::ReaderWriterInfo::protocols
ReaderWriter::FormatDescriptionMap protocols
Definition PluginQuery:40
osgDB::ReaderWriterInfo::ReaderWriterInfo
ReaderWriterInfo()
Definition PluginQuery:35
osgDB::ReaderWriterInfo::features
ReaderWriter::Features features
Definition PluginQuery:43
osgDB::ReaderWriter
Definition ReaderWriter:40
osgDB::ReaderWriter::FormatDescriptionMap
std::map< std::string, std::string > FormatDescriptionMap
Definition ReaderWriter:54
osgDB::ReaderWriter::Features
Features
Bit mask for setting up which feature types are available for read and/or write.
Definition ReaderWriter:73
osg::Referenced
Definition Referenced:44
osgDB
Definition Archive:24
osgDB::ReaderWriterInfoList
std::list< osg::ref_ptr< ReaderWriterInfo > > ReaderWriterInfoList
Definition PluginQuery:50
osgDB::FileNameList
std::list< std::string > FileNameList
Definition PluginQuery:27
osgDB::listAllAvailablePlugins
FileNameList OSGDB_EXPORT listAllAvailablePlugins()
osgDB::queryPlugin
bool OSGDB_EXPORT queryPlugin(const std::string &fileName, ReaderWriterInfoList &infoList)
osgDB::outputPluginDetails
bool OSGDB_EXPORT outputPluginDetails(std::ostream &out, const std::string &fileName)
Export
OSGDB_EXPORT
#define OSGDB_EXPORT
Definition osgDB/Export:39
ref_ptr