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 <QValidator>
10#include <QStringList>
11
12namespace dbe
13{
14class ValidatorAcceptMatch: public QValidator
15{
16 Q_OBJECT
17public:
18 ValidatorAcceptMatch ( QVariant & Storage, QObject * parent = 0 );
19 QValidator::State validate ( QString & Input, int & Position ) const;
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;
30private:
31 QStringList List;
32};
33
34} //end namespace dbe
35#endif // VALIDATOR_H
ValidatorAcceptMatch(QVariant &Storage, QObject *parent=0)
Including DBE.
Definition Validator.cpp:9
ValidatorAcceptNoMatch(QVariant &Storage, QObject *parent=0)
Definition Validator.cpp:31
Include QT Headers.