osgEarth 2.1.1
Public Member Functions

TileServiceSourceFactory Class Reference

Inheritance diagram for TileServiceSourceFactory:
Collaboration diagram for TileServiceSourceFactory:

List of all members.

Public Member Functions

 TileServiceSourceFactory ()
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 110 of file ReaderWriterTileService.cpp.


Constructor & Destructor Documentation

TileServiceSourceFactory::TileServiceSourceFactory ( ) [inline]

Definition at line 113 of file ReaderWriterTileService.cpp.

{}

Member Function Documentation

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

Definition at line 120 of file ReaderWriterTileService.cpp.

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

Definition at line 115 of file ReaderWriterTileService.cpp.

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

Definition at line 125 of file ReaderWriterTileService.cpp.

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

            return new TileServiceSource( getTileSourceOptions(opt) );
        }

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