Debian Codegraph @

podofo/tools/podofoimg2pdf/ImageConverter.h

raw
1 /**
2 * SPDX-FileCopyrightText: (C) 2010 Dominik Seichter <[email protected]>
3 * SPDX-License-Identifier: GPL-2.0-or-later
4 */
5
6 #ifndef IMAGECONVERTER_H
7 #define IMAGECONVERTER_H
8
9 #include <string>
10 #include <vector>
11
12 class ImageConverter
13 {
14 public:
15 ImageConverter();
16
17 inline void SetOutputFilename(const std::string_view& outputPath)
18 {
19 m_outputPath = outputPath;
20 }
21
22 inline void AddImage(const std::string_view& image)
23 {
24 m_images.push_back(std::string(image));
25 }
26
27 inline void SetUseImageSize(bool imageSize)
28 {
29 m_useImageSize = imageSize;
30 }
31
32 void Work();
33
34 private:
35 std::vector<std::string> m_images;
36 std::string m_outputPath;
37 bool m_useImageSize;
38 };
39
40 #endif // IMAGECONVERTER_H