osgEarth 2.1.1
Public Member Functions | Public Attributes

AsyncUpdateAccessTime Struct Reference

Inheritance diagram for AsyncUpdateAccessTime:
Collaboration diagram for AsyncUpdateAccessTime:

List of all members.

Public Member Functions

 AsyncUpdateAccessTime (const TileKey &key, const std::string &cacheId, int timeStamp, Sqlite3Cache *cache)
void operator() (ProgressCallback *progress)

Public Attributes

TileKey _key
std::string _cacheId
int _timeStamp
osg::observer_ptr< Sqlite3Cache_cache

Detailed Description

Definition at line 970 of file Sqlite3Cache.cpp.


Constructor & Destructor Documentation

AsyncUpdateAccessTime::AsyncUpdateAccessTime ( const TileKey key,
const std::string &  cacheId,
int  timeStamp,
Sqlite3Cache cache 
)

Definition at line 1678 of file Sqlite3Cache.cpp.

                                                                                                                               : 
_key(key), _cacheId(cacheId), _timeStamp(timeStamp), _cache(cache)
{
    //nop
}

Member Function Documentation

void AsyncUpdateAccessTime::operator() ( ProgressCallback progress) [virtual]

Implements osgEarth::TaskRequest.

Definition at line 1684 of file Sqlite3Cache.cpp.

{ 
    osg::ref_ptr<Sqlite3Cache> cache = _cache.get();
    if ( cache.valid() ) {
        //OE_WARN << "AsyncUpdateAccessTime will process " << _key << std::endl;
        cache->updateAccessTimeSync( _cacheId, _key , _timeStamp );
    }
}

Member Data Documentation

Definition at line 978 of file Sqlite3Cache.cpp.

Definition at line 976 of file Sqlite3Cache.cpp.

Definition at line 975 of file Sqlite3Cache.cpp.

Definition at line 977 of file Sqlite3Cache.cpp.


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