osgEarth 2.1.1
|
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 |
Definition at line 128 of file ReaderWriterTileCache.cpp.
TileCacheSourceFactory::TileCacheSourceFactory | ( | ) | [inline] |
Definition at line 131 of file ReaderWriterTileCache.cpp.
{}
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) ); }