|
morph 0.1.0
Asynchronous bridge between GUI thread and business models
|
An IBundleStore in memory: it lasts as long as the process. Safe to call from any thread. More...
#include <service_client.hpp>
Public Member Functions | |
| std::optional< std::string > | get (std::string_view hash) const override |
| Reads a file. | |
| void | put (std::string const &hash, std::string bytes) override |
| Keeps a file. | |
| void | remove (std::string_view hash) override |
| Drops a file. | |
| std::optional< std::string > | lastDigest (std::string_view application) const override |
| The digest of an application's last verified bundle. | |
| void | setLastDigest (std::string const &application, std::string digest) override |
| Records an application's last verified bundle. | |
| std::size_t | size () const |
| How many files the store holds. | |
| Public Member Functions inherited from morph::ui::IBundleStore | |
| IBundleStore (IBundleStore const &)=delete | |
| IBundleStore & | operator= (IBundleStore const &)=delete |
| IBundleStore (IBundleStore &&)=delete | |
| IBundleStore & | operator= (IBundleStore &&)=delete |
An IBundleStore in memory: it lasts as long as the process. Safe to call from any thread.
Definition at line 83 of file service_client.hpp.
|
inlinenodiscardoverridevirtual |
Reads a file.
| hash | The file's content hash. |
Implements morph::ui::IBundleStore.
Definition at line 88 of file service_client.hpp.
|
inlineoverridevirtual |
Keeps a file.
| hash | The file's content hash. |
| bytes | The file. |
Implements morph::ui::IBundleStore.
Definition at line 101 of file service_client.hpp.
|
inlineoverridevirtual |
Drops a file.
| hash | The file's content hash. |
Implements morph::ui::IBundleStore.
Definition at line 108 of file service_client.hpp.
|
inlinenodiscardoverridevirtual |
The digest of an application's last verified bundle.
| application | The application's id. |
Implements morph::ui::IBundleStore.
Definition at line 118 of file service_client.hpp.
|
inlineoverridevirtual |
Records an application's last verified bundle.
| application | The application's id. |
| digest | The manifest's content hash. |
Implements morph::ui::IBundleStore.
Definition at line 131 of file service_client.hpp.
|
inlinenodiscard |
How many files the store holds.
Definition at line 138 of file service_client.hpp.