The Query class encapsulates queries against a trust store instance.
More...
#include <store.h>
|
struct | Errors |
| All Query-specific error/exception types go here. More...
|
|
The Query class encapsulates queries against a trust store instance.
Definition at line 86 of file store.h.
◆ Status
The state of the query.
Enumerator |
---|
armed | The query is armed but hasn't been run.
|
has_more_results | The query has been executed and has more results.
|
eor | All results have been visited.
|
error | An error occured.
|
Definition at line 117 of file store.h.
◆ Query() [1/2]
core::trust::Store::Query::Query |
( |
const Query & |
| ) |
|
|
delete |
◆ ~Query()
virtual core::trust::Store::Query::~Query |
( |
| ) |
|
|
virtualdefault |
◆ Query() [2/2]
core::trust::Store::Query::Query |
( |
| ) |
|
|
protecteddefault |
◆ all()
virtual void core::trust::Store::Query::all |
( |
| ) |
|
|
pure virtual |
Query all stored requests.
◆ current()
virtual Request core::trust::Store::Query::current |
( |
| ) |
|
|
pure virtual |
Access the request the query currently points to.
◆ erase()
virtual void core::trust::Store::Query::erase |
( |
| ) |
|
|
pure virtual |
After successful execution, erase the current element and advance to the next request.
◆ execute()
virtual void core::trust::Store::Query::execute |
( |
| ) |
|
|
pure virtual |
Execute the query against the store.
◆ for_answer()
virtual void core::trust::Store::Query::for_answer |
( |
Request::Answer |
answer | ) |
|
|
pure virtual |
Limit the query for a specific answer.
◆ for_application_id()
virtual void core::trust::Store::Query::for_application_id |
( |
const std::string & |
id | ) |
|
|
pure virtual |
Limit the query to a specific application Id.
◆ for_feature()
virtual void core::trust::Store::Query::for_feature |
( |
Feature |
feature | ) |
|
|
pure virtual |
Limit the query to a service-specific feature.
◆ for_interval()
Limit the query to the specified time interval.
◆ next()
virtual void core::trust::Store::Query::next |
( |
| ) |
|
|
pure virtual |
After successful execution, advance to the next request.
◆ status()
virtual Status core::trust::Store::Query::status |
( |
| ) |
const |
|
pure virtual |
Access the status of the query.
The documentation for this class was generated from the following file:
- /build/trust-store-2.0.2~20221215170007.11~8c05bf3+ubports20.04/include/core/trust/store.h