|
DuxReiNummariae 1.1.0-alpha.19
Simple and powerful budgeting application
|
Manages the storage and retrieval of exchange rate data. More...
#include <ExchangeRatesStorage.hpp>
Public Member Functions | |
| ExchangeRatesStorage ()=default | |
| ExchangeRatesStorage (const ExchangeRatesStorage &)=delete | |
| ExchangeRatesStorage (ExchangeRatesStorage &&)=default | |
| virtual | ~ExchangeRatesStorage ()=default |
| virtual bool | exists () const noexcept=0 |
| When implemented, determines if the exchange rates cache exists. | |
| virtual conversion::ConversionMap | load () const =0 |
| When implemented, loads the cached exchange rates. | |
| ExchangeRatesStorage & | operator= (const ExchangeRatesStorage &)=delete |
| ExchangeRatesStorage & | operator= (ExchangeRatesStorage &&)=default |
| virtual void | remove () const =0 |
| When implemented, removes the cached exchange rates. | |
| virtual void | store (const conversion::ConversionMap &cm) const =0 |
| When implemented, creates or overwrites the exchange rates cache. | |
Manages the storage and retrieval of exchange rate data.
It is designed to facilitate the handling of exchange rate information. Usage of this class requires an appropriate storage back-end (e.g., database or in-memory storage).
|
default |
|
delete |
|
default |
|
virtualdefault |
|
nodiscardpure virtualnoexcept |
When implemented, determines if the exchange rates cache exists.
Implemented in drn::file_storage::ExchangeRatesFile.
|
nodiscardpure virtual |
When implemented, loads the cached exchange rates.
| StorageError | When the exchange rates cache is not valid. |
Implemented in drn::file_storage::ExchangeRatesFile.
|
delete |
|
default |
|
pure virtual |
When implemented, removes the cached exchange rates.
Implemented in drn::file_storage::ExchangeRatesFile.
|
pure virtual |
When implemented, creates or overwrites the exchange rates cache.
| StorageError | When the exchange rates cache cannot be saved. |
| [in] | cm | The exchange rates whose contents are to be cached. |
Implemented in drn::file_storage::ExchangeRatesFile.