osgEarth 2.1.1
Public Member Functions

MBTilesTileSourceFactory Class Reference

Inheritance diagram for MBTilesTileSourceFactory:
Collaboration diagram for MBTilesTileSourceFactory:

List of all members.

Public Member Functions

 MBTilesTileSourceFactory ()
virtual const char * className ()
virtual ReadResult readObject (const std::string &file_name, const Options *options) const

Detailed Description

Definition at line 266 of file ReaderWriterMBTiles.cpp.


Constructor & Destructor Documentation

MBTilesTileSourceFactory::MBTilesTileSourceFactory ( ) [inline]

Definition at line 269 of file ReaderWriterMBTiles.cpp.

    {
        supportsExtension( "osgearth_mbtiles", "MBTiles Driver" );
    }

Member Function Documentation

virtual const char* MBTilesTileSourceFactory::className ( ) [inline, virtual]

Definition at line 274 of file ReaderWriterMBTiles.cpp.

    {
        return "MBTiles ReaderWriter";
    }
virtual ReadResult MBTilesTileSourceFactory::readObject ( const std::string &  file_name,
const Options *  options 
) const [inline, virtual]

Definition at line 279 of file ReaderWriterMBTiles.cpp.

    {
        if ( !acceptsExtension(osgDB::getLowerCaseFileExtension( file_name )))
            return ReadResult::FILE_NOT_HANDLED;

        return new MBTilesSource( getTileSourceOptions(options) );
    }

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