9 #define MAGICKCORE_IMPLEMENTATION 1 10 #define MAGICK_PLUSPLUS_IMPLEMENTATION 1 22 return(setValue(CachePolicyDomain,
"memory-map",
"anonymous"));
27 return(setValue(SystemPolicyDomain,
"memory-map",
"anonymous"));
35 value=toString(precision_);
36 return(setValue(SystemPolicyDomain,
"precision",value));
44 value=toString(limit_);
45 return(setValue(SystemPolicyDomain,
"max-memory-request",value));
53 value=toString(passes_);
54 return(setValue(SystemPolicyDomain,
"shred",value));
57 Magick::SecurityPolicy::SecurityPolicy()
61 bool Magick::SecurityPolicy::setValue(
const PolicyDomain domain_,
62 const std::string name_,
const std::string value_)
68 status=MagickCore::SetMagickSecurityPolicyValue(domain_,name_.c_str(),
69 value_.c_str(),exceptionInfo);
71 return(status != MagickFalse);
75 std::string Magick::SecurityPolicy::toString(
const T& value)
static bool maxMemoryRequest(const MagickSizeType limit_)
static bool precision(const int precision_)
static bool anonymousSystemMemoryMap()
static bool anonymousCacheMemoryMap()
static bool shred(const int passes_)
#define ThrowPPException(quiet)