cutelyst 4.3.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;
22class CUTELYST_LIBRARY DispatchTypePath final : public DispatchType
23{
24 Q_OBJECT
25 Q_DECLARE_PRIVATE(DispatchTypePath)
26public:
30 explicit DispatchTypePath(QObject *parent = nullptr);
34 ~DispatchTypePath() override;
35
36 QByteArray list() const override;
37
38 MatchType match(Context *c, QStringView path, const QStringList &args) const override;
39
40 bool registerAction(Action *action) override;
41
42 bool inUse() override;
43
48 QString uriForAction(Action *action, const QStringList &captures) const override;
49
50protected:
51 DispatchTypePathPrivate *d_ptr;
52};
53
54} // namespace Cutelyst
55
56#endif // DispatchTypePath_H
This class represents a Cutelyst Action.
Definition action.h:36
The Cutelyst Context.
Definition context.h:42
Describes a path dispatch type.
Abstract class to described a dispatch type.
The Cutelyst namespace holds all public Cutelyst API.