DUNE-DAQ
DUNE Trigger and Data Acquisition software
Loading...
Searching...
No Matches
Validator.hpp
Go to the documentation of this file.
1// DUNE DAQ modification notice:
2// This file has been modified from the original ATLAS dbe source for the DUNE DAQ project.
3// Fork baseline commit: dbe-02-12-17 (2022-05-12).
4// Renamed since fork: yes (from dbe/Validator.h to include/dbe/Validator.hpp).
5
6#ifndef VALIDATOR_H
7#define VALIDATOR_H
8
9#include <QStringList>
10#include <QValidator>
11
12namespace dbe {
13class ValidatorAcceptMatch : public QValidator
14{
15 Q_OBJECT
16public:
17 ValidatorAcceptMatch(QVariant& Storage, QObject* parent = 0);
18 QValidator::State validate(QString& Input, int& Position) const;
19
20private:
21 QStringList List;
22};
23
24class ValidatorAcceptNoMatch : public QValidator
25{
26 Q_OBJECT
27public:
28 ValidatorAcceptNoMatch(QVariant& Storage, QObject* parent = 0);
29 QValidator::State validate(QString& Input, int& Position) const;
30
31private:
32 QStringList List;
33};
34
35} // end namespace dbe
36#endif // VALIDATOR_H
ValidatorAcceptMatch(QVariant &Storage, QObject *parent=0)
Including DBE.
Definition Validator.cpp:9
ValidatorAcceptNoMatch(QVariant &Storage, QObject *parent=0)
Definition Validator.cpp:29
Include QT Headers.