File indexing completed on 2025-01-30 10:11:39
0001
0002
0003
0004
0005
0006
0007
0008
0009 #if !defined(Magick_SecurityPolicy_header)
0010 #define Magick_SecurityPolicy_header
0011
0012 #include "Magick++/Include.h"
0013 #include <string>
0014
0015 namespace Magick
0016 {
0017 class MagickPPExport SecurityPolicy
0018 {
0019 public:
0020
0021
0022 static bool precision(const int precision_);
0023
0024
0025 static bool anonymousCacheMemoryMap();
0026
0027
0028 static bool anonymousSystemMemoryMap();
0029
0030
0031 static bool maxMemoryRequest(const MagickSizeType limit_);
0032
0033
0034 static bool shred(const int passes_);
0035
0036 private:
0037 SecurityPolicy(void);
0038
0039 static bool setValue(const PolicyDomain domain_, const std::string name_,
0040 const std::string value_);
0041
0042 template <typename T>
0043 static std::string toString(const T& value);
0044
0045 };
0046
0047 }
0048
0049 #endif