|
osgEarth 2.1.1
|
Inheritance diagram for osgEarth::CacheOptions:
Collaboration diagram for osgEarth::CacheOptions:Public Member Functions | |
| CacheOptions (const ConfigOptions &options=ConfigOptions()) | |
| optional< bool > & | cacheOnly () |
| const optional< bool > & | cacheOnly () const |
| virtual Config | getConfig () const |
| virtual void | mergeConfig (const Config &conf) |
| void | setReferenceURI (const std::string &referenceURI) |
| const std::string & | getReferenceURI () const |
Private Member Functions | |
| void | fromConfig (const Config &conf) |
Private Attributes | |
| optional< bool > | _cacheOnly |
| std::string | _referenceURI |
| osgEarth::CacheOptions::CacheOptions | ( | const ConfigOptions & | options = ConfigOptions() | ) | [inline] |
Definition at line 49 of file Caching.
: DriverConfigOptions( options ), _cacheOnly( false ) { fromConfig( _conf ); }
Here is the call graph for this function:| optional<bool>& osgEarth::CacheOptions::cacheOnly | ( | ) | [inline] |
Whether to run exclusively off the cache (and not fetch files from tile sources)
Definition at line 57 of file Caching.
{ return _cacheOnly; }
| const optional<bool>& osgEarth::CacheOptions::cacheOnly | ( | ) | const [inline] |
Definition at line 58 of file Caching.
{ return _cacheOnly; }
| void osgEarth::CacheOptions::fromConfig | ( | const Config & | conf | ) | [inline, private] |
Reimplemented from osgEarth::DriverConfigOptions.
Reimplemented in osgEarth::DiskCacheOptions, osgEarth::TMSCacheOptions, and osgEarth::Drivers::Sqlite3CacheOptions.
Definition at line 77 of file Caching.
{
conf.getIfSet( "cache_only", _cacheOnly );
}
Here is the call graph for this function:
Here is the caller graph for this function:| virtual Config osgEarth::CacheOptions::getConfig | ( | ) | const [inline, virtual] |
Gets or sets the name of the object
Reimplemented from osgEarth::DriverConfigOptions.
Reimplemented in osgEarth::DiskCacheOptions, osgEarth::TMSCacheOptions, and osgEarth::Drivers::Sqlite3CacheOptions.
Definition at line 61 of file Caching.
{
Config conf = ConfigOptions::getConfig();
conf.updateIfSet( "cache_only", _cacheOnly );
return conf;
}
Here is the call graph for this function:
Here is the caller graph for this function:| const std::string& osgEarth::CacheOptions::getReferenceURI | ( | ) | const [inline] |
Definition at line 74 of file Caching.
{ return _referenceURI; }
Here is the caller graph for this function:| virtual void osgEarth::CacheOptions::mergeConfig | ( | const Config & | conf | ) | [inline, virtual] |
Reimplemented from osgEarth::DriverConfigOptions.
Reimplemented in osgEarth::DiskCacheOptions, osgEarth::TMSCacheOptions, and osgEarth::Drivers::Sqlite3CacheOptions.
Definition at line 66 of file Caching.
{
ConfigOptions::mergeConfig( conf );
fromConfig( conf );
}
Here is the call graph for this function:
Here is the caller graph for this function:| void osgEarth::CacheOptions::setReferenceURI | ( | const std::string & | referenceURI | ) | [inline] |
INTERNAL FUNCTION TODO: this most definitely should not be in the Options structure
Definition at line 73 of file Caching.
{ _referenceURI = referenceURI; }
optional<bool> osgEarth::CacheOptions::_cacheOnly [private] |
std::string osgEarth::CacheOptions::_referenceURI [private] |
1.7.3