Line |
Branch |
Exec |
Source |
1 |
|
|
/************************************************************************ |
2 |
|
|
* |
3 |
|
|
* Copyright (C) 2009-2023 IRCAD France |
4 |
|
|
* Copyright (C) 2012-2016 IHU Strasbourg |
5 |
|
|
* |
6 |
|
|
* This file is part of Sight. |
7 |
|
|
* |
8 |
|
|
* Sight is free software: you can redistribute it and/or modify it under |
9 |
|
|
* the terms of the GNU Lesser General Public License as published by |
10 |
|
|
* the Free Software Foundation, either version 3 of the License, or |
11 |
|
|
* (at your option) any later version. |
12 |
|
|
* |
13 |
|
|
* Sight is distributed in the hope that it will be useful, |
14 |
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of |
15 |
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
16 |
|
|
* GNU Lesser General Public License for more details. |
17 |
|
|
* |
18 |
|
|
* You should have received a copy of the GNU Lesser General Public |
19 |
|
|
* License along with Sight. If not, see <https://www.gnu.org/licenses/>. |
20 |
|
|
* |
21 |
|
|
***********************************************************************/ |
22 |
|
|
|
23 |
|
|
#include "filter/dicom/registry/detail.hpp" |
24 |
|
|
|
25 |
|
|
#include <core/lazy_instantiator.hpp> |
26 |
|
|
|
27 |
|
|
namespace sight::filter::dicom::registry |
28 |
|
|
{ |
29 |
|
|
|
30 |
|
|
struct dicom_io_filter_registry_instantiator_tag {}; |
31 |
|
|
|
32 |
|
135 |
SPTR(type) get() |
33 |
|
|
{ |
34 |
|
135 |
using instantiator_t = core::lazy_instantiator<type, dicom_io_filter_registry_instantiator_tag>; |
35 |
|
135 |
return instantiator_t::get_instance(); |
36 |
|
|
} |
37 |
|
|
|
38 |
|
|
} // namespace sight::filter::dicom::registry |
39 |
|
|
|