Mercurial > hg > orthanc
comparison OrthancServer/Sources/Database/Compatibility/GenericFind.h @ 5554:12d8a1a266e9 find-refactoring
introduction of FindRequest and FindResponse
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Mon, 15 Apr 2024 16:13:24 +0200 |
parents | |
children | b0b5546f1b9f |
comparison
equal
deleted
inserted
replaced
5549:dcbf0c776945 | 5554:12d8a1a266e9 |
---|---|
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-2024 Osimis S.A., Belgium | |
6 * Copyright (C) 2021-2024 Sebastien Jodogne, ICTEAM UCLouvain, Belgium | |
7 * | |
8 * This program is free software: you can redistribute it and/or | |
9 * modify it under the terms of the GNU General Public License as | |
10 * published by the Free Software Foundation, either version 3 of the | |
11 * License, or (at your option) any later version. | |
12 * | |
13 * This program is distributed in the hope that it will be useful, but | |
14 * WITHOUT ANY WARRANTY; without even the implied warranty of | |
15 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | |
16 * General Public License for more details. | |
17 * | |
18 * You should have received a copy of the GNU General Public License | |
19 * along with this program. If not, see <http://www.gnu.org/licenses/>. | |
20 **/ | |
21 | |
22 | |
23 #pragma once | |
24 | |
25 #include "../IDatabaseWrapper.h" | |
26 | |
27 namespace Orthanc | |
28 { | |
29 namespace Compatibility | |
30 { | |
31 class GenericFind : public boost::noncopyable | |
32 { | |
33 private: | |
34 IDatabaseWrapper::ITransaction& transaction_; | |
35 | |
36 public: | |
37 GenericFind(IDatabaseWrapper::ITransaction& transaction) : | |
38 transaction_(transaction) | |
39 { | |
40 } | |
41 | |
42 void Execute(FindResponse& response, | |
43 const FindRequest& request); | |
44 }; | |
45 } | |
46 } |