CustusX  2023.01.05-dev+develop.0da12
An IGT application
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(EXPORT, NS, ENUM_NAME)
 
#define DEFINE_ENUM_STRING_CONVERTERS_BEGIN(NS, ENUM_NAME, ENUM_SIZE)
 
#define 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)