1
0
mirror of https://github.com/tumic0/GPXSee.git synced 2025-02-01 01:25:13 +01:00
GPXSee/src/common/util.h

23 lines
459 B
C++

#ifndef UTIL_H
#define UTIL_H
#include <QString>
class QTemporaryDir;
#define ARRAY_SIZE(array) \
(sizeof(array) / sizeof(array[0]))
namespace Util
{
int log2i(unsigned val);
int str2int(const char *str, int len);
double niceNum(double x, bool round);
QString file2name(const QString &path);
QString displayName(const QString &path);
const QTemporaryDir &tempDir();
bool isSQLiteDB(const QString &path, QString &errorString);
}
#endif // UTIL_H