OSSIM - Open Source Software Image Map
Version 1.9.0 (20180803)
|
#include <CurlHeaderCache.h>
Public Types | |
typedef std::shared_ptr< CurlHeaderCacheNode > | Node_t |
typedef std::string | Key_t |
typedef ossim_int64 | TimeIndex_t |
typedef std::map< Key_t, Node_t > | CacheType |
typedef std::map< TimeIndex_t, Key_t > | CacheTimeIndexType |
Public Member Functions | |
CurlHeaderCache () | |
virtual | ~CurlHeaderCache () |
bool | getCachedFilesize (const Key_t &key, ossim_int64 &filesize) const |
void | addHeader (const Key_t &key, Node_t &node) |
void | setMaxCacheEntries (ossim_int64 maxEntries) |
void | touchEntry (const Key_t &key) |
Static Public Member Functions | |
static std::shared_ptr< CurlHeaderCache > | instance () |
Protected Member Functions | |
void | shrinkEntries () |
void | touchEntryProtected (const Key_t &key) |
Protected Attributes | |
std::mutex | m_mutex |
CacheType | m_cache |
CacheTimeIndexType | m_cacheTime |
ossim_int64 | m_maxCacheEntries |
Static Protected Attributes | |
static std::shared_ptr< CurlHeaderCache > | m_instance |
Definition at line 27 of file CurlHeaderCache.h.
typedef std::map<TimeIndex_t, Key_t > ossim::CurlHeaderCache::CacheTimeIndexType |
Definition at line 34 of file CurlHeaderCache.h.
typedef std::map<Key_t, Node_t > ossim::CurlHeaderCache::CacheType |
Definition at line 33 of file CurlHeaderCache.h.
typedef std::string ossim::CurlHeaderCache::Key_t |
Definition at line 31 of file CurlHeaderCache.h.
typedef std::shared_ptr<CurlHeaderCacheNode> ossim::CurlHeaderCache::Node_t |
Definition at line 30 of file CurlHeaderCache.h.
Definition at line 32 of file CurlHeaderCache.h.
ossim::CurlHeaderCache::CurlHeaderCache | ( | ) |
Definition at line 7 of file CurlHeaderCache.cpp.
|
virtual |
Definition at line 13 of file CurlHeaderCache.cpp.
Definition at line 49 of file CurlHeaderCache.cpp.
References ossimTimer::instance(), and ossimTimer::tick().
bool ossim::CurlHeaderCache::getCachedFilesize | ( | const Key_t & | key, |
ossim_int64 & | filesize | ||
) | const |
Definition at line 28 of file CurlHeaderCache.cpp.
References touchEntryProtected().
|
static |
Definition at line 18 of file CurlHeaderCache.cpp.
void ossim::CurlHeaderCache::setMaxCacheEntries | ( | ossim_int64 | maxEntries | ) |
|
protected |
Definition at line 96 of file CurlHeaderCache.cpp.
void ossim::CurlHeaderCache::touchEntry | ( | const Key_t & | key | ) |
Definition at line 71 of file CurlHeaderCache.cpp.
|
protected |
Definition at line 81 of file CurlHeaderCache.cpp.
References ossimTimer::instance(), and ossimTimer::tick().
Referenced by getCachedFilesize().
|
protected |
Definition at line 52 of file CurlHeaderCache.h.
|
protected |
Definition at line 53 of file CurlHeaderCache.h.
|
staticprotected |
Definition at line 49 of file CurlHeaderCache.h.
|
protected |
Definition at line 54 of file CurlHeaderCache.h.
|
mutableprotected |
Definition at line 50 of file CurlHeaderCache.h.