Go to the source code of this file.
|
#define | OT_ADD_HANDLER(___functionName, ___className, ___actionName, ___messageTypeFlags) ot::ActionHandleConnector<___className> ActionHandleConnector##___functionName##=ot::ActionHandleConnector<___className>(___actionName, ___messageTypeFlags, this, &___className::___functionName) |
|
#define | OT_HANDLER(___functionName, ___className, ___actionName, ___messageTypeFlags) std::string ___functionName(ot::JsonDocument& _document); OT_ADD_HANDLER(___functionName, ___className, ___actionName, ___messageTypeFlags); |
| Creates a function that will be registered in the dispatch system. The generated function will look like this: std::string <functionName>(JsonDocument& _document);.
|
|
#define | OT_ACTIONLIST(...) std::list<std::string>({__VA_ARGS__}) |
| Creates a string list.
|
|
- Author
- Alexander Kuester (alexk95)
- Date
- March 2024
◆ OT_ACTIONLIST
#define OT_ACTIONLIST |
( |
| ... | ) |
std::list<std::string>({__VA_ARGS__}) |
◆ OT_ADD_HANDLER
#define OT_ADD_HANDLER |
( |
| ___functionName, |
|
|
| ___className, |
|
|
| ___actionName, |
|
|
| ___messageTypeFlags ) ot::ActionHandleConnector<___className> ActionHandleConnector##___functionName##=ot::ActionHandleConnector<___className>(___actionName, ___messageTypeFlags, this, &___className::___functionName) |
◆ OT_HANDLER
#define OT_HANDLER |
( |
| ___functionName, |
|
|
| ___className, |
|
|
| ___actionName, |
|
|
| ___messageTypeFlags ) std::string ___functionName(ot::JsonDocument& _document); OT_ADD_HANDLER(___functionName, ___className, ___actionName, ___messageTypeFlags); |
Creates a function that will be registered in the dispatch system. The generated function will look like this: std::string <functionName>(JsonDocument& _document);.
- Parameters
-
___functionName | The name of the new function. |
___className | The name of the class where the function is created at. |
___actionName | The action that should be registered in the dispatch system. |