osgEarth 2.1.1
|
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 |
Definition at line 110 of file ReaderWriterTileService.cpp.
TileServiceSourceFactory::TileServiceSourceFactory | ( | ) | [inline] |
Definition at line 113 of file ReaderWriterTileService.cpp.
{}
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) ); }