Mercurial > hg > orthanc
comparison OrthancServer/Sources/Search/IDatabaseConstraint.h @ 5828:7030fa489669 find-refactoring
tools/find: QueryMetadata
author | Alain Mazy <am@orthanc.team> |
---|---|
date | Mon, 07 Oct 2024 15:19:26 +0200 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
5827:976872a99d39 | 5828:7030fa489669 |
---|---|
1 /** | |
2 * Orthanc - A Lightweight, RESTful DICOM Store | |
3 * Copyright (C) 2012-2016 Sebastien Jodogne, Medical Physics | |
4 * Department, University Hospital of Liege, Belgium | |
5 * Copyright (C) 2017-2023 Osimis S.A., Belgium | |
6 * Copyright (C) 2024-2024 Orthanc Team SRL, Belgium | |
7 * Copyright (C) 2021-2024 Sebastien Jodogne, ICTEAM UCLouvain, Belgium | |
8 * | |
9 * This program is free software: you can redistribute it and/or | |
10 * modify it under the terms of the GNU General Public License as | |
11 * published by the Free Software Foundation, either version 3 of the | |
12 * License, or (at your option) any later version. | |
13 * | |
14 * This program is distributed in the hope that it will be useful, but | |
15 * WITHOUT ANY WARRANTY; without even the implied warranty of | |
16 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | |
17 * General Public License for more details. | |
18 * | |
19 * You should have received a copy of the GNU General Public License | |
20 * along with this program. If not, see <http://www.gnu.org/licenses/>. | |
21 **/ | |
22 | |
23 | |
24 #pragma once | |
25 | |
26 #include "../ServerEnumerations.h" | |
27 #include <boost/noncopyable.hpp> | |
28 | |
29 namespace Orthanc | |
30 { | |
31 class IDatabaseConstraint : public boost::noncopyable | |
32 { | |
33 public: | |
34 virtual ~IDatabaseConstraint() | |
35 { | |
36 } | |
37 | |
38 virtual ConstraintType GetConstraintType() const = 0; | |
39 | |
40 virtual size_t GetValuesCount() const = 0; | |
41 | |
42 virtual const std::string& GetValue(size_t index) const = 0; | |
43 | |
44 virtual const std::string& GetSingleValue() const = 0; | |
45 | |
46 virtual bool IsCaseSensitive() const = 0; | |
47 | |
48 virtual bool IsMandatory() const = 0; | |
49 }; | |
50 } |