5 #ifndef CUTELYSTVALIDATOR_H
6 #define CUTELYSTVALIDATOR_H
8 #include "validatorresult.h"
10 #include <Cutelyst/ParamsMultiMap>
11 #include <Cutelyst/Plugins/Utils/validator_export.h>
45 class ValidatorPrivate;
280 NoSpecialBehavior = 0,
283 FillStashOnError = 2,
293 Q_DECLARE_FLAGS(ValidatorFlags, ValidatorFlag)
301 explicit Validator(
const char *translationContext =
nullptr);
312 explicit Validator(std::initializer_list<ValidatorRule *> validators,
313 const char *translationContext =
nullptr);
351 ValidatorFlags flags = NoSpecialBehavior)
const;
368 const std::unique_ptr<ValidatorPrivate> d_ptr;
376 Q_DECLARE_OPERATORS_FOR_FLAGS(Cutelyst::Validator::ValidatorFlags)
The Cutelyst application.
Provides information about performed validations.
Base class for all validator rules.
Validation processor for input data.
The Cutelyst namespace holds all public Cutelyst API.