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

osgEarth::DiskCacheOptions Class Reference

Inheritance diagram for osgEarth::DiskCacheOptions:
Collaboration diagram for osgEarth::DiskCacheOptions:

List of all members.

Public Member Functions

 DiskCacheOptions (const ConfigOptions &options=ConfigOptions())
void setPath (const std::string &value)
const std::string & path () const
optional< bool > & writeWorldFiles ()
const optional< bool > & writeWorldFiles () const
optional< std::string > & imageWriterPluginOptions ()
const optional< std::string > & imageWriterPluginOptions () const
virtual Config getConfig () const
virtual void mergeConfig (const Config &conf)

Private Member Functions

void fromConfig (const Config &conf)

Private Attributes

std::string _path
optional< bool > _writeWorldFiles
optional< std::string > _imageWriterPluginOptions

Detailed Description

Options class for any cache that caches tiles as individual files on disk.

Definition at line 90 of file Caching.


Constructor & Destructor Documentation

osgEarth::DiskCacheOptions::DiskCacheOptions ( const ConfigOptions options = ConfigOptions()) [inline]

Definition at line 93 of file Caching.

Here is the call graph for this function:


Member Function Documentation

void osgEarth::DiskCacheOptions::fromConfig ( const Config conf) [inline, private]

Reimplemented from osgEarth::CacheOptions.

Reimplemented in osgEarth::TMSCacheOptions.

Definition at line 127 of file Caching.

                                              {
            _path = conf.value("path");
            conf.getIfSet("write_world_files", _writeWorldFiles);
            conf.getIfSet("image_writer_plugin_options", _imageWriterPluginOptions);
                        
        }

Here is the call graph for this function:

Here is the caller graph for this function:

virtual Config osgEarth::DiskCacheOptions::getConfig ( ) const [inline, virtual]

Gets or sets the name of the object

Reimplemented from osgEarth::CacheOptions.

Reimplemented in osgEarth::TMSCacheOptions.

Definition at line 114 of file Caching.

                                         {
            Config conf = CacheOptions::getConfig();
            conf.update("path", _path);
            conf.updateIfSet("write_world_files", _writeWorldFiles);
            conf.updateIfSet("image_writer_plugin_options", _imageWriterPluginOptions);
            return conf;
        }

Here is the call graph for this function:

optional<std::string>& osgEarth::DiskCacheOptions::imageWriterPluginOptions ( ) [inline]

Options string to pass to an osgDB image plugin

Definition at line 110 of file Caching.

Here is the caller graph for this function:

const optional<std::string>& osgEarth::DiskCacheOptions::imageWriterPluginOptions ( ) const [inline]

Definition at line 111 of file Caching.

virtual void osgEarth::DiskCacheOptions::mergeConfig ( const Config conf) [inline, virtual]

Reimplemented from osgEarth::CacheOptions.

Reimplemented in osgEarth::TMSCacheOptions.

Definition at line 121 of file Caching.

                                                       {
            CacheOptions::mergeConfig( conf );
            fromConfig( conf );
        }

Here is the call graph for this function:

const std::string& osgEarth::DiskCacheOptions::path ( ) const [inline]

Definition at line 103 of file Caching.

{ return _path; }

Here is the caller graph for this function:

void osgEarth::DiskCacheOptions::setPath ( const std::string &  value) [inline]

The folder path in which to store the cache data

Definition at line 102 of file Caching.

{ _path = value; }

Here is the caller graph for this function:

const optional<bool>& osgEarth::DiskCacheOptions::writeWorldFiles ( ) const [inline]

Definition at line 107 of file Caching.

{ return _writeWorldFiles; }
optional<bool>& osgEarth::DiskCacheOptions::writeWorldFiles ( ) [inline]

Whether to write out "world" files alongside the cached tiles

Definition at line 106 of file Caching.

{ return _writeWorldFiles; }

Here is the caller graph for this function:


Member Data Documentation

Definition at line 136 of file Caching.

std::string osgEarth::DiskCacheOptions::_path [private]

Definition at line 134 of file Caching.

Definition at line 135 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