Line |
Branch |
Exec |
Source |
1 |
|
|
/************************************************************************ |
2 |
|
|
* |
3 |
|
|
* Copyright (C) 2009-2024 IRCAD France |
4 |
|
|
* Copyright (C) 2012-2019 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 |
|
|
#pragma once |
24 |
|
|
|
25 |
|
|
#include <sight/io/itk/config.hpp> |
26 |
|
|
|
27 |
|
|
#include <core/location/single_folder.hpp> |
28 |
|
|
#include <core/tools/progress_adviser.hpp> |
29 |
|
|
|
30 |
|
|
#include <data/image.hpp> |
31 |
|
|
|
32 |
|
|
#include <io/__/writer/generic_object_writer.hpp> |
33 |
|
|
|
34 |
|
|
#include <filesystem> |
35 |
|
|
|
36 |
|
|
namespace sight::io::itk |
37 |
|
|
{ |
38 |
|
|
|
39 |
|
|
class SIGHT_IO_ITK_CLASS_API jpg_image_writer : public writer::generic_object_writer<data::image>, |
40 |
|
|
public core::location::single_folder, |
41 |
|
|
public core::tools::progress_adviser |
42 |
|
|
{ |
43 |
|
|
public: |
44 |
|
|
|
45 |
|
✗ |
SIGHT_DECLARE_CLASS(jpg_image_writer, io::writer::generic_object_writer<data::image>); |
46 |
1/2
✗ Branch 2 not taken.
✓ Branch 3 taken 3 times.
|
3 |
SIGHT_ALLOW_SHARED_FROM_THIS(); |
47 |
|
|
|
48 |
|
6 |
SIGHT_IO_ITK_API ~jpg_image_writer() override = default; |
49 |
|
|
|
50 |
|
|
SIGHT_IO_ITK_API void write() override; |
51 |
|
|
|
52 |
|
|
SIGHT_IO_ITK_API std::string extension() const override; |
53 |
|
|
}; |
54 |
|
|
|
55 |
|
|
} // namespace sight::io::itk |
56 |
|
|
|