www/api/Magick++/SecurityPolicy_8h_source.html
| Magick++ 7.1.0 |
SecurityPolicy.h
Go to the documentation of this file.
1 // This may look like C code, but it is really -*- C++ -*-
2 //
3 // Copyright @ 2018 ImageMagick Studio LLC, a non-profit organization
4 // dedicated to making software imaging solutions freely available.
5 //
6 // Definition of the security policy.
7 //
8
9 #if !defined(Magick_SecurityPolicy_header)
10 #define Magick_SecurityPolicy_header
11
12 #include "Magick++/Include.h"
13 #include <string>
14
15 namespace Magick
16 {
17class MagickPPExport SecurityPolicy
18 {
19public:
20
21// The maximum number of significant digits to be printed.
22static bool precision(const int precision_);
23
24// Enables anonymous mapping for pixel cache.
25static bool anonymousCacheMemoryMap();
26
27// Enables anonymous virtual memory.
28static bool anonymousSystemMemoryMap();
29
30// The memory request limit in bytes.
31static bool maxMemoryRequest(const MagickSizeType limit_);
32
33// The number of passes to use when shredding files.
34static bool shred(const int passes_);
35
36private:
37SecurityPolicy(void);
38
39static bool setValue(const PolicyDomain domain_, const std::string name_,
40const std::string value_);
41
42template <typename T>
43static std::string toString(const T& value);
44
45 }; // class SecurityPolicy
46
47 } // Magick namespace
48
49 #endif // Magick_SecurityPolicy_header
#define MagickPPExport
Definition: Include.h:297
Definition: Blob.h:17
Definition: SecurityPolicy.h:17