CustusX  20.03-rc1
An IGT application
cxTypeConversions.h File Reference
#include "cxResourceExport.h"
#include <string>
#include <vector>
#include <QString>
#include <QVariant>
#include <QDomDocument>
#include <QColor>
#include <boost/lexical_cast.hpp>

Go to the source code of this file.

Classes

class  cstring_cast_Placeholder
 

Functions

template<class T >
std::string string_cast (const T &val)
 
template<class T >
QString qstring_cast (const T &val)
 
template<class T >
cstring_cast_Placeholder cstring_cast (const T &val)
 
template<>
cxResource_EXPORT cstring_cast_Placeholder cstring_cast< QString > (const QString &val)
 
template<>
cxResource_EXPORT cstring_cast_Placeholder cstring_cast< QVariant > (const QVariant &val)
 
cxResource_EXPORT std::ostream & operator<< (std::ostream &str, const QString &qstring)
 
cxResource_EXPORT std::vector< double > convertQString2DoubleVector (const QString &input, bool *ok=0)
 
template<class T >
QString streamXml2String (T &val)
 
template<>
cxResource_EXPORT QString streamXml2String (QString &val)
 
cxResource_EXPORT QString color2string (QColor color)
 
cxResource_EXPORT QColor string2color (QString input, QColor defaultValue=QColor("green"))