Rose
Public Member Functions | Protected Attributes | List of all members
rose::CacheSource Class Referenceabstract

Virtual ase class for data sources to be cached. More...

#include <Cache.h>

Inheritance diagram for rose::CacheSource:
Inheritance graph
[legend]

Public Member Functions

virtual void fetch (CacheObject &cacheObject, std::ostream &ostrm, time_t cacheTime)=0
 Fetch a cache object from a source. More...
 
auto cacheValidDuration () const
 Access the cache object validity period. More...
 

Protected Attributes

std::chrono::system_clock::duration mCacheValidDuration {}
 

Detailed Description

Virtual ase class for data sources to be cached.

Member Function Documentation

◆ cacheValidDuration()

auto rose::CacheSource::cacheValidDuration ( ) const
inline

Access the cache object validity period.

Returns
A system_clock duration of cache object validity.

◆ fetch()

virtual void rose::CacheSource::fetch ( CacheObject cacheObject,
std::ostream &  ostrm,
time_t  cacheTime 
)
pure virtual

Fetch a cache object from a source.

Parameters
cacheObjectThe object to fetch
ostrmThe output stream to write the fetched object on.
cacheTimeThe time on the cache object.

Implemented in rose::CacheWebSource.


The documentation for this class was generated from the following files: