Rose
|
A pure virtual class specifying the interface to a cache store system. More...
#include <Cache.h>
Public Member Functions | |
virtual CacheError | create (const CacheObject &object)=0 |
Create an item on a Cache. More... | |
virtual bool | find (const CacheObject &object)=0 |
Find an item on a Cache. More... | |
virtual std::ofstream | openWrite (const CacheObject &object, bool temp)=0 |
Open a cache object for writing. More... | |
virtual void | moveFromTemp (const CacheObject &object)=0 |
Move object from temporary cache location to permanent cache location. More... | |
virtual void | setCacheTime (const CacheObject &object, std::chrono::system_clock::duration cacheTimeInc)=0 |
Modify the object cache time. More... | |
virtual void | removeTemp (const CacheObject &object)=0 |
Remove a temporary cache location. More... | |
virtual std::ifstream | openRead (const CacheObject &object)=0 |
Open a cache object for reading. More... | |
virtual std::optional< std::string > | fileSystemName (const CacheObject &object) const |
Get a filesystem name locator for the object, if available. More... | |
A pure virtual class specifying the interface to a cache store system.
|
pure virtual |
Create an item on a Cache.
object | The cache object to be created. |
Implemented in rose::CacheFileSystem.
|
inlinevirtual |
Get a filesystem name locator for the object, if available.
Reimplemented in rose::CacheFileSystem.
|
pure virtual |
Find an item on a Cache.
object | The cache object to be found. |
Implemented in rose::CacheFileSystem.
|
pure virtual |
Move object from temporary cache location to permanent cache location.
object | The object to move from a temporary to permanent location. |
Implemented in rose::CacheFileSystem.
|
pure virtual |
Open a cache object for reading.
object | The object to open for reading. |
Implemented in rose::CacheFileSystem.
|
pure virtual |
Open a cache object for writing.
object | The cache object to open for writing |
temp | True if a temporary should be opened to use write then move idiom. |
Implemented in rose::CacheFileSystem.
|
pure virtual |
Remove a temporary cache location.
This is used when an attempt to update a cached object either failed, or did not result in new data.
object | The object for which the temporary should be removed. |
Implemented in rose::CacheFileSystem.
|
pure virtual |
Modify the object cache time.
object | The cache object to modify the object cache time on. |
cacheTimeInc | The amount to increment the object cache time by, or 0 to set it to the current system time. |
Implemented in rose::CacheFileSystem.