osgEarth 2.1.1
Public Member Functions

WMSSourceFactory Class Reference

Inheritance diagram for WMSSourceFactory:
Collaboration diagram for WMSSourceFactory:

List of all members.

Public Member Functions

 WMSSourceFactory ()
virtual const char * className ()
virtual bool acceptsExtension (const std::string &extension) const
virtual ReadResult readObject (const std::string &file_name, const Options *opt) const

Detailed Description

Definition at line 515 of file ReaderWriterWMS.cpp.


Constructor & Destructor Documentation

WMSSourceFactory::WMSSourceFactory ( ) [inline]

Definition at line 518 of file ReaderWriterWMS.cpp.

{}

Member Function Documentation

virtual bool WMSSourceFactory::acceptsExtension ( const std::string &  extension) const [inline, virtual]

Definition at line 525 of file ReaderWriterWMS.cpp.

        {
            return osgDB::equalCaseInsensitive( extension, "osgearth_wms" );
        }
virtual const char* WMSSourceFactory::className ( ) [inline, virtual]

Definition at line 520 of file ReaderWriterWMS.cpp.

        {
            return "WMS Reader";
        }
virtual ReadResult WMSSourceFactory::readObject ( const std::string &  file_name,
const Options *  opt 
) const [inline, virtual]

Definition at line 530 of file ReaderWriterWMS.cpp.

        {
            std::string ext = osgDB::getFileExtension( file_name );
            if ( !acceptsExtension( ext ) )
            {
                return ReadResult::FILE_NOT_HANDLED;
            }

            return new WMSSource( getTileSourceOptions(opt) );
        }

The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines