#ifndef OPENMW_COMPONENTS_SETTINGS_SANITIZERIMPL_H #define OPENMW_COMPONENTS_SETTINGS_SANITIZERIMPL_H #include "sanitizer.hpp" #include #include #include #include #include #include namespace Settings { std::unique_ptr> makeMaxSanitizerFloat(float max); std::unique_ptr> makeMaxSanitizerInt(int max); std::unique_ptr> makeMaxSanitizerSize(std::size_t max); std::unique_ptr> makeMaxSanitizerUInt64(std::uint64_t max); std::unique_ptr> makeMaxStrictSanitizerFloat(float max); std::unique_ptr> makeMaxStrictSanitizerVec3f(const osg::Vec3f& max); std::unique_ptr> makeClampSanitizerFloat(float min, float max); std::unique_ptr> makeClampSanitizerDouble(double min, double max); std::unique_ptr> makeClampSanitizerInt(int min, int max); std::unique_ptr> makeClampStrictMaxSanitizerFloat(float min, float max); std::unique_ptr> makeEnumSanitizerInt(std::initializer_list values); std::unique_ptr> makeEnumSanitizerString(std::initializer_list values); std::unique_ptr> makeEqualOrMaxSanitizerFloat(float equal, float max); } #endif