20 lines
		
	
	
		
			351 B
		
	
	
	
		
			C++
		
	
	
	
			
		
		
	
	
			20 lines
		
	
	
		
			351 B
		
	
	
	
		
			C++
		
	
	
	
#pragma once
 | 
						|
 | 
						|
#include <map>
 | 
						|
#include <stdexcept>
 | 
						|
#include <string>
 | 
						|
 | 
						|
namespace waybar::util {
 | 
						|
 | 
						|
template <typename EnumType>
 | 
						|
struct EnumParser {
 | 
						|
 public:
 | 
						|
  EnumParser();
 | 
						|
  ~EnumParser();
 | 
						|
 | 
						|
  EnumType parseStringToEnum(const std::string& str,
 | 
						|
                             const std::map<std::string, EnumType>& enumMap);
 | 
						|
};
 | 
						|
 | 
						|
}  // namespace waybar::util
 |