mirror of
				https://github.com/OpenMW/openmw.git
				synced 2025-10-31 13:56:38 +00:00 
			
		
		
		
	To make sure loaded settings have valid values doing the check once per loading. And to make access more efficient.
		
			
				
	
	
		
			15 lines
		
	
	
	
		
			275 B
		
	
	
	
		
			C++
		
	
	
	
	
	
			
		
		
	
	
			15 lines
		
	
	
	
		
			275 B
		
	
	
	
		
			C++
		
	
	
	
	
	
| #ifndef OPENMW_COMPONENTS_SETTINGS_SANITIZER_H
 | |
| #define OPENMW_COMPONENTS_SETTINGS_SANITIZER_H
 | |
| 
 | |
| namespace Settings
 | |
| {
 | |
|     template <class T>
 | |
|     struct Sanitizer
 | |
|     {
 | |
|         virtual ~Sanitizer() = default;
 | |
| 
 | |
|         virtual T apply(const T& value) const = 0;
 | |
|     };
 | |
| }
 | |
| 
 | |
| #endif
 |