|
Sen API
Sen Libraries
|
Declares interest on objects that satisfy a set of conditions. More...
#include <interest.h>
Public Member Functions | |
| ~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 |
| Interest (std::string_view query, const CustomTypeRegistry &typeRegistry, Private notUsable) | |
Static Public Member Functions | |
| 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.
|
default |
| sen::Interest::Interest | ( | std::string_view | query, |
| const CustomTypeRegistry & | typeRegistry, | ||
| Private | notUsable ) |
|
staticnodiscard |
Make an interest from a query. Throws std::exception if not well formed.
|
nodiscardnoexcept |
The condition related to the type.
|
nodiscardnoexcept |
The unique ID of this interest.
|
nodiscardnoexcept |
The code that can evaluate the condition.
|
nodiscardnoexcept |
The user-defined string that encodes the criteria.
|
nodiscardnoexcept |
The source of this interest (if any).
|
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.).
|
nodiscardnoexcept |
|
nodiscardnoexcept |