cutelyst  4.5.1
A C++ Web Framework built on top of Qt, using the simple approach of Catalyst (Perl) framework.
actionchain.h
1 /*
2  * SPDX-FileCopyrightText: (C) 2015-2022 Daniel Nicoletti <dantti12@gmail.com>
3  * SPDX-License-Identifier: BSD-3-Clause
4  */
5 #ifndef ACTIONCHAIN_H
6 #define ACTIONCHAIN_H
7 
8 #include <Cutelyst/action.h>
9 #include <Cutelyst/cutelyst_export.h>
10 
11 #include <QtCore/qobject.h>
12 
13 namespace Cutelyst {
14 
15 class ActionChainPrivate;
25 class CUTELYST_EXPORT ActionChain : public Action
26 {
27  Q_OBJECT
28  Q_DECLARE_PRIVATE(ActionChain)
29 public:
33  explicit ActionChain(const ActionList &chain, QObject *parent = nullptr);
34 
38  virtual ~ActionChain() override = default;
39 
43  [[nodiscard]] ActionList chain() const noexcept;
44 
45  qint8 numberOfCaptures() const noexcept override;
46 
47 protected:
48  bool doExecute(Context *c) override;
49 };
50 
51 } // namespace Cutelyst
52 
53 #endif // ACTIONCHAIN_H
Holds a chain of Cutelyst actions.
Definition: actionchain.h:26
virtual ~ActionChain() override=default
This class represents a Cutelyst Action.
Definition: action.h:35
The Cutelyst Context.
Definition: context.h:42
The Cutelyst namespace holds all public Cutelyst API.