Represents an event.
More...
#include <event.h>
|
| static std::shared_ptr< Event > | make (const EventSpec &spec) |
| | Factory function that validates the spec and creates a class type. Throws std::exception if the spec is not valid.
|
| static void | checkSpec (const CallableSpec &spec) |
| | Throws std::exception if the callable spec is invalid.
|
◆ ~Event()
◆ make()
| std::shared_ptr< Event > sen::Event::make |
( |
const EventSpec & | spec | ) |
|
|
staticnodiscard |
Factory function that validates the spec and creates a class type. Throws std::exception if the spec is not valid.
◆ operator==() [1/2]
| bool sen::Event::operator== |
( |
const Event & | other | ) |
const |
|
nodiscardnoexcept |
Checks if other is equivalent to this.
◆ operator!=() [1/2]
| bool sen::Event::operator!= |
( |
const Event & | other | ) |
const |
|
nodiscardnoexcept |
Checks if other is not equivalent to this.
◆ getHash()
Returns a unique hash to identify the Event.
◆ getId()
Returns a name hash of the event.
◆ getName()
| std::string_view sen::Callable::getName |
( |
| ) |
const |
|
nodiscardnoexceptinherited |
◆ getDescription()
| std::string_view sen::Callable::getDescription |
( |
| ) |
const |
|
nodiscardnoexceptinherited |
◆ getTransportMode()
|
|
nodiscardnoexceptinherited |
The transport mode of this callable.
◆ getArgs()
| Span< const Arg > sen::Callable::getArgs |
( |
| ) |
const |
|
nodiscardnoexceptinherited |
◆ getArgFromName()
| const Arg * sen::Callable::getArgFromName |
( |
std::string_view | name | ) |
const |
|
nodiscardinherited |
Get the field data given a name. Nullptr means not found.
- Parameters
-
| name | the name of the field. |
◆ getArgIndexFromNameHash()
| size_t sen::Callable::getArgIndexFromNameHash |
( |
MemberHash | nameHash | ) |
const |
|
nodiscardinherited |
Get the index in the vector of Args given a name hash.
◆ operator==() [2/2]
| bool sen::Callable::operator== |
( |
const Callable & | other | ) |
const |
|
nodiscardnoexceptinherited |
◆ operator!=() [2/2]
| bool sen::Callable::operator!= |
( |
const Callable & | other | ) |
const |
|
nodiscardnoexceptinherited |
◆ checkSpec()
Throws std::exception if the callable spec is invalid.
◆ getCallableSpec()
| const CallableSpec & sen::Callable::getCallableSpec |
( |
| ) |
const |
|
nodiscardprotectednoexceptinherited |
The spec of this callable.
The documentation for this class was generated from the following file: