osgEarth 2.1.1
Public Member Functions | Private Attributes

osgEarth::Drivers::MBTilesOptions Class Reference

Inheritance diagram for osgEarth::Drivers::MBTilesOptions:
Collaboration diagram for osgEarth::Drivers::MBTilesOptions:

List of all members.

Public Member Functions

optional< std::string > & filename ()
const optional< std::string > & filename () const
optional< std::string > & format ()
const optional< std::string > & format () const
 MBTilesOptions (const TileSourceOptions &opt=TileSourceOptions())
Config getConfig () const
void mergeConfig (const Config &conf)
void fromConfig (const Config &conf)

Private Attributes

optional< std::string > _filename
optional< std::string > _format

Detailed Description

Definition at line 29 of file MBTilesOptions.


Constructor & Destructor Documentation

osgEarth::Drivers::MBTilesOptions::MBTilesOptions ( const TileSourceOptions opt = TileSourceOptions()) [inline]

Definition at line 39 of file MBTilesOptions.

                                                                            : TileSourceOptions( opt )
        {
            setDriver( "mbtiles" );
            fromConfig( _conf );
        }

Member Function Documentation

optional<std::string>& osgEarth::Drivers::MBTilesOptions::filename ( ) [inline]

Definition at line 32 of file MBTilesOptions.

{ return _filename; }
const optional<std::string>& osgEarth::Drivers::MBTilesOptions::filename ( ) const [inline]

Definition at line 33 of file MBTilesOptions.

{ return _filename; }
const optional<std::string>& osgEarth::Drivers::MBTilesOptions::format ( ) const [inline]

Definition at line 36 of file MBTilesOptions.

{ return _format; }
optional<std::string>& osgEarth::Drivers::MBTilesOptions::format ( ) [inline]

Definition at line 35 of file MBTilesOptions.

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

Reimplemented from osgEarth::TileSourceOptions.

Definition at line 58 of file MBTilesOptions.

                                              {
            conf.getIfSet( "filename", _filename );
            conf.getIfSet( "format", _format );
        }

Here is the call graph for this function:

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

Gets or sets the name of the object

Reimplemented from osgEarth::TileSourceOptions.

Definition at line 46 of file MBTilesOptions.

                                 {
            Config conf = TileSourceOptions::getConfig();
            conf.updateIfSet("filename", _filename);            
            conf.updateIfSet("format", _format);            
            return conf;
        }

Here is the call graph for this function:

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

Reimplemented from osgEarth::TileSourceOptions.

Definition at line 53 of file MBTilesOptions.

Here is the call graph for this function:


Member Data Documentation

Definition at line 64 of file MBTilesOptions.

Definition at line 65 of file MBTilesOptions.


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