osgEarth 2.1.1
Public Member Functions | Public Attributes

osgEarth::Drivers::Sqlite3CacheOptions Class Reference

Inheritance diagram for osgEarth::Drivers::Sqlite3CacheOptions:
Collaboration diagram for osgEarth::Drivers::Sqlite3CacheOptions:

List of all members.

Public Member Functions

optional< std::string > & path ()
const optional< std::string > & path () const
optional< bool > & asyncWrites ()
const optional< bool > & asyncWrites () const
optional< bool > & serialized ()
const optional< bool > & serialized () const
optional< unsigned int > & maxSize ()
const optional< unsigned int > & maxSize () const
 Sqlite3CacheOptions (const ConfigOptions &options=ConfigOptions())
Config getConfig () const
void mergeConfig (const Config &conf)
void fromConfig (const Config &conf)

Public Attributes

optional< std::string > _path
optional< bool > _useAsyncWrites
optional< bool > _serialized
optional< unsigned int > _maxSize

Detailed Description

Definition at line 33 of file Sqlite3CacheOptions.


Constructor & Destructor Documentation

osgEarth::Drivers::Sqlite3CacheOptions::Sqlite3CacheOptions ( const ConfigOptions options = ConfigOptions()) [inline]

Definition at line 53 of file Sqlite3CacheOptions.

            : CacheOptions( options ),
              _useAsyncWrites( true ), 
              _serialized( false ),
              _maxSize(100)
        {
            setDriver( "sqlite3" );
            fromConfig( _conf );
        }

Member Function Documentation

optional<bool>& osgEarth::Drivers::Sqlite3CacheOptions::asyncWrites ( ) [inline]

Definition at line 42 of file Sqlite3CacheOptions.

{ return _useAsyncWrites; }
const optional<bool>& osgEarth::Drivers::Sqlite3CacheOptions::asyncWrites ( ) const [inline]

Definition at line 43 of file Sqlite3CacheOptions.

{ return _useAsyncWrites; }
void osgEarth::Drivers::Sqlite3CacheOptions::fromConfig ( const Config conf) [inline]

Reimplemented from osgEarth::CacheOptions.

Definition at line 77 of file Sqlite3CacheOptions.

                                              {
            conf.getIfSet( "path", _path );
            conf.getIfSet( "async_writes", _useAsyncWrites );
            conf.getIfSet( "serialized", _serialized );
            conf.getIfSet( "max_size", _maxSize );
        }

Here is the call graph for this function:

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

Gets or sets the name of the object

Reimplemented from osgEarth::CacheOptions.

Definition at line 63 of file Sqlite3CacheOptions.

                                 {
            Config conf = CacheOptions::getConfig();
            conf.updateIfSet( "path", _path );
            conf.updateIfSet( "async_writes", _useAsyncWrites );
            conf.updateIfSet( "serialized", _serialized );
            conf.updateIfSet( "max_size", _maxSize );
            return conf;
        }

Here is the call graph for this function:

const optional<unsigned int>& osgEarth::Drivers::Sqlite3CacheOptions::maxSize ( ) const [inline]

Definition at line 49 of file Sqlite3CacheOptions.

{ return _maxSize; }
optional<unsigned int>& osgEarth::Drivers::Sqlite3CacheOptions::maxSize ( ) [inline]

Definition at line 48 of file Sqlite3CacheOptions.

{ return _maxSize; }
void osgEarth::Drivers::Sqlite3CacheOptions::mergeConfig ( const Config conf) [inline, virtual]

Reimplemented from osgEarth::CacheOptions.

Definition at line 72 of file Sqlite3CacheOptions.

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

Here is the call graph for this function:

const optional<std::string>& osgEarth::Drivers::Sqlite3CacheOptions::path ( ) const [inline]

Definition at line 40 of file Sqlite3CacheOptions.

{ return _path; }
optional<std::string>& osgEarth::Drivers::Sqlite3CacheOptions::path ( ) [inline]

Pathname of the database file.

Definition at line 39 of file Sqlite3CacheOptions.

{ return _path; }
const optional<bool>& osgEarth::Drivers::Sqlite3CacheOptions::serialized ( ) const [inline]

Definition at line 46 of file Sqlite3CacheOptions.

{ return _serialized; }
optional<bool>& osgEarth::Drivers::Sqlite3CacheOptions::serialized ( ) [inline]

Definition at line 45 of file Sqlite3CacheOptions.

{ return _serialized; }

Member Data Documentation

Definition at line 87 of file Sqlite3CacheOptions.

Definition at line 84 of file Sqlite3CacheOptions.

Definition at line 86 of file Sqlite3CacheOptions.

Definition at line 85 of file Sqlite3CacheOptions.


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