1
0
mirror of https://github.com/tumic0/GPXSee.git synced 2024-11-27 21:24:47 +01:00

Added missing namespace

This commit is contained in:
Martin Tůma 2021-09-20 21:43:17 +02:00
parent f5078074cf
commit e47cbc9af3
10 changed files with 38 additions and 27 deletions

View File

@ -5,6 +5,8 @@
#define LS(val, bits) ((qint32)(((quint32)(val))<<(bits)))
namespace Garmin
{
inline double toWGS32(qint32 v)
{
return ((double)v / (double)(1U<<31)) * 180.0;
@ -37,5 +39,6 @@ inline quint8 byteSize(quint32 val)
return ret;
}
}
#endif // GARMIN_H

View File

@ -13,6 +13,7 @@
#include "address.h"
#include "gpiparser.h"
using namespace Garmin;
struct RecordHeader {
quint16 type;

View File

@ -1,7 +1,7 @@
#include "common/garmin.h"
#include "huffmantable.h"
using namespace Garmin;
using namespace IMG;
static inline quint32 readVUint32(const quint8 *buffer, quint32 bytes)

View File

@ -2,6 +2,7 @@
#include "subfile.h"
#include "huffmantext.h"
using namespace Garmin;
using namespace IMG;
static inline quint32 readVUint32(const quint8 *buffer, quint32 bytes)

View File

@ -2,6 +2,7 @@
#include "rgnfile.h"
#include "lblfile.h"
using namespace Garmin;
using namespace IMG;
enum Charset {Normal, Symbol, Special};

View File

@ -6,6 +6,7 @@
#include "rgnfile.h"
#include "netfile.h"
using namespace Garmin;
using namespace IMG;
static bool readAdjCounts(BitStream4R &bs, QVector<quint16> &cnts, quint16 &mask)

View File

@ -1,6 +1,7 @@
#include "bitstream.h"
#include "nodfile.h"
using namespace Garmin;
using namespace IMG;
#define ARRAY_SIZE(array) \

View File

@ -20,8 +20,9 @@ public:
quint32 id() const {return _id;}
const RectC rect() const
{
return RectC(Coordinates(toWGS32(_rect.left()), toWGS32(_rect.top())),
Coordinates(toWGS32(_rect.right()), toWGS32(_rect.bottom())));
return RectC(Coordinates(Garmin::toWGS32(_rect.left()),
Garmin::toWGS32(_rect.top())), Coordinates(
Garmin::toWGS32(_rect.right()), Garmin::toWGS32(_rect.bottom())));
}
bool isValid() const {return (_lbl != 0);}

View File

@ -8,6 +8,7 @@
#include "nodfile.h"
#include "rgnfile.h"
using namespace Garmin;
using namespace IMG;
#define MASK(bits) ((1U << (bits)) - 1U)

View File

@ -2,6 +2,7 @@
#include "subdiv.h"
#include "trefile.h"
using namespace Garmin;
using namespace IMG;
static inline double RB(qint32 val)