18 #ifndef CUTELYST_CONTROLLER_H 19 #define CUTELYST_CONTROLLER_H 23 #include <Cutelyst/cutelyst_global.h> 24 #include <Cutelyst/action.h> 25 #include <Cutelyst/context.h> 26 #include <Cutelyst/request.h> 27 #include <Cutelyst/response.h> 30 #define C_PATH(X, Y) Q_CLASSINFO(STR(X ## _Path), STR(Y)) 31 #define C_NAMESPACE(value) Q_CLASSINFO("Namespace", value) 32 #define C_ATTR(X, Y) Q_CLASSINFO(STR(X), STR(Y)) Q_INVOKABLE 34 # define CActionFor(str) \ 35 ([this]() -> Cutelyst::Action * { \ 36 static thread_local Cutelyst::Action *action = \ 37 Cutelyst::Controller::actionFor(str); \ 44 class ControllerPrivate;
140 bool operator==(
const char *className);
170 ControllerPrivate *d_ptr;
180 #endif // CUTELYST_CONTROLLER_H This class represents a Cutelyst Action.
Cutelyst Controller base class
The Cutelyst namespace holds all public Cutelyst API.
The Cutelyst Application.