Template Class EnumWrapper¶
Defined in File EnumWrapper.hpp
Class Documentation¶
-
template<typename E>
class EnumWrapper¶ A helper class to make configuring enums easier with boost::program_options.
This class provides a templated implementation of the instream operator necessary for enums to be read by boost::program_options. Also provided is a macro which will format the map that is required to go from the string representation in the config file to the values of the enum.
Public Functions
Public Static Functions
Friends
-
friend std::istream &operator>>(std::istream &is, EnumWrapper<E>&)¶
A templated input operator that uses the defined map to set the value of the wrapped enum.
-
friend std::istream &operator>>(std::istream &is, EnumWrapper<E>&)¶