FiReS  0.2.0
FiReS - Filter, Retrieval and Search
fires::EnumPropertyCaster< T, typename std::enable_if< std::is_enum< T >::value >::type > Class Template Reference
+ Inheritance diagram for fires::EnumPropertyCaster< T, typename std::enable_if< std::is_enum< T >::value >::type >:
+ Collaboration diagram for fires::EnumPropertyCaster< T, typename std::enable_if< std::is_enum< T >::value >::type >:

Public Member Functions

 EnumPropertyCaster (const std::map< T, std::string > &scalarToString_)
 
virtual int toInt (const Property &property, TIntRounding rounding=ROUND)
 
virtual std::string toString (const Property &property)
 
virtual void fromString (Property &property, const std::string &str)
 
virtual std::vector< std::string > categories (void) final
 
const std::map< T, std::string > & scalarToString (void)
 

Protected Attributes

std::map< T, std::string > _scalarToString
 
std::map< std::string, T > _stringToScalar
 

Additional Inherited Members

- Public Types inherited from fires::PropertyCaster
enum  TIntRounding { ROUND = 0, CEIL, FLOOR }
 

Detailed Description

template<typename T>
class fires::EnumPropertyCaster< T, typename std::enable_if< std::is_enum< T >::value >::type >

Definition at line 173 of file PropertyCaster.h.


The documentation for this class was generated from the following file: