osgEarth 2.1.1
Public Member Functions

TileCacheSourceFactory Class Reference

Inheritance diagram for TileCacheSourceFactory:
Collaboration diagram for TileCacheSourceFactory:

List of all members.

Public Member Functions

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

Detailed Description

Definition at line 128 of file ReaderWriterTileCache.cpp.


Constructor & Destructor Documentation

TileCacheSourceFactory::TileCacheSourceFactory ( ) [inline]

Definition at line 131 of file ReaderWriterTileCache.cpp.

{}

Member Function Documentation

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

Definition at line 138 of file ReaderWriterTileCache.cpp.

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

Definition at line 133 of file ReaderWriterTileCache.cpp.

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

Definition at line 143 of file ReaderWriterTileCache.cpp.

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

            return new TileCacheSource( getTileSourceOptions(options) );
        }

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