Fraxinus  16.5.0-fx-rc5
An IGT application
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
cxEnumConverter.h File Reference
#include "cxResourceExport.h"
#include <string>
#include <boost/array.hpp>
#include <boost/algorithm/string.hpp>
#include <QString>
#include "cxTypeConversions.h"

Go to the source code of this file.

Classes

class  EnumConverter< ENUM, COUNT >
 Class for easy conversion between an enum and a QString. More...
 

Macros

#define SNW_DECLARE_ENUM_STRING_CONVERTERS(NS, ENUM_NAME)
 
#define SNW_DEFINE_ENUM_STRING_CONVERTERS_BEGIN(NS, ENUM_NAME, ENUM_SIZE)
 
#define SNW_DEFINE_ENUM_STRING_CONVERTERS_END(NS, ENUM_NAME, ENUM_SIZE)
 

Functions

template<class ENUM >
ENUM string2enum (const QString &val)
 
template<class ENUM >
QString enum2string (const ENUM &val)