refactor: Rename remaining "black" identifiers

This commit is contained in:
Lars Toenning
2024-11-10 21:50:35 +01:00
parent 6d1812b164
commit cc1e41fc59
579 changed files with 1758 additions and 1869 deletions

View File

@@ -1,8 +1,8 @@
// SPDX-FileCopyrightText: Copyright (C) 2014 swift Project Community / Contributors
// SPDX-License-Identifier: GPL-3.0-or-later OR LicenseRef-swift-pilot-client-1
#ifndef BLACKSAMPLE_WEATHERDATA_H
#define BLACKSAMPLE_WEATHERDATA_H
#ifndef SWIFT_SAMPLE_WEATHERDATA_H
#define SWIFT_SAMPLE_WEATHERDATA_H
// just a dummy header, documentation will go here

View File

@@ -20,7 +20,7 @@
//! \ingroup samplekmisc
using namespace swift::misc;
using namespace BlackSample;
using namespace swift::sample;
using namespace swift::core;
//! main

View File

@@ -1,8 +1,8 @@
// SPDX-FileCopyrightText: Copyright (C) 2014 swift Project Community / Contributors
// SPDX-License-Identifier: GPL-3.0-or-later OR LicenseRef-swift-pilot-client-1
#ifndef BLACKSAMPLE_BLACKMISC_H
#define BLACKSAMPLE_BLACKMISC_H
#ifndef SWIFT_SAMPLE_SWIFT_MISC_H
#define SWIFT_SAMPLE_SWIFT_MISC_H
// just a dummy header, documentation will go here

View File

@@ -22,7 +22,7 @@
#include <ctime>
#include <numeric>
namespace BlackSample
namespace swift::sample
{
int CSamplesAlgorithm::samples()
{

View File

@@ -4,10 +4,10 @@
//! \file
//! \ingroup samplemisc
#ifndef BLACKSAMPLE_SAMPLESALGORITHM_H
#define BLACKSAMPLE_SAMPLESALGORITHM_H
#ifndef SWIFT_SAMPLE_SAMPLESALGORITHM_H
#define SWIFT_SAMPLE_SAMPLESALGORITHM_H
namespace BlackSample
namespace swift::sample
{
//! Samples for our algorithms
class CSamplesAlgorithm

View File

@@ -26,7 +26,7 @@ using namespace swift::misc::physical_quantities;
using namespace swift::misc::geo;
using namespace swift::misc::network;
namespace BlackSample
namespace swift::sample
{
int CSamplesChangeObject::samples()
{

View File

@@ -4,10 +4,10 @@
//! \file
//! \ingroup samplemisc
#ifndef BLACKSAMPLE_SAMPLESCHANGEDATA_H
#define BLACKSAMPLE_SAMPLESCHANGEDATA_H
#ifndef SWIFT_SAMPLE_SAMPLESCHANGEDATA_H
#define SWIFT_SAMPLE_SAMPLESCHANGEDATA_H
namespace BlackSample
namespace swift::sample
{
//! Samples for metadata
class CSamplesChangeObject

View File

@@ -32,7 +32,7 @@ using namespace swift::misc::geo;
using namespace swift::misc::network;
using namespace swift::misc::test;
namespace BlackSample
namespace swift::sample
{
int CSamplesContainer::samples()
{

View File

@@ -4,10 +4,10 @@
//! \file
//! \ingroup samplemisc
#ifndef BLACKSAMPLE_SAMPLESCONTAINER_H
#define BLACKSAMPLE_SAMPLESCONTAINER_H
#ifndef SWIFT_SAMPLE_SAMPLESCONTAINER_H
#define SWIFT_SAMPLE_SAMPLESCONTAINER_H
namespace BlackSample
namespace swift::sample
{
//! Samples for our containers
class CSamplesContainer

View File

@@ -10,7 +10,7 @@
using namespace swift::misc;
namespace BlackSample
namespace swift::sample
{
int CSamplesFile::samples(QTextStream &out)
{

View File

@@ -4,12 +4,12 @@
//! \file
//! \ingroup samplemisc
#ifndef BLACKSAMPLE_SAMPLESFILE_H
#define BLACKSAMPLE_SAMPLESFILE_H
#ifndef SWIFT_SAMPLE_SAMPLESFILE_H
#define SWIFT_SAMPLE_SAMPLESFILE_H
#include <QTextStream>
namespace BlackSample
namespace swift::sample
{
//! Samples for file/directory
class CSamplesFile

View File

@@ -42,7 +42,7 @@ using namespace swift::misc::geo;
using namespace swift::misc::network;
using namespace swift::misc::test;
namespace BlackSample
namespace swift::sample
{
int CSamplesJson::samples()
{

View File

@@ -4,10 +4,10 @@
//! \file
//! \ingroup samplemisc
#ifndef BLACKSAMPLE_SAMPLESJSON_H
#define BLACKSAMPLE_SAMPLESJSON_H
#ifndef SWIFT_SAMPLE_SAMPLESJSON_H
#define SWIFT_SAMPLE_SAMPLESJSON_H
namespace BlackSample
namespace swift::sample
{
//! Samples for metadata

View File

@@ -11,7 +11,7 @@
#include <stdio.h>
#include <QTextStream>
namespace BlackSample
namespace swift::sample
{
int CSamplesMetadata::samples()
{

View File

@@ -4,10 +4,10 @@
//! \file
//! \ingroup samplemisc
#ifndef BLACKSAMPLE_SAMPLESMETADATA_H
#define BLACKSAMPLE_SAMPLESMETADATA_H
#ifndef SWIFT_SAMPLE_SAMPLESMETADATA_H
#define SWIFT_SAMPLE_SAMPLESMETADATA_H
namespace BlackSample
namespace swift::sample
{
//! Samples for metadata

View File

@@ -50,7 +50,7 @@ using namespace swift::misc::simulation;
using namespace swift::misc::test;
using namespace swift::core::db;
namespace BlackSample
namespace swift::sample
{
int CSamplesPerformance::samplesMisc(QTextStream &out)
{

View File

@@ -4,8 +4,8 @@
//! \file
//! \ingroup samplemisc
#ifndef BLACKSAMPLE_SAMPLESPERFORMANCE_H
#define BLACKSAMPLE_SAMPLESPERFORMANCE_H
#ifndef SWIFT_SAMPLE_SAMPLESPERFORMANCE_H
#define SWIFT_SAMPLE_SAMPLESPERFORMANCE_H
#include "misc/simulation/aircraftmodellist.h"
#include "misc/aviation/aircraftsituationlist.h"
@@ -18,7 +18,7 @@
class QTextStream;
namespace BlackSample
namespace swift::sample
{
//! Samples for our containers
class CSamplesPerformance

View File

@@ -81,7 +81,7 @@ int main(int argc, char *argv[])
// run tests
if (cmdlineArgs.contains("testservice", Qt::CaseInsensitive))
{
BlackSample::ServiceTool::dataTransferTestClient(address);
swift::sample::ServiceTool::dataTransferTestClient(address);
}
// loop
@@ -175,14 +175,14 @@ int main(int argc, char *argv[])
// run tests
if (mode == "testservice")
{
BlackSample::ServiceTool::dataTransferTestServer(dBusServer, verbose);
swift::sample::ServiceTool::dataTransferTestServer(dBusServer, verbose);
}
// testing in new process
CProcessCtrl::startDetached(executable, args, true);
// testing in same process
// BlackSample::ServiceTool::dataTransferTestClient(address);
// swift::sample::ServiceTool::dataTransferTestClient(address);
// loop
return a.exec();

View File

@@ -12,8 +12,8 @@ qdbuscpp2xml datacontext.h -x misc_cpp2xml.dll -o MiscTest.Datacontext.xml
Set search path for plugins: env.var. QT_PLUGIN_PATH
Done automatically (qmake), but if required manually
Interface: qdbusxml2cpp blackbus.testservice.xml -p itestservice
Adaptor: qdbusxml2cpp blackbus.testservice.xml -a atestservice
Interface: qdbusxml2cpp swiftbus.testservice.xml -p itestservice
Adaptor: qdbusxml2cpp swiftbus.testservice.xml -a atestservice
-- Removed after changing to "handwritten" interface

View File

@@ -1,8 +1,8 @@
// SPDX-FileCopyrightText: Copyright (C) 2014 swift Project Community / Contributors
// SPDX-License-Identifier: GPL-3.0-or-later OR LicenseRef-swift-pilot-client-1
#ifndef BLACKSAMPLE_BLACKMISCDBUS_H
#define BLACKSAMPLE_BLACKMISCDBUS_H
#ifndef SWIFT_SAMPLE_SWIFT_MISCDBUS_H
#define SWIFT_SAMPLE_SWIFT_MISCDBUS_H
// just a dummy header, documentation will go here

View File

@@ -48,7 +48,7 @@ using namespace swift::misc::simulation::fscommon;
using namespace swift::misc::test;
using namespace swift::core;
namespace BlackSample
namespace swift::sample
{
void ServiceTool::dataTransferTestServer(CDBusServer *dBusServer, bool verbose)
{

View File

@@ -4,8 +4,8 @@
//! \file
//! \ingroup samplemiscdbus
#ifndef BLACKSAMPLE_SERVICETOOL_H
#define BLACKSAMPLE_SERVICETOOL_H
#ifndef SWIFT_SAMPLE_SERVICETOOL_H
#define SWIFT_SAMPLE_SERVICETOOL_H
#include <QCoreApplication>
#include <QDBusArgument>
@@ -21,7 +21,7 @@ namespace swift::misc
{
class CDBusServer;
}
namespace BlackSample
namespace swift::sample
{
class Testservice; // forward declaration

View File

@@ -17,7 +17,7 @@
#include <QtGlobal>
using namespace swift::misc;
using namespace BlackSample;
using namespace swift::sample;
using namespace swift::core;
//! main

View File

@@ -1,8 +1,8 @@
// SPDX-FileCopyrightText: Copyright (C) 2014 swift Project Community / Contributors
// SPDX-License-Identifier: GPL-3.0-or-later OR LicenseRef-swift-pilot-client-1
#ifndef BLACKSAMPLE_BLACKMISCQUANTITIES_H
#define BLACKSAMPLE_BLACKMISCQUANTITIES_H
#ifndef SWIFT_SAMPLE_SWIFT_MISCQUANTITIES_H
#define SWIFT_SAMPLE_SWIFT_MISCQUANTITIES_H
// just a dummy header, documentation will go here

View File

@@ -35,7 +35,7 @@ using namespace swift::misc::geo;
using namespace swift::misc::network;
using namespace swift::misc::test;
namespace BlackSample
namespace swift::sample
{
int CSamplesAviation::samples(QTextStream &out)
{

View File

@@ -4,12 +4,12 @@
//! \file
//! \ingroup samplemiscquantities
#ifndef BLACKSAMPLE_SAMPLESAVIATION_H
#define BLACKSAMPLE_SAMPLESAVIATION_H
#ifndef SWIFT_SAMPLE_SAMPLESAVIATION_H
#define SWIFT_SAMPLE_SAMPLESAVIATION_H
class QTextStream;
namespace BlackSample
namespace swift::sample
{
//! Samples for aviation

View File

@@ -23,7 +23,7 @@ using namespace swift::misc::aviation;
using namespace swift::misc::physical_quantities;
using namespace swift::misc::geo;
namespace BlackSample
namespace swift::sample
{
int CSamplesGeo::samples(QTextStream &out)
{

View File

@@ -4,12 +4,12 @@
//! \file
//! \ingroup samplemiscquantities
#ifndef BLACKSAMPLE_SAMPLESGEO_H
#define BLACKSAMPLE_SAMPLESGEO_H
#ifndef SWIFT_SAMPLE_SAMPLESGEO_H
#define SWIFT_SAMPLE_SAMPLESGEO_H
class QTextStream;
namespace BlackSample
namespace swift::sample
{
//! Samples for physical quantities
class CSamplesGeo

View File

@@ -26,7 +26,7 @@ using namespace swift::misc;
using namespace swift::misc::aviation;
using namespace swift::misc::physical_quantities;
namespace BlackSample
namespace swift::sample
{
int CSamplesPhysicalQuantities::samples(QTextStream &out)
{

View File

@@ -4,12 +4,12 @@
//! \file
//! \ingroup samplemiscquantities
#ifndef BLACKSAMPLE_SAMPLESPHYSICALQUANTITIES_H
#define BLACKSAMPLE_SAMPLESPHYSICALQUANTITIES_H
#ifndef SWIFT_SAMPLE_SAMPLESPHYSICALQUANTITIES_H
#define SWIFT_SAMPLE_SAMPLESPHYSICALQUANTITIES_H
class QTextStream;
namespace BlackSample
namespace swift::sample
{
//! Samples for physical quantities

View File

@@ -22,7 +22,7 @@
#include <QtGlobal>
using namespace swift::misc;
using namespace BlackSample;
using namespace swift::sample;
//! main
int main(int argc, char *argv[])

View File

@@ -1,8 +1,8 @@
// SPDX-FileCopyrightText: Copyright (C) 2014 swift Project Community / Contributors
// SPDX-License-Identifier: GPL-3.0-or-later OR LicenseRef-swift-pilot-client-1
#ifndef BLACKSAMPLE_BLACKMISCSIM_H
#define BLACKSAMPLE_BLACKMISCSIM_H
#ifndef SWIFT_SAMPLE_SWIFT_MISCSIM_H
#define SWIFT_SAMPLE_SWIFT_MISCSIM_H
// just a dummy header, documentation will go here

View File

@@ -25,7 +25,7 @@ using namespace swift::misc::simulation;
using namespace swift::misc::simulation::fscommon;
using namespace swift::misc::simulation::settings;
namespace BlackSample
namespace swift::sample
{
void CSamplesFsCommon::samples(QTextStream &streamOut, QTextStream &streamIn)
{

View File

@@ -4,12 +4,12 @@
//! \file
//! \ingroup samplemiscsim
#ifndef BLACKSAMPLE_SAMPLESFSCOMMON_H
#define BLACKSAMPLE_SAMPLESFSCOMMON_H
#ifndef SWIFT_SAMPLE_SAMPLESFSCOMMON_H
#define SWIFT_SAMPLE_SAMPLESFSCOMMON_H
class QTextStream;
namespace BlackSample
namespace swift::sample
{
//! Samples for FsCommon classes
class CSamplesFsCommon

View File

@@ -15,12 +15,12 @@
using namespace swift::misc;
using namespace swift::misc::simulation;
namespace BlackSample
namespace swift::sample
{
#ifdef Q_OS_WIN
void CSamplesFsuipc::samplesFsuipc(QTextStream &streamOut)
{
using namespace BlackSimPlugin::FsCommon;
using namespace swift::simplugin::fscommon;
swift::misc::registerMetadata();
QScopedPointer<CFsuipc> fsuipc(new CFsuipc());

View File

@@ -4,12 +4,12 @@
//! \file
//! \ingroup samplemiscsim
#ifndef BLACKSAMPLE_SAMPLESFSUIPC_H
#define BLACKSAMPLE_SAMPLESFSUIPC_H
#ifndef SWIFT_SAMPLE_SAMPLESFSUIPC_H
#define SWIFT_SAMPLE_SAMPLESFSUIPC_H
class QTextStream;
namespace BlackSample
namespace swift::sample
{
//! Samples for FSUIPC
class CSamplesFsuipc

View File

@@ -12,7 +12,7 @@
using namespace swift::misc::simulation::fsx;
namespace BlackSample
namespace swift::sample
{
void CSamplesFsx::samplesMisc(QTextStream &streamOut)
{

View File

@@ -4,12 +4,12 @@
//! \file
//! \ingroup samplemiscsim
#ifndef BLACKSAMPLE_SAMPLESFSX_H
#define BLACKSAMPLE_SAMPLESFSX_H
#ifndef SWIFT_SAMPLE_SAMPLESFSX_H
#define SWIFT_SAMPLE_SAMPLESFSX_H
class QTextStream;
namespace BlackSample
namespace swift::sample
{
//! Samples for FSX classes
class CSamplesFsx

View File

@@ -30,7 +30,7 @@ using namespace swift::misc::simulation::fscommon;
using namespace swift::misc::simulation::settings;
using namespace swift::misc::aviation;
namespace BlackSample
namespace swift::sample
{
void CSamplesModelMapping::samples(QTextStream &streamOut, QTextStream &streamIn)
{

View File

@@ -4,12 +4,12 @@
//! \file
//! \ingroup samplemiscsim
#ifndef BLACKSAMPLE_SAMPLESMODELMAPPING_H
#define BLACKSAMPLE_SAMPLESMODELMAPPING_H
#ifndef SWIFT_SAMPLE_SAMPLESMODELMAPPING_H
#define SWIFT_SAMPLE_SAMPLESMODELMAPPING_H
class QTextStream;
namespace BlackSample
namespace swift::sample
{
//! Samples for model mapping classes
class CSamplesModelMapping

View File

@@ -11,7 +11,7 @@
using namespace swift::misc::simulation::fscommon;
namespace BlackSample
namespace swift::sample
{
void CSamplesP3D::samplesMisc(QTextStream &streamOut)
{

View File

@@ -4,12 +4,12 @@
//! \file
//! \ingroup samplemiscsim
#ifndef BLACKSAMPLE_SAMPLESP3D_H
#define BLACKSAMPLE_SAMPLESP3D_H
#ifndef SWIFT_SAMPLE_SAMPLESP3D_H
#define SWIFT_SAMPLE_SAMPLESP3D_H
class QTextStream;
namespace BlackSample
namespace swift::sample
{
//! Samples for P3D classes
class CSamplesP3D

View File

@@ -19,7 +19,7 @@ using namespace swift::misc;
using namespace swift::misc::simulation;
using namespace swift::misc::simulation::fscommon;
namespace BlackSample
namespace swift::sample
{
/*

View File

@@ -4,12 +4,12 @@
//! \file
//! \ingroup samplemiscsim
#ifndef BLACKSAMPLE_SAMPLESVPILOTRULES_H
#define BLACKSAMPLE_SAMPLESVPILOTRULES_H
#ifndef SWIFT_SAMPLE_SAMPLESVPILOTRULES_H
#define SWIFT_SAMPLE_SAMPLESVPILOTRULES_H
class QTextStream;
namespace BlackSample
namespace swift::sample
{
//! Samples for vPilot rules
class CSamplesVPilotRules

View File

@@ -3,8 +3,8 @@
//! \file
#ifndef BLACKSAMPLE_SAMPLEUTILS_H
#define BLACKSAMPLE_SAMPLEUTILS_H
#ifndef SWIFT_SAMPLE_SAMPLEUTILS_H
#define SWIFT_SAMPLE_SAMPLEUTILS_H
#include <QStringList>