osgEarth 2.1.1
Public Member Functions | Private Member Functions | Private Attributes

osgEarth::CacheOptions Class Reference

Inheritance diagram for osgEarth::CacheOptions:
Collaboration diagram for osgEarth::CacheOptions:

List of all members.

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

Detailed Description

Base class for Cache implementation options.

Definition at line 46 of file Caching.


Constructor & Destructor Documentation

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:


Member Function Documentation

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; }

Member Data Documentation

Definition at line 81 of file Caching.

Definition at line 82 of file Caching.


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