cutelyst 4.0.0
A C++ Web Framework built on top of Qt, using the simple approach of Catalyst (Perl) framework.
dispatchtypepath.h
1/*
2 * SPDX-FileCopyrightText: (C) 2013-2022 Daniel Nicoletti <dantti12@gmail.com>
3 * SPDX-License-Identifier: BSD-3-Clause
4 */
5#ifndef CUTELYST_DISPATCHTYPEPATH_H
6#define CUTELYST_DISPATCHTYPEPATH_H
7
8#include <Cutelyst/action.h>
9#include <Cutelyst/cutelyst_global.h>
10#include <Cutelyst/dispatchtype.h>
11
12namespace Cutelyst {
13
14class DispatchTypePathPrivate;
15class CUTELYST_LIBRARY DispatchTypePath final : public DispatchType
16{
17 Q_OBJECT
18 Q_DECLARE_PRIVATE(DispatchTypePath)
19public:
23 explicit DispatchTypePath(QObject *parent = nullptr);
24 ~DispatchTypePath() override;
25
26 QByteArray list() const override;
27
28 MatchType match(Context *c, QStringView path, const QStringList &args) const override;
29
30 bool registerAction(Action *action) override;
31
32 bool inUse() override;
33
38 QString uriForAction(Action *action, const QStringList &captures) const override;
39
40protected:
41 DispatchTypePathPrivate *d_ptr;
42};
43
44} // namespace Cutelyst
45
46#endif // DispatchTypePath_H
This class represents a Cutelyst Action.
Definition: action.h:35
The Cutelyst Context.
Definition: context.h:38
The Cutelyst namespace holds all public Cutelyst API.
Definition: Mainpage.dox:8