1
0
mirror of https://github.com/JvanKatwijk/qt-dab.git synced 2025-10-06 08:12:40 +02:00
Files
SDR-DAB_Qt-DAB/includes/support/cacheElement.h

74 lines
1.7 KiB
C
Raw Normal View History

2023-12-29 18:36:02 +01:00
#
/*
2024-02-25 14:18:27 +01:00
* Copyright (C) 2015, 2023
2023-12-29 18:36:02 +01:00
* Jan van Katwijk (J.vanKatwijk@gmail.com)
* Lazy Chair Computing
*
2024-02-25 14:18:27 +01:00
* This file is part of the Qt-DAB
2023-12-29 18:36:02 +01:00
*
* Qt-DAB is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* Qt-DAB is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
2024-02-25 14:18:27 +01:00
* along with Qt-DAB; if not, write to the Free Software
2023-12-29 18:36:02 +01:00
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*/
#pragma once
2024-02-25 14:18:27 +01:00
//
// In case there is aaccess to a database, the elements of
// that database are read in and per line converted to am accessible
// struct
#include <string>
#include <QString>
2023-12-29 18:36:02 +01:00
class cacheElement {
public:
bool valid;
2024-02-25 14:18:27 +01:00
QString country;
QString channel;
QString ensemble;
2024-02-25 14:18:27 +01:00
uint16_t Eid;
int8_t mainId;
int8_t subId;
2024-02-25 14:18:27 +01:00
QString transmitterName;
float latitude;
float longitude;
float power;
float height;
cacheElement () {
valid = false;
country = "not known";
channel = "";
ensemble = "";
Eid = 0;
mainId = -1;
subId = -1;
transmitterName = "not in database";
latitude = 0;
longitude = 0;
power = 0;
height = 0;
}
~cacheElement () {}
};
2023-12-29 18:36:02 +01:00
2024-04-03 18:44:52 +02:00
struct transmitterDesc {
int tiiValue;
bool isStrongest;
2024-10-17 15:44:28 +02:00
bool isFurthest;
2024-04-03 18:44:52 +02:00
cacheElement theTransmitter;
float distance;
float corner;
2024-10-17 15:44:28 +02:00
2024-04-03 18:44:52 +02:00
};