|
|
|
@ -16,6 +16,7 @@
|
|
|
|
* along with this program; if not, write to the Free Software
|
|
|
|
* along with this program; if not, write to the Free Software
|
|
|
|
* Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
|
|
|
|
* Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
|
|
|
|
*/
|
|
|
|
*/
|
|
|
|
|
|
|
|
#pragma once
|
|
|
|
|
|
|
|
|
|
|
|
#include <string>
|
|
|
|
#include <string>
|
|
|
|
#include <vector>
|
|
|
|
#include <vector>
|
|
|
|
@ -24,6 +25,58 @@
|
|
|
|
|
|
|
|
|
|
|
|
using namespace libconfig;
|
|
|
|
using namespace libconfig;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
typedef struct {
|
|
|
|
|
|
|
|
std::string callsign;
|
|
|
|
|
|
|
|
std::string address;
|
|
|
|
|
|
|
|
std::string hbAddress;
|
|
|
|
|
|
|
|
unsigned int hbPort;
|
|
|
|
|
|
|
|
std::string icomAddress;
|
|
|
|
|
|
|
|
unsigned int icomPort;
|
|
|
|
|
|
|
|
double latitude;
|
|
|
|
|
|
|
|
double longitude;
|
|
|
|
|
|
|
|
std::string description1;
|
|
|
|
|
|
|
|
std::string description2;
|
|
|
|
|
|
|
|
std::string url;
|
|
|
|
|
|
|
|
} TGateway;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
typedef struct {
|
|
|
|
|
|
|
|
std::string band;
|
|
|
|
|
|
|
|
std::string callsign;
|
|
|
|
|
|
|
|
std::string reflector;
|
|
|
|
|
|
|
|
std::string address;
|
|
|
|
|
|
|
|
unsigned int port;
|
|
|
|
|
|
|
|
HW_TYPE hwType;
|
|
|
|
|
|
|
|
bool reflectorAtStartup;
|
|
|
|
|
|
|
|
RECONNECT reflectorReconnect;
|
|
|
|
|
|
|
|
#ifdef USE_DRATS
|
|
|
|
|
|
|
|
bool dRatsEnabled;
|
|
|
|
|
|
|
|
#endif
|
|
|
|
|
|
|
|
double frequency;
|
|
|
|
|
|
|
|
double offset;
|
|
|
|
|
|
|
|
double range;
|
|
|
|
|
|
|
|
double latitude;
|
|
|
|
|
|
|
|
double longitude;
|
|
|
|
|
|
|
|
double agl;
|
|
|
|
|
|
|
|
std::string description1;
|
|
|
|
|
|
|
|
std::string description2;
|
|
|
|
|
|
|
|
std::string url;
|
|
|
|
|
|
|
|
char band1;
|
|
|
|
|
|
|
|
char band2;
|
|
|
|
|
|
|
|
char band3;
|
|
|
|
|
|
|
|
} TRepeater;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
typedef struct {
|
|
|
|
|
|
|
|
std::string hostname;
|
|
|
|
|
|
|
|
std::string username;
|
|
|
|
|
|
|
|
std::string password;
|
|
|
|
|
|
|
|
bool isQuadNet;
|
|
|
|
|
|
|
|
} TircDDB;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
typedef struct {
|
|
|
|
|
|
|
|
std::string logDir;
|
|
|
|
|
|
|
|
std::string dataDir;
|
|
|
|
|
|
|
|
} Tpaths;
|
|
|
|
|
|
|
|
|
|
|
|
class CDStarGatewayConfig {
|
|
|
|
class CDStarGatewayConfig {
|
|
|
|
public:
|
|
|
|
public:
|
|
|
|
CDStarGatewayConfig(const std::string &pathname);
|
|
|
|
CDStarGatewayConfig(const std::string &pathname);
|
|
|
|
|