|
cutelyst 4.0.0
A C++ Web Framework built on top of Qt, using the simple approach of Catalyst (Perl) framework.
|

Public Member Functions | |
| DispatchTypePath (QObject *parent=nullptr) | |
| bool | inUse () override |
| QByteArray | list () const override |
| list the registered actions To be implemented by subclasses More... | |
| MatchType | match (Context *c, QStringView path, const QStringList &args) const override |
| bool | registerAction (Action *action) override |
| registerAction More... | |
| QString | uriForAction (Action *action, const QStringList &captures) const override |
Public Member Functions inherited from Cutelyst::DispatchType | |
| DispatchType (QObject *parent=nullptr) | |
| virtual Action * | expandAction (const Context *c, Action *action) const |
| virtual bool | inUse ()=0 |
| virtual bool | isLowPrecedence () const |
| virtual QByteArray | list () const =0 |
| list the registered actions To be implemented by subclasses More... | |
| virtual MatchType | match (Context *c, QStringView path, const QStringList &args) const =0 |
| virtual bool | registerAction (Action *action) |
| registerAction More... | |
| virtual QString | uriForAction (Action *action, const QStringList &captures) const =0 |
Additional Inherited Members | |
Public Types inherited from Cutelyst::DispatchType | |
| enum | MatchType { NoMatch , PartialMatch , ExactMatch } |
Protected Member Functions inherited from Cutelyst::DispatchType | |
| void | setupMatchedAction (Context *c, Action *action) const |
Definition at line 15 of file dispatchtypepath.h.
|
explicit |
Constructs a DispatchTypePath object with the given parent.
Definition at line 16 of file dispatchtypepath.cpp.
|
override |
Definition at line 22 of file dispatchtypepath.cpp.
|
overridevirtual |
If false the dispatcher will be unregistered for performance reasons. This method can be used to prepare actions for dispatcher as in a Chain of Actions there is no garantee of registering order.
In the common case if the dispatcher has registered any action, or in some special case that it doesn't need actions it will return true.
Implements Cutelyst::DispatchType.
Definition at line 117 of file dispatchtypepath.cpp.
|
overridevirtual |
Implements Cutelyst::DispatchType.
Definition at line 27 of file dispatchtypepath.cpp.
References Cutelyst::Action::attribute(), Cutelyst::Action::numberOfArgs(), and Cutelyst::Component::reverse().
|
overridevirtual |
Return true if the dispatchType matches the given path
Implements Cutelyst::DispatchType.
Definition at line 66 of file dispatchtypepath.cpp.
References Cutelyst::Action::numberOfArgs(), Cutelyst::Request::setArguments(), Cutelyst::Request::setMatch(), and Cutelyst::DispatchType::setupMatchedAction().
|
overridevirtual |
| action |
Reimplemented from Cutelyst::DispatchType.
Definition at line 100 of file dispatchtypepath.cpp.
References Cutelyst::Action::attributes().
|
overridevirtual |
Get a URI part for an action Always returns NULL if captures is not empty since Path actions don't have captures
Implements Cutelyst::DispatchType.
Definition at line 123 of file dispatchtypepath.cpp.
References Cutelyst::Action::attributes().