osgEarth 2.1.1
|
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 |
Definition at line 33 of file Sqlite3CacheOptions.
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 ); }
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 ); }
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; }
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 ); }
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] |
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; }
optional<unsigned int> osgEarth::Drivers::Sqlite3CacheOptions::_maxSize |
Definition at line 87 of file Sqlite3CacheOptions.
optional<std::string> osgEarth::Drivers::Sqlite3CacheOptions::_path |
Definition at line 84 of file Sqlite3CacheOptions.
Definition at line 86 of file Sqlite3CacheOptions.
Definition at line 85 of file Sqlite3CacheOptions.