/src/exiv2/include/exiv2/params.hpp
Line | Count | Source |
1 | | // SPDX-License-Identifier: GPL-2.0-or-later |
2 | | |
3 | | #ifndef EXIV2_PARAMS_HPP |
4 | | #define EXIV2_PARAMS_HPP |
5 | | |
6 | | // ***************************************************************************** |
7 | | #include "exiv2lib_export.h" |
8 | | |
9 | | // ***************************************************************************** |
10 | | // namespace extensions |
11 | | namespace Exiv2 { |
12 | | |
13 | | /*! |
14 | | @brief Parameters for the "decode" functions. There are a fairly large |
15 | | number of static "decode" functions. Examples are `ExifParser::decode`, |
16 | | `TiffParser::decode`, and `XmpParser::decode`. This class is a common |
17 | | set of parameters for those functions. It currently only contains a |
18 | | `max_recursion_depth_` field, but it will make it easier to add new |
19 | | parameters in the future. |
20 | | */ |
21 | | class EXIV2API DecodeParams { |
22 | | public: |
23 | | explicit DecodeParams(size_t max_recursion_depth); |
24 | | |
25 | 114k | size_t max_recursion_depth() const { |
26 | 114k | return max_recursion_depth_; |
27 | 114k | } |
28 | | |
29 | | private: |
30 | | const size_t max_recursion_depth_; |
31 | | }; |
32 | | |
33 | | } // namespace Exiv2 |
34 | | |
35 | | #endif // EXIV2_PARAMS_HPP |