Declares interest on objects that satisfy a set of conditions.
More...
#include <interest.h>
|
| | ~Interest ()=default |
| const TypeCondition & | getTypeCondition () const noexcept |
| | The condition related to the type.
|
| InterestId | getId () const noexcept |
| | The unique ID of this interest.
|
| const lang::Chunk & | getQueryCode () const noexcept |
| | The code that can evaluate the condition.
|
| const std::string & | getQueryString () const noexcept |
| | The user-defined string that encodes the criteria.
|
| const BusCondition & | getBusCondition () const noexcept |
| | The source of this interest (if any).
|
| const VarInfoList & | getOrComputeVarInfoList (const ClassType *classType) const |
| | Compute the information about the variables used in the query expression (if any). Throws in case the type is not known, or if there's an error in the expression (property or field not present, wrong type used, etc.).
|
| bool | operator== (const Interest &other) const noexcept |
| bool | operator!= (const Interest &other) const noexcept |
|
| static std::shared_ptr< Interest > | make (std::string_view query, const CustomTypeRegistry &typeRegistry) |
| | Make an interest from a query. Throws std::exception if not well formed.
|
Declares interest on objects that satisfy a set of conditions.
◆ ~Interest()
| sen::Interest::~Interest |
( |
| ) |
|
|
default |
◆ make()
| std::shared_ptr< Interest > sen::Interest::make |
( |
std::string_view | query, |
|
|
const CustomTypeRegistry & | typeRegistry ) |
|
staticnodiscard |
Make an interest from a query. Throws std::exception if not well formed.
◆ getTypeCondition()
The condition related to the type.
◆ getId()
| InterestId sen::Interest::getId |
( |
| ) |
const |
|
nodiscardnoexcept |
The unique ID of this interest.
◆ getQueryCode()
| const lang::Chunk & sen::Interest::getQueryCode |
( |
| ) |
const |
|
nodiscardnoexcept |
The code that can evaluate the condition.
◆ getQueryString()
| const std::string & sen::Interest::getQueryString |
( |
| ) |
const |
|
nodiscardnoexcept |
The user-defined string that encodes the criteria.
◆ getBusCondition()
| const BusCondition & sen::Interest::getBusCondition |
( |
| ) |
const |
|
nodiscardnoexcept |
The source of this interest (if any).
◆ getOrComputeVarInfoList()
| const VarInfoList & sen::Interest::getOrComputeVarInfoList |
( |
const ClassType * | classType | ) |
const |
|
nodiscard |
Compute the information about the variables used in the query expression (if any). Throws in case the type is not known, or if there's an error in the expression (property or field not present, wrong type used, etc.).
◆ operator==()
| bool sen::Interest::operator== |
( |
const Interest & | other | ) |
const |
|
nodiscardnoexcept |
◆ operator!=()
| bool sen::Interest::operator!= |
( |
const Interest & | other | ) |
const |
|
nodiscardnoexcept |
The documentation for this class was generated from the following file: