2018-04-07 08:44:39 +00:00
|
|
|
#ifndef UTIL_H
|
|
|
|
#define UTIL_H
|
|
|
|
#include <QString>
|
|
|
|
#include <map>
|
2018-04-12 08:34:00 +00:00
|
|
|
#include <cmath>
|
|
|
|
|
|
|
|
#ifndef M_PI
|
|
|
|
#define M_PI 3.14159265358979323846
|
|
|
|
#endif
|
2018-04-07 08:44:39 +00:00
|
|
|
|
|
|
|
QString valueOfKeyInMapOrEmpty(const std::map<QString, QString> &map, const QString &key);
|
|
|
|
bool isTrueValueString(const QString &str);
|
|
|
|
bool isFloatEqual(float a, float b);
|
|
|
|
|
|
|
|
#endif
|