Removes code-generated files that were accidentally committed to the repo
This commit is contained in:
46 files changed
+96
-2547
No files matched your search
@@ -1,290 +0,0 @@
|
||||
#pragma once
|
||||
|
||||
// STUB-HEADER: Diese Datei wird normalerweise von ddsdtc generiert
|
||||
// Für die Migration erstellen wir minimale Forward-Declarations und Stubs
|
||||
|
||||
#include <QObject>
|
||||
#include <QString>
|
||||
#include <QVector>
|
||||
#include <QStringList>
|
||||
#include <QJsonObject>
|
||||
#include <memory>
|
||||
#include <functional>
|
||||
|
||||
namespace DDSConnector
|
||||
{
|
||||
class DdsConnector;
|
||||
}
|
||||
|
||||
namespace ProjectDataManagement
|
||||
{
|
||||
|
||||
// Forward declarations and stub types
|
||||
enum class GearClass
|
||||
{
|
||||
Unknown = 0,
|
||||
// Add other values as needed
|
||||
};
|
||||
|
||||
enum class VolatilityType
|
||||
{
|
||||
Unknown = 0,
|
||||
// Add other values as needed
|
||||
};
|
||||
|
||||
enum class IgniterFunctionBase
|
||||
{
|
||||
IfbImpact = 0,
|
||||
// Add other values as needed
|
||||
};
|
||||
|
||||
enum class VulnerabilityClass
|
||||
{
|
||||
Unknown = 0,
|
||||
// Add other values as needed
|
||||
};
|
||||
|
||||
enum class CasEffect
|
||||
{
|
||||
None = 0,
|
||||
// Add other values as needed
|
||||
};
|
||||
|
||||
enum class ChargeTypeProperty
|
||||
{
|
||||
None = 0,
|
||||
// Add other values as needed
|
||||
};
|
||||
|
||||
struct ChargeType
|
||||
{
|
||||
int id = 0;
|
||||
QString name;
|
||||
QString shortName;
|
||||
QString baseSuffix;
|
||||
int gearClass = 0;
|
||||
QJsonObject properties;
|
||||
// Add other fields as needed
|
||||
};
|
||||
|
||||
struct IgniterType
|
||||
{
|
||||
int id = 0;
|
||||
QString name;
|
||||
QString shortName;
|
||||
QJsonObject properties;
|
||||
// Add other fields as needed
|
||||
};
|
||||
|
||||
struct IgniterFunction
|
||||
{
|
||||
int id = 0;
|
||||
QString name;
|
||||
QString shortName;
|
||||
QJsonObject properties;
|
||||
// Add other fields as needed
|
||||
};
|
||||
|
||||
struct LoadType
|
||||
{
|
||||
int id = 0;
|
||||
QString name;
|
||||
QString shortName;
|
||||
QJsonObject properties;
|
||||
// Add other fields as needed
|
||||
};
|
||||
|
||||
struct TargetSubType
|
||||
{
|
||||
int id = 0;
|
||||
// Add other fields as needed
|
||||
};
|
||||
|
||||
struct GearType
|
||||
{
|
||||
int id = 0;
|
||||
// Add other fields as needed
|
||||
};
|
||||
|
||||
struct GearTypeChargeType
|
||||
{
|
||||
int id = 0;
|
||||
// Add other fields as needed
|
||||
};
|
||||
|
||||
struct ChargeTypeIgniterTypeIgniterFunction
|
||||
{
|
||||
int id = 0;
|
||||
int chargeTypeId = 0;
|
||||
int igniterTypeId = 0;
|
||||
int igniterFunctionId = 0;
|
||||
int igniterFunctionBase = 0;
|
||||
double impactRadius = 0.0;
|
||||
int hazardDistance = 0;
|
||||
int chargeLegacyId = 0;
|
||||
QString adlerChargeTypeName;
|
||||
QString adlerIgniterTypeName;
|
||||
QString adlerIgniterFunctionName;
|
||||
bool isSmart = false;
|
||||
bool isSmoke = false;
|
||||
bool isDus = false;
|
||||
bool isConcrete = false;
|
||||
int volatilityTypeId = 0;
|
||||
QJsonObject properties;
|
||||
// Add other fields as needed
|
||||
};
|
||||
|
||||
struct ChargeTypeLoadType
|
||||
{
|
||||
int id = 0;
|
||||
int chargeTypeId = 0;
|
||||
int loadTypeId = 0;
|
||||
QJsonObject properties;
|
||||
// Add other fields as needed
|
||||
};
|
||||
|
||||
struct BuildingChargeEffect
|
||||
{
|
||||
int id = 0;
|
||||
// Add other fields as needed
|
||||
};
|
||||
|
||||
struct SanitationProcedure
|
||||
{
|
||||
int id = 0;
|
||||
// Add other fields as needed
|
||||
};
|
||||
|
||||
struct PdmBaseName
|
||||
{
|
||||
QString name;
|
||||
// Add other fields as needed
|
||||
};
|
||||
|
||||
namespace Interface
|
||||
{
|
||||
|
||||
// Base class stub - normally generated by DDS
|
||||
class DtcImpl : public QObject
|
||||
{
|
||||
Q_OBJECT
|
||||
|
||||
public:
|
||||
explicit DtcImpl(const std::shared_ptr<DDSConnector::DdsConnector> &ddsConnector = nullptr);
|
||||
~DtcImpl() override = default;
|
||||
|
||||
// Virtual methods that DtcImplCustom overrides
|
||||
virtual QVector<ProjectDataManagement::ChargeType> chargesForGearClass(GearClass gearClass) = 0;
|
||||
virtual QVector<ProjectDataManagement::IgniterType> ignitersForChargeType(int chargeTypeId) = 0;
|
||||
virtual QVector<ProjectDataManagement::ChargeTypeIgniterTypeIgniterFunction> igniterFunctionsForChargeTypeIgniterType(
|
||||
int chargeTypeId, int igniterTypeId) = 0;
|
||||
virtual QVector<ProjectDataManagement::LoadType> loadsForChargeType(int chargeTypeId) = 0;
|
||||
virtual QVector<TargetSubType> targetSubTypesForTargetType(int targetType) = 0;
|
||||
|
||||
virtual double expansionFactor(int chargeTypeId, int igniterTypeId, int igniterFunctionId) = 0;
|
||||
virtual double impactRadius(int chargeTypeId, int igniterTypeId, int igniterFunctionId) = 0;
|
||||
virtual double impactEdgeLength(int chargeTypeId, int igniterTypeId, int igniterFunctionId) = 0;
|
||||
virtual bool isDryFire(int chargeTypeId, int igniterTypeId, int igniterFunctionId) = 0;
|
||||
virtual int mineClass(int chargeTypeId, int igniterTypeId, int igniterFunctionId) = 0;
|
||||
virtual bool canBeThrown(int chargeTypeId, int igniterTypeId, int igniterFunctionId) = 0;
|
||||
virtual bool canBeCreated(int chargeTypeId, int igniterTypeId, int igniterFunctionId) = 0;
|
||||
virtual bool isIed(int chargeTypeId, int igniterTypeId, int igniterFunctionId) = 0;
|
||||
virtual bool isReactivatable(int chargeTypeId, int igniterTypeId, int igniterFunctionId) = 0;
|
||||
virtual bool isSmart(int chargeTypeId, int igniterTypeId, int igniterFunctionId) = 0;
|
||||
virtual int maxEffectShows(int chargeTypeId, int igniterTypeId, int igniterFunctionId) = 0;
|
||||
virtual bool isSmoke(int chargeTypeId, int igniterTypeId, int igniterFunctionId) = 0;
|
||||
virtual bool isVisible(int chargeTypeId, int igniterTypeId, int igniterFunctionId) = 0;
|
||||
virtual bool isIndirect(int chargeTypeId) = 0;
|
||||
virtual int searchRadius(int chargeTypeId, int igniterTypeId, int igniterFunctionId) = 0;
|
||||
virtual bool showHitline(int chargeTypeId, int igniterTypeId, int igniterFunctionId) = 0;
|
||||
virtual int remainingTasCode(int chargeTypeId, int igniterTypeId, int igniterFunctionId) = 0;
|
||||
virtual int secondaryRemainingTasCode(int chargeTypeId, int igniterTypeId, int igniterFunctionId) = 0;
|
||||
virtual int segments(int chargeTypeId, int igniterTypeId, int igniterFunctionId) = 0;
|
||||
virtual bool isLine(int chargeTypeId, int igniterTypeId, int igniterFunctionId) = 0;
|
||||
virtual bool isFromMineLayer(int chargeTypeId, int igniterTypeId, int igniterFunctionId) = 0;
|
||||
virtual bool isMineLaying(int chargeTypeId, int igniterTypeId, int igniterFunctionId) = 0;
|
||||
virtual QJsonObject mineLayingPattern(int chargeTypeId, int igniterTypeId, int igniterFunctionId) = 0;
|
||||
virtual int height(int chargeTypeId, int igniterTypeId, int igniterFunctionId) = 0;
|
||||
virtual bool isLaserGuidable(int chargeTypeId, int igniterTypeId, int igniterFunctionId) = 0;
|
||||
virtual bool isUasDroppable(int chargeTypeId, int igniterTypeId, int igniterFunctionId) = 0;
|
||||
virtual bool isJamming(int chargeTypeId, int igniterTypeId, int igniterFunctionId) = 0;
|
||||
virtual QVector<int> spacing(int chargeTypeId, int igniterTypeId, int igniterFunctionId) = 0;
|
||||
virtual VolatilityType volatilityTypeId(int chargeTypeId, int igniterTypeId, int igniterFunctionId) = 0;
|
||||
virtual int hazardDistance(int chargeTypeId, int igniterTypeId, int igniterFunctionId) = 0;
|
||||
virtual QVector<CasEffect> casEffects(int chargeTypeId, int igniterTypeId, int igniterFunctionId) = 0;
|
||||
virtual GearClass gearClassFromChargeTypeId(int chargeTypeId) = 0;
|
||||
virtual QVector<int> gearTypeIdFromChargeTypeId(int chargeTypeId) = 0;
|
||||
virtual int chargeTypeIdFromLegacyId(GearClass gearClass, int legacyId) = 0;
|
||||
virtual bool isGmlrs(int chargeTypeId) = 0;
|
||||
virtual bool isDm72(int chargeTypeId) = 0;
|
||||
virtual bool isRocket(int chargeTypeId) = 0;
|
||||
|
||||
virtual ChargeTypeIgniterTypeIgniterFunction getChargeTypeIgniterTypeIgniterFunction(
|
||||
int chargeTypeId, int igniterTypeId, int igniterFunctionId) = 0;
|
||||
virtual ChargeTypeLoadType getChargeTypeLoadType(int chargeTypeId, int loadTypeId) = 0;
|
||||
|
||||
virtual bool canRestock(int gearTypeId) = 0;
|
||||
virtual bool canSetDefaults(int gearTypeId) = 0;
|
||||
virtual int maxCharges(int gearTypeId) = 0;
|
||||
virtual int cadence(int gearTypeId) = 0;
|
||||
virtual int getAdlerWeaponSystemId(int gearTypeId) = 0;
|
||||
virtual int factoryDefault(int gearTypeId, int chargeTypeId) = 0;
|
||||
virtual int maxCharge(int gearTypeId, int chargeTypeId) = 0;
|
||||
virtual bool isAtMine(int chargeTypeId, int igniterTypeId, int igniterFunctionId) = 0;
|
||||
virtual bool isApMine(int chargeTypeId, int igniterTypeId, int igniterFunctionId) = 0;
|
||||
virtual double getLethalRadius(int chargeTypeId, int igniterTypeId, int igniterFunctionId) = 0;
|
||||
virtual double getNonLethalRadius(int chargeTypeId, int igniterTypeId, int igniterFunctionId) = 0;
|
||||
virtual double getMaxRange(int chargeTypeId, int gearTypeId) = 0;
|
||||
virtual ProjectDataManagement::BuildingChargeEffect getBuildingChargeEffectByChargeTypeId(int chargeTypeId) = 0;
|
||||
virtual bool isVirtuallyFireable(int chargeTypeId) = 0;
|
||||
virtual bool isAdlerChargeType(int chargeTypeId) = 0;
|
||||
virtual int getAmountFireMarkers(int firePurposeId) = 0;
|
||||
virtual bool getWithDurationFirePurpose(int firePurposeId) = 0;
|
||||
|
||||
// get Adler names/ids
|
||||
virtual int getTargetTypeIdFromAdlerTargetType(const QString &typ) = 0;
|
||||
virtual int getTargetSubTypeIdFromAdlerTargetSubType(const QString &subTyp) = 0;
|
||||
virtual int getChargeTypeIdFromAdlerCharges(const QString &geschosssorte) = 0;
|
||||
virtual int getIgniterTypeIdFromAdlerIgniter(const QString &zuender) = 0;
|
||||
virtual int getIgniterFunctionIdFromAdlerIgniterFunction(const QString &zuenderFunktion) = 0;
|
||||
virtual int getLoadTypeIdFromAdlerLoad(const QString &ladung) = 0;
|
||||
virtual QString adlerTargetTypeName(int targetTypeId) = 0;
|
||||
virtual QString adlerTargetSubTypeName(int targetSubTypeId) = 0;
|
||||
virtual QString adlerChargeTypeName(int chargeTypeId) = 0;
|
||||
virtual QString adlerIgniterTypeName(int igniterTypeId) = 0;
|
||||
virtual QString adlerIgniterFunctionName(int igniterFunctionId) = 0;
|
||||
virtual QString adlerLoadTypeName(int loadTypeId) = 0;
|
||||
|
||||
virtual QString trBiteComponentTextName(int biteComponentId) = 0;
|
||||
virtual QString trCanComponentStringName(int canComponentId) = 0;
|
||||
virtual QString trChargeTypeShortName(int chargeTypeId, bool omitBaseSuffix = false) = 0;
|
||||
virtual QString trChargeTypeName(int chargeTypeId, bool omitBaseSuffix = false) = 0;
|
||||
virtual QString trFirePurposeName(int firePurposeId) = 0;
|
||||
virtual QString trGearTypeName(int gearTypeId) = 0;
|
||||
virtual QString trIgniterTypeName(int igniterTypeId) = 0;
|
||||
virtual QString trIgniterTypeShortName(int igniterTypeId) = 0;
|
||||
virtual QString trIgniterFunctionName(int igniterFunctionId) = 0;
|
||||
virtual QString trIgniterFunctionShortName(int igniterFunctionId) = 0;
|
||||
virtual QString trLoadTypeName(int loadTypeId) = 0;
|
||||
virtual QString trLoadTypeShortName(int loadTypeId) = 0;
|
||||
virtual QString trTargetTypeName(int targetTypeId) = 0;
|
||||
virtual QString trTargetSubTypeName(int targetSubTypeId) = 0;
|
||||
virtual QString trLanguageHmiName(int languageHmiId) = 0;
|
||||
virtual QString trLanguageXduName(int languageXduId) = 0;
|
||||
virtual QString trNuclearPresetName(int nucularPresetId) = 0; // "'Nucular'. It's pronounced 'Nucular'!"
|
||||
virtual QString trRadioGroupName(int radioGroupId) = 0;
|
||||
virtual QString trVulnerabilityKindName(int vulnerabilityKindId, VulnerabilityClass vulnerabilityClassId) = 0;
|
||||
virtual QString trSanitationMaterialName(int sanitationMaterialId) = 0;
|
||||
|
||||
virtual QStringList chargeNames(std::vector<int> &chargeIds) = 0;
|
||||
virtual int getAvailableChargeTypeId(int chargeTypeId) = 0;
|
||||
virtual ChargeTypeProperty getChargeTypeSpecialProperty(int chargeTypeId, int igniterTypeId, int igniterFunctionId) = 0;
|
||||
virtual QVector<SanitationProcedure> getSanitationProcedures(qint64 procedures) = 0;
|
||||
virtual QStringList sanitationProceduresList(qint64 procedures) = 0;
|
||||
};
|
||||
|
||||
class Dtc;
|
||||
class Ftc;
|
||||
|
||||
} // namespace Interface
|
||||
} // namespace ProjectDataManagement
|
||||
@@ -1,399 +0,0 @@
|
||||
/**
|
||||
* @file pdm_dtc_impl.h
|
||||
* @brief Stub header for pdm_dtc_impl.h when BUILD_RTI=OFF
|
||||
*
|
||||
* This file provides stub definitions for the DtcImpl base class and related types
|
||||
* that are normally generated by RTI DDS code generation.
|
||||
*/
|
||||
#pragma once
|
||||
|
||||
#include "pdm_types.h"
|
||||
#include <QtCore/QString>
|
||||
#include <QtCore/QVector>
|
||||
#include <QtCore/QJsonObject>
|
||||
#include <memory>
|
||||
|
||||
namespace DDSConnector
|
||||
{
|
||||
class DdsConnector;
|
||||
}
|
||||
|
||||
namespace ProjectDataManagement
|
||||
{
|
||||
|
||||
// Stub types not defined in pdm_types.h
|
||||
enum class GearClass
|
||||
{
|
||||
None = 0,
|
||||
PrimaryWeapon = 1,
|
||||
SecondaryWeapon = 2,
|
||||
Grenade = 3,
|
||||
Mine = 4,
|
||||
Other = 5
|
||||
};
|
||||
|
||||
enum class VolatilityType
|
||||
{
|
||||
Unknown = 0,
|
||||
Low = 1,
|
||||
Medium = 2,
|
||||
High = 3
|
||||
};
|
||||
|
||||
enum class IgniterFunctionBase
|
||||
{
|
||||
IfbImpact = 0,
|
||||
IfbProximity = 1,
|
||||
IfbTime = 2,
|
||||
IfbRemote = 3
|
||||
};
|
||||
|
||||
struct CasEffect
|
||||
{
|
||||
int effectId = 0;
|
||||
QString effectName;
|
||||
};
|
||||
|
||||
struct SanitationProcedure
|
||||
{
|
||||
int procedureId = 0;
|
||||
QString procedureName;
|
||||
};
|
||||
|
||||
enum class ChargeTypeProperty : int
|
||||
{
|
||||
None = 0,
|
||||
LRF = 1,
|
||||
LTD = 2
|
||||
};
|
||||
|
||||
// Use ChargeType from pdm_types.h, but we need a struct for DTC data
|
||||
struct ChargeTypeData
|
||||
{
|
||||
int chargeTypeId = 0;
|
||||
QString name;
|
||||
QString shortName;
|
||||
QString baseSuffix;
|
||||
GearClass gearClass = GearClass::None;
|
||||
QJsonObject properties;
|
||||
};
|
||||
|
||||
struct IgniterType
|
||||
{
|
||||
int igniterTypeId = 0;
|
||||
int id = 0;
|
||||
QString name;
|
||||
QString shortName;
|
||||
QJsonObject properties;
|
||||
|
||||
bool operator==(const IgniterType &other) const
|
||||
{
|
||||
return igniterTypeId == other.igniterTypeId && id == other.id && name == other.name &&
|
||||
shortName == other.shortName && properties == other.properties;
|
||||
}
|
||||
};
|
||||
|
||||
struct IgniterFunction
|
||||
{
|
||||
int igniterFunctionId = 0;
|
||||
int id = 0;
|
||||
QString name;
|
||||
QString shortName;
|
||||
QJsonObject properties;
|
||||
};
|
||||
|
||||
struct LoadType
|
||||
{
|
||||
int loadTypeId = 0;
|
||||
int id = 0;
|
||||
QString name;
|
||||
QString shortName;
|
||||
QJsonObject properties;
|
||||
|
||||
bool operator==(const LoadType &other) const
|
||||
{
|
||||
return loadTypeId == other.loadTypeId && id == other.id && name == other.name &&
|
||||
shortName == other.shortName && properties == other.properties;
|
||||
}
|
||||
};
|
||||
|
||||
struct TargetSubType
|
||||
{
|
||||
int targetSubTypeId = 0;
|
||||
QString name;
|
||||
|
||||
bool operator==(const TargetSubType &other) const
|
||||
{
|
||||
return targetSubTypeId == other.targetSubTypeId && name == other.name;
|
||||
}
|
||||
};
|
||||
|
||||
struct ChargeTypeIgniterTypeIgniterFunction
|
||||
{
|
||||
int id = 0;
|
||||
int chargeTypeId = 0;
|
||||
int igniterTypeId = 0;
|
||||
int igniterFunctionId = 0;
|
||||
bool isSmoke = false;
|
||||
bool isDus = false;
|
||||
bool isConcrete = false;
|
||||
int volatilityTypeId = 0;
|
||||
IgniterFunctionBase igniterFunctionBase = IgniterFunctionBase::IfbImpact;
|
||||
double impactRadius = 0.0;
|
||||
double hazardDistance = 0.0;
|
||||
int chargeLegacyId = 0;
|
||||
QJsonObject properties;
|
||||
};
|
||||
|
||||
struct ChargeTypeLoadType
|
||||
{
|
||||
int chargeTypeId = 0;
|
||||
int loadTypeId = 0;
|
||||
int id = 0;
|
||||
QJsonObject properties;
|
||||
};
|
||||
|
||||
struct GearType
|
||||
{
|
||||
int gearTypeId = 0;
|
||||
QString name;
|
||||
};
|
||||
|
||||
struct GearTypeChargeType
|
||||
{
|
||||
int gearTypeId = 0;
|
||||
int chargeTypeId = 0;
|
||||
};
|
||||
|
||||
enum class PdmBaseName : int
|
||||
{
|
||||
None = 0,
|
||||
ChargeType = 1,
|
||||
IgniterType = 2,
|
||||
IgniterFunction = 3,
|
||||
LoadType = 4,
|
||||
TargetType = 5,
|
||||
TargetSubType = 6,
|
||||
GearType = 7,
|
||||
FirePurpose = 8,
|
||||
LanguageHmi = 9,
|
||||
LanguageXdu = 10,
|
||||
NuclearPreset = 11,
|
||||
RadioGroup = 12,
|
||||
VulnerabilityKind = 13,
|
||||
SanitationMaterial = 14,
|
||||
BiteComponent = 15,
|
||||
CanComponent = 16
|
||||
};
|
||||
|
||||
struct BuildingChargeEffect
|
||||
{
|
||||
int effectId = 0;
|
||||
QString effectName;
|
||||
};
|
||||
|
||||
namespace Interface
|
||||
{
|
||||
|
||||
/**
|
||||
* @brief Base class for DTC (Data Type Configuration) implementation
|
||||
*
|
||||
* This is a stub implementation used when BUILD_RTI=OFF.
|
||||
* In production, this is generated by RTI DDS code generation.
|
||||
*/
|
||||
class DtcImpl : public QObject
|
||||
{
|
||||
Q_OBJECT
|
||||
|
||||
public:
|
||||
explicit DtcImpl(QObject *parent = nullptr) : QObject(parent) {}
|
||||
explicit DtcImpl(const std::shared_ptr<DDSConnector::DdsConnector> &ddsConnector, QObject *parent = nullptr) : QObject(parent) { Q_UNUSED(ddsConnector); }
|
||||
virtual ~DtcImpl() = default;
|
||||
|
||||
// Custom procs - pure virtual methods that must be implemented by derived classes
|
||||
virtual QVector<ChargeTypeData> chargesForGearClass(GearClass gearClass) = 0;
|
||||
virtual QVector<IgniterType> ignitersForChargeType(int chargeTypeId) = 0;
|
||||
virtual QVector<ChargeTypeIgniterTypeIgniterFunction> igniterFunctionsForChargeTypeIgniterType(int chargeTypeId, int igniterTypeId) = 0;
|
||||
virtual QVector<LoadType> loadsForChargeType(int chargeTypeId) = 0;
|
||||
virtual QVector<TargetSubType> targetSubTypesForTargetType(int targetType) = 0;
|
||||
|
||||
virtual double expansionFactor(int chargeTypeId, int igniterTypeId, int igniterFunctionId) = 0;
|
||||
virtual double impactRadius(int chargeTypeId, int igniterTypeId, int igniterFunctionId) = 0;
|
||||
virtual double impactEdgeLength(int chargeTypeId, int igniterTypeId, int igniterFunctionId) = 0;
|
||||
virtual bool isDryFire(int chargeTypeId, int igniterTypeId, int igniterFunctionId) = 0;
|
||||
virtual int mineClass(int chargeTypeId, int igniterTypeId, int igniterFunctionId) = 0;
|
||||
virtual bool canBeThrown(int chargeTypeId, int igniterTypeId, int igniterFunctionId) = 0;
|
||||
virtual bool canBeCreated(int chargeTypeId, int igniterTypeId, int igniterFunctionId) = 0;
|
||||
virtual bool isIed(int chargeTypeId, int igniterTypeId, int igniterFunctionId) = 0;
|
||||
virtual bool isReactivatable(int chargeTypeId, int igniterTypeId, int igniterFunctionId) = 0;
|
||||
virtual bool isSmart(int chargeTypeId, int igniterTypeId, int igniterFunctionId) = 0;
|
||||
virtual int maxEffectShows(int chargeTypeId, int igniterTypeId, int igniterFunctionId) = 0;
|
||||
virtual bool isSmoke(int chargeTypeId, int igniterTypeId, int igniterFunctionId) = 0;
|
||||
virtual bool isVisible(int chargeTypeId, int igniterTypeId, int igniterFunctionId) = 0;
|
||||
virtual bool isIndirect(int chargeTypeId) = 0;
|
||||
virtual int searchRadius(int chargeTypeId, int igniterTypeId, int igniterFunctionId) = 0;
|
||||
virtual bool showHitline(int chargeTypeId, int igniterTypeId, int igniterFunctionId) = 0;
|
||||
virtual int remainingTasCode(int chargeTypeId, int igniterTypeId, int igniterFunctionId) = 0;
|
||||
virtual int secondaryRemainingTasCode(int chargeTypeId, int igniterTypeId, int igniterFunctionId) = 0;
|
||||
virtual int segments(int chargeTypeId, int igniterTypeId, int igniterFunctionId) = 0;
|
||||
virtual bool isLine(int chargeTypeId, int igniterTypeId, int igniterFunctionId) = 0;
|
||||
virtual bool isFromMineLayer(int chargeTypeId, int igniterTypeId, int igniterFunctionId) = 0;
|
||||
virtual bool isMineLaying(int chargeTypeId, int igniterTypeId, int igniterFunctionId) = 0;
|
||||
virtual QJsonObject mineLayingPattern(int chargeTypeId, int igniterTypeId, int igniterFunctionId) = 0;
|
||||
virtual int height(int chargeTypeId, int igniterTypeId, int igniterFunctionId) = 0;
|
||||
virtual bool isLaserGuidable(int chargeTypeId, int igniterTypeId, int igniterFunctionId) = 0;
|
||||
virtual bool isUasDroppable(int chargeTypeId, int igniterTypeId, int igniterFunctionId) = 0;
|
||||
virtual bool isJamming(int chargeTypeId, int igniterTypeId, int igniterFunctionId) = 0;
|
||||
virtual QVector<int> spacing(int chargeTypeId, int igniterTypeId, int igniterFunctionId) = 0;
|
||||
virtual VolatilityType volatilityTypeId(int chargeTypeId, int igniterTypeId, int igniterFunctionId) = 0;
|
||||
virtual int hazardDistance(int chargeTypeId, int igniterTypeId, int igniterFunctionId) = 0;
|
||||
virtual QVector<CasEffect> casEffects(int chargeTypeId, int igniterTypeId, int igniterFunctionId) = 0;
|
||||
virtual GearClass gearClassFromChargeTypeId(int chargeTypeId) = 0;
|
||||
virtual QVector<int> gearTypeIdFromChargeTypeId(int chargeTypeId) = 0;
|
||||
virtual int chargeTypeIdFromLegacyId(GearClass gearClass, int legacyId) = 0;
|
||||
virtual bool isGmlrs(int chargeTypeId) = 0;
|
||||
virtual bool isDm72(int chargeTypeId) = 0;
|
||||
virtual bool isRocket(int chargeTypeId) = 0;
|
||||
|
||||
virtual ChargeTypeIgniterTypeIgniterFunction getChargeTypeIgniterTypeIgniterFunction(int chargeTypeId, int igniterTypeId, int igniterFunctionId) = 0;
|
||||
virtual ChargeTypeLoadType getChargeTypeLoadType(int chargeTypeId, int loadTypeId) = 0;
|
||||
|
||||
virtual bool canRestock(int gearTypeId) = 0;
|
||||
virtual bool canSetDefaults(int gearTypeId) = 0;
|
||||
virtual int maxCharges(int gearTypeId) = 0;
|
||||
virtual int cadence(int gearTypeId) = 0;
|
||||
virtual int getAdlerWeaponSystemId(int gearTypeId) = 0;
|
||||
virtual int factoryDefault(int gearTypeId, int chargeTypeId) = 0;
|
||||
virtual int maxCharge(int gearTypeId, int chargeTypeId) = 0;
|
||||
virtual bool isAtMine(int chargeTypeId, int igniterTypeId, int igniterFunctionId) = 0;
|
||||
virtual bool isApMine(int chargeTypeId, int igniterTypeId, int igniterFunctionId) = 0;
|
||||
virtual double getLethalRadius(int chargeTypeId, int igniterTypeId, int igniterFunctionId) = 0;
|
||||
virtual double getNonLethalRadius(int chargeTypeId, int igniterTypeId, int igniterFunctionId) = 0;
|
||||
virtual double getMaxRange(int chargeTypeId, int gearTypeId) = 0;
|
||||
virtual BuildingChargeEffect getBuildingChargeEffectByChargeTypeId(int chargeTypeId) = 0;
|
||||
virtual bool isVirtuallyFireable(int chargeTypeId) = 0;
|
||||
virtual bool isAdlerChargeType(int chargeTypeId) = 0;
|
||||
virtual int getAmountFireMarkers(int firePurposeId) = 0;
|
||||
virtual bool getWithDurationFirePurpose(int firePurposeId) = 0;
|
||||
|
||||
// Adler names/ids
|
||||
virtual int getTargetTypeIdFromAdlerTargetType(const QString &typ) = 0;
|
||||
virtual int getTargetSubTypeIdFromAdlerTargetSubType(const QString &subTyp) = 0;
|
||||
virtual int getChargeTypeIdFromAdlerCharges(const QString &geschosssorte) = 0;
|
||||
virtual int getIgniterTypeIdFromAdlerIgniter(const QString &zuender) = 0;
|
||||
virtual int getIgniterFunctionIdFromAdlerIgniterFunction(const QString &zuenderFunktion) = 0;
|
||||
virtual int getLoadTypeIdFromAdlerLoad(const QString &ladung) = 0;
|
||||
virtual QString adlerTargetTypeName(int targetTypeId) = 0;
|
||||
virtual QString adlerTargetSubTypeName(int targetSubTypeId) = 0;
|
||||
virtual QString adlerChargeTypeName(int chargeTypeId) = 0;
|
||||
virtual QString adlerIgniterTypeName(int igniterTypeId) = 0;
|
||||
virtual QString adlerIgniterFunctionName(int igniterFunctionId) = 0;
|
||||
virtual QString adlerLoadTypeName(int loadTypeId) = 0;
|
||||
|
||||
// Data access methods
|
||||
virtual ChargeTypeData chargeType(int chargeTypeId) = 0;
|
||||
virtual IgniterType igniterType(int igniterTypeId) = 0;
|
||||
virtual IgniterFunction igniterFunction(int igniterFunctionId) = 0;
|
||||
virtual LoadType loadType(int loadTypeId) = 0;
|
||||
virtual GearType gearType(int gearTypeId) = 0;
|
||||
virtual int targetType(int targetTypeId) = 0;
|
||||
virtual TargetSubType targetSubType(int targetSubTypeId) = 0;
|
||||
|
||||
// Collection getters
|
||||
virtual QMap<int, ChargeTypeData> chargeTypes() = 0;
|
||||
virtual QVector<IgniterType> igniterTypes() = 0;
|
||||
virtual QVector<IgniterFunction> igniterFunctions() = 0;
|
||||
virtual QVector<LoadType> loadTypes() = 0;
|
||||
virtual QVector<GearType> gearTypes() = 0;
|
||||
virtual QVector<int> targetTypes() = 0;
|
||||
virtual QVector<TargetSubType> targetSubTypes() = 0;
|
||||
virtual QVector<ChargeTypeIgniterTypeIgniterFunction> chargeTypeIgniterTypeIgniterFunctions() = 0;
|
||||
virtual QVector<ChargeTypeLoadType> chargeTypeLoadTypes() = 0;
|
||||
virtual QVector<GearTypeChargeType> gearTypeChargeTypes() = 0;
|
||||
virtual QVector<BuildingChargeEffect> buildingChargeEffects() = 0;
|
||||
|
||||
// isEnabled checks
|
||||
virtual bool isChargeTypeEnabled() = 0;
|
||||
virtual bool isIgniterTypeEnabled() = 0;
|
||||
virtual bool isIgniterFunctionEnabled() = 0;
|
||||
virtual bool isLoadTypeEnabled() = 0;
|
||||
virtual bool isGearTypeEnabled() = 0;
|
||||
virtual bool isTargetTypeEnabled() = 0;
|
||||
virtual bool isTargetSubTypeEnabled() = 0;
|
||||
virtual bool isChargeTypeIgniterTypeIgniterFunctionEnabled() = 0;
|
||||
virtual bool isChargeTypeLoadTypeEnabled() = 0;
|
||||
virtual bool isGearTypeChargeTypeEnabled() = 0;
|
||||
virtual bool isBuildingChargeEffectEnabled() = 0;
|
||||
|
||||
// enable* methods
|
||||
virtual void enableIgniterType(bool enable) = 0;
|
||||
virtual void enableChargeTypeIgniterTypeIgniterFunction(bool enable) = 0;
|
||||
virtual void enableIgniterFunction(bool enable) = 0;
|
||||
virtual void enableLoadType(bool enable) = 0;
|
||||
virtual void enableChargeTypeLoadType(bool enable) = 0;
|
||||
virtual void enableTargetType(bool enable) = 0;
|
||||
virtual void enableTargetSubType(bool enable) = 0;
|
||||
virtual void enableChargeType(bool enable) = 0;
|
||||
virtual void enableGearType(bool enable) = 0;
|
||||
virtual void enableGearTypeChargeType(bool enable) = 0;
|
||||
virtual void enableTargetTypeTargetSubType(bool enable) = 0;
|
||||
virtual void enableRadioGroup(bool enable) = 0;
|
||||
virtual void enableVulnerabilityKind(bool enable) = 0;
|
||||
virtual void enableBuildingChargeEffect(bool enable) = 0;
|
||||
|
||||
// waitForHistoricalData methods
|
||||
virtual void waitForHistoricalDataChargeType(int timeout_ms) = 0;
|
||||
virtual void waitForHistoricalDataIgniterType(int timeout_ms) = 0;
|
||||
virtual void waitForHistoricalDataIgniterFunction(int timeout_ms) = 0;
|
||||
virtual void waitForHistoricalDataLoadType(int timeout_ms) = 0;
|
||||
virtual void waitForHistoricalDataGearType(int timeout_ms) = 0;
|
||||
virtual void waitForHistoricalDataTargetType(int timeout_ms) = 0;
|
||||
virtual void waitForHistoricalDataTargetSubType(int timeout_ms) = 0;
|
||||
virtual void waitForHistoricalDataChargeTypeIgniterTypeIgniterFunction(int timeout_ms) = 0;
|
||||
virtual void waitForHistoricalDataChargeTypeLoadType(int timeout_ms) = 0;
|
||||
virtual void waitForHistoricalDataGearTypeChargeType(int timeout_ms) = 0;
|
||||
virtual void waitForHistoricalDataBuildingChargeEffect(int timeout_ms) = 0;
|
||||
virtual void waitForHistoricalDataTargetTypeTargetSubType(int timeout_ms) = 0;
|
||||
virtual void waitForHistoricalDataRadioGroup(int timeout_ms) = 0;
|
||||
virtual void waitForHistoricalDataVulnerabilityKind(int timeout_ms) = 0;
|
||||
|
||||
// Helper methods
|
||||
virtual QJsonObject propertiesToJson(const std::string &properties) = 0;
|
||||
|
||||
virtual QString trBiteComponentTextName(int biteComponentId) = 0;
|
||||
virtual QString trCanComponentStringName(int canComponentId) = 0;
|
||||
virtual QString trChargeTypeShortName(int chargeTypeId, bool omitBaseSuffix = false) = 0;
|
||||
virtual QString trChargeTypeName(int chargeTypeId, bool omitBaseSuffix = false) = 0;
|
||||
virtual QString trFirePurposeName(int firePurposeId) = 0;
|
||||
virtual QString trGearTypeName(int gearTypeId) = 0;
|
||||
virtual QString trIgniterTypeName(int igniterTypeId) = 0;
|
||||
virtual QString trIgniterTypeShortName(int igniterTypeId) = 0;
|
||||
virtual QString trIgniterFunctionName(int igniterFunctionId) = 0;
|
||||
virtual QString trIgniterFunctionShortName(int igniterFunctionId) = 0;
|
||||
virtual QString trLoadTypeName(int loadTypeId) = 0;
|
||||
virtual QString trLoadTypeShortName(int loadTypeId) = 0;
|
||||
virtual QString trTargetTypeName(int targetTypeId) = 0;
|
||||
virtual QString trTargetSubTypeName(int targetSubTypeId) = 0;
|
||||
virtual QString trLanguageHmiName(int languageHmiId) = 0;
|
||||
virtual QString trLanguageXduName(int languageXduId) = 0;
|
||||
virtual QString trNuclearPresetName(int nucularPresetId) = 0;
|
||||
virtual QString trRadioGroupName(int radioGroupId) = 0;
|
||||
virtual QString trVulnerabilityKindName(int vulnerabilityKindId, VulnerabilityClass vulnerabilityClassId) = 0;
|
||||
virtual QString trSanitationMaterialName(int sanitationMaterialId) = 0;
|
||||
virtual QString trSanitationProcedureName(int sanitationProcedureId) = 0;
|
||||
virtual QString trSanitationInjuryKindName(int sanitationInjuryKindId) = 0;
|
||||
virtual QString trSanitationInjuryPlace1Name(int sanitationInjuryPlace1Id) = 0;
|
||||
virtual QString trSanitationInjuryPlace2Name(int sanitationInjuryPlace2Id) = 0;
|
||||
|
||||
virtual QStringList chargeNames(std::vector<int> &chargeIds) = 0;
|
||||
virtual int getAvailableChargeTypeId(int chargeTypeId) = 0;
|
||||
virtual ChargeTypeProperty getChargeTypeSpecialProperty(int chargeTypeId, int igniterTypeId, int igniterFunctionId) = 0;
|
||||
virtual QVector<SanitationProcedure> getSanitationProcedures(qint64 procedures) = 0;
|
||||
virtual QStringList sanitationProceduresList(qint64 procedures) = 0;
|
||||
|
||||
protected:
|
||||
DtcImpl() = default;
|
||||
};
|
||||
|
||||
} // namespace Interface
|
||||
} // namespace ProjectDataManagement
|
||||
@@ -1,13 +0,0 @@
|
||||
#ifndef PROJECTDATAMANAGEMENT_PDM_ENUMS_HPP
|
||||
#define PROJECTDATAMANAGEMENT_PDM_ENUMS_HPP
|
||||
|
||||
// Minimal placeholder for migration build. Real definitions come from ProjectDataManagement module.
|
||||
// This stub allows isolated migration builds; replace with real generated header when available.
|
||||
|
||||
namespace ProjectDataManagement {
|
||||
enum PdmEnums {
|
||||
PDM_ENUM_PLACEHOLDER = 0
|
||||
};
|
||||
}
|
||||
|
||||
#endif // PROJECTDATAMANAGEMENT_PDM_ENUMS_HPP
|
||||
@@ -1,243 +1,7 @@
|
||||
// Temporary stub for pdm_enums.hpp
|
||||
// This file should be generated by RTI codegen from IDL definitions
|
||||
// Created for Qt6 migration build
|
||||
// Extended with AdlerJson enums
|
||||
// Stub file for pdm_enums.hpp - used when BUILD_RTI=OFF
|
||||
#ifndef PDM_ENUMS_HPP
|
||||
#define PDM_ENUMS_HPP
|
||||
|
||||
#pragma once
|
||||
// Minimal stub - actual enums generated by rtiddsgen when BUILD_RTI=ON
|
||||
|
||||
#include <QtCore/QMap>
|
||||
#include <QtCore/QString>
|
||||
#include "pdm_types.h"
|
||||
|
||||
namespace ProjectDataManagement
|
||||
{
|
||||
|
||||
// Additional enums required by AdlerJson/telegrams.h
|
||||
// (ChargeType, UnitType, SimulationType are already defined in pdm_types.h)
|
||||
enum class L4_TargetGeometry : int {
|
||||
Unknown = 0,
|
||||
Point, // P - Punktziel
|
||||
Area, // F - Flaechenziel
|
||||
Radial, // R - Radialziel
|
||||
Linear, // L - Linearziel
|
||||
A,
|
||||
L,
|
||||
L4_T,
|
||||
P,
|
||||
R,
|
||||
E,
|
||||
F1,
|
||||
F2,
|
||||
F3,
|
||||
F4,
|
||||
F5,
|
||||
F6,
|
||||
F7,
|
||||
F8,
|
||||
F9
|
||||
};
|
||||
|
||||
enum class L7_Request : int {
|
||||
Unknown = 0,
|
||||
ABR,
|
||||
BEI,
|
||||
BEK,
|
||||
BEL,
|
||||
BEO,
|
||||
BEW,
|
||||
BLE,
|
||||
BLI,
|
||||
BLW,
|
||||
BWL,
|
||||
L7_R,
|
||||
MBE,
|
||||
MBL,
|
||||
MIR,
|
||||
MRK,
|
||||
NIE,
|
||||
SPE,
|
||||
STO,
|
||||
UBW,
|
||||
VER,
|
||||
WRN,
|
||||
ZER,
|
||||
ZSL
|
||||
};
|
||||
|
||||
enum class L19_Oi : int {
|
||||
Unknown = 0,
|
||||
Empty, // Orts ID nicht gesetzt
|
||||
F1,
|
||||
F2,
|
||||
F3,
|
||||
F4,
|
||||
F5,
|
||||
F6,
|
||||
F7,
|
||||
F8,
|
||||
F9, // Feuerstellungen
|
||||
L // Ladeplatz
|
||||
};
|
||||
|
||||
enum class L22_FireHaltCategory : int {
|
||||
A = 0, // Feuer HALT Allgemein
|
||||
R, // Feuer HALT Referenziert
|
||||
E, // Feuer Einstellen
|
||||
C, // Aufheben Feuer HALT Allgemein
|
||||
F // Aufheben Feuer HALT Referenziert
|
||||
};
|
||||
|
||||
enum class L25_KindGuidingLine : int { FFA = 0, NFA, RFA, FSCL, RFL, FSSL, NFL };
|
||||
|
||||
enum class L26_EffectingSystemType : int { Unknown = 0, Pzh2000, RRohr, Mars, L26_E, M, P, RR };
|
||||
|
||||
enum class L27_EffectorId : int {
|
||||
Unknown = 0,
|
||||
// Letter IDs
|
||||
A,
|
||||
B,
|
||||
B1,
|
||||
B2,
|
||||
B3,
|
||||
B4,
|
||||
B5,
|
||||
B6,
|
||||
B7,
|
||||
B8,
|
||||
C,
|
||||
C1,
|
||||
C2,
|
||||
C3,
|
||||
C4,
|
||||
C5,
|
||||
C6,
|
||||
C7,
|
||||
C8,
|
||||
D,
|
||||
E,
|
||||
F,
|
||||
G,
|
||||
H,
|
||||
I,
|
||||
J,
|
||||
K,
|
||||
L,
|
||||
L27_E,
|
||||
M,
|
||||
N,
|
||||
O,
|
||||
P,
|
||||
Q,
|
||||
R,
|
||||
S,
|
||||
T,
|
||||
U,
|
||||
V,
|
||||
W,
|
||||
X,
|
||||
Y,
|
||||
Z,
|
||||
// Numeric IDs
|
||||
NO_211,
|
||||
NO_212,
|
||||
NO_213,
|
||||
NO_214,
|
||||
NO_215,
|
||||
NO_216,
|
||||
NO_217,
|
||||
NO_218,
|
||||
NO_221,
|
||||
NO_222,
|
||||
NO_223,
|
||||
NO_224,
|
||||
NO_225,
|
||||
NO_226,
|
||||
NO_227,
|
||||
NO_228,
|
||||
NO_311,
|
||||
NO_312,
|
||||
NO_313,
|
||||
NO_314,
|
||||
NO_315,
|
||||
NO_316,
|
||||
NO_317,
|
||||
NO_318,
|
||||
NO_321,
|
||||
NO_322,
|
||||
NO_323,
|
||||
NO_324,
|
||||
NO_325,
|
||||
NO_326,
|
||||
NO_327,
|
||||
NO_328,
|
||||
NO_411,
|
||||
NO_412,
|
||||
NO_413,
|
||||
NO_414,
|
||||
NO_415,
|
||||
NO_416,
|
||||
NO_417,
|
||||
NO_418,
|
||||
NO_421,
|
||||
NO_422,
|
||||
NO_423,
|
||||
NO_424,
|
||||
NO_425,
|
||||
NO_426,
|
||||
NO_427,
|
||||
NO_428,
|
||||
NO_511,
|
||||
NO_512,
|
||||
NO_513,
|
||||
NO_514,
|
||||
NO_515,
|
||||
NO_516,
|
||||
NO_517,
|
||||
NO_518,
|
||||
NO_521,
|
||||
NO_522,
|
||||
NO_523,
|
||||
NO_524,
|
||||
NO_525,
|
||||
NO_526,
|
||||
NO_527,
|
||||
NO_528
|
||||
};
|
||||
|
||||
enum class L28_Status : int { NichtEinsatzbereit = 0, Einsatzbereit };
|
||||
|
||||
enum class L46_GpsFrequency : int { L1 = 0, L2 };
|
||||
|
||||
enum class L48_TrajectoryRocket : int { Nominal = 0, Vertical };
|
||||
|
||||
// Enums required by pdm_db_structs.h
|
||||
enum class HgrMineSearchFilterType : int {
|
||||
Unknown = 0,
|
||||
Type1 = 1,
|
||||
Type2 = 2,
|
||||
Type3 = 3,
|
||||
Type4 = 4,
|
||||
Type5 = 5,
|
||||
Type6 = 6,
|
||||
Type7 = 7
|
||||
};
|
||||
|
||||
enum class GearClass : int {
|
||||
Unknown = 0,
|
||||
Class1 = 1,
|
||||
Class2 = 2,
|
||||
Class3 = 3,
|
||||
Class4 = 4,
|
||||
Class5 = 5
|
||||
};
|
||||
|
||||
enum class VulnerabilityClass : int {
|
||||
Unknown = 0,
|
||||
ClassA = 1,
|
||||
ClassB = 2,
|
||||
ClassC = 3,
|
||||
ClassD = 4,
|
||||
ClassE = 5
|
||||
};
|
||||
|
||||
} // namespace ProjectDataManagement
|
||||
#endif // PDM_ENUMS_HPP
|
||||
+5
-189
@@ -1,191 +1,7 @@
|
||||
/**
|
||||
* @RDE_HEADER@
|
||||
* Convert DSS enumerations to translatable strings
|
||||
* $Id$
|
||||
* $HeadURL$
|
||||
* $Author$
|
||||
*/
|
||||
// Stub file for pdm_translation.h - used when BUILD_GRANTLEE=OFF
|
||||
#ifndef PDM_TRANSLATION_H
|
||||
#define PDM_TRANSLATION_H
|
||||
|
||||
#pragma once
|
||||
// Minimal stub - actual translation generated by codegen when BUILD_GRANTLEE=ON
|
||||
|
||||
// filename: pdm_translation.h
|
||||
|
||||
#include <QString>
|
||||
#include "pdm_enums.hpp"
|
||||
#ifndef PDM_COMMON_EXPORT
|
||||
#ifdef BUILD_RTI
|
||||
#include "svcpdmcommon_export.h"
|
||||
#define PDM_COMMON_EXPORT SVCPDMCOMMON_EXPORT
|
||||
#else
|
||||
#define PDM_COMMON_EXPORT
|
||||
#endif
|
||||
#endif
|
||||
|
||||
class QString;
|
||||
|
||||
namespace ProjectDataManagement
|
||||
{
|
||||
// Translatable enumerations:
|
||||
inline PDM_COMMON_EXPORT QString toString(ChargeType ct)
|
||||
{
|
||||
switch (ct) {
|
||||
case ChargeType::Unknown: return QStringLiteral("Unknown");
|
||||
default: return QStringLiteral("Unknown");
|
||||
}
|
||||
}
|
||||
|
||||
inline PDM_COMMON_EXPORT QString toString(UnitType ut)
|
||||
{
|
||||
switch (ut) {
|
||||
case UnitType::Unknown: return QStringLiteral("Unknown");
|
||||
default: return QStringLiteral("Unknown");
|
||||
}
|
||||
}
|
||||
|
||||
inline PDM_COMMON_EXPORT QString toString(SimulationType st)
|
||||
{
|
||||
switch (st) {
|
||||
case SimulationType::Unknown: return QStringLiteral("Unknown");
|
||||
default: return QStringLiteral("Unknown");
|
||||
}
|
||||
}
|
||||
|
||||
inline PDM_COMMON_EXPORT QString toString(L4_TargetGeometry state)
|
||||
{
|
||||
switch (state) {
|
||||
case L4_TargetGeometry::Unknown: return QStringLiteral("Unknown");
|
||||
case L4_TargetGeometry::Point: return QStringLiteral("Point");
|
||||
case L4_TargetGeometry::Area: return QStringLiteral("Area");
|
||||
case L4_TargetGeometry::Radial: return QStringLiteral("Radial");
|
||||
case L4_TargetGeometry::Linear: return QStringLiteral("Linear");
|
||||
default: return QStringLiteral("Unknown");
|
||||
}
|
||||
}
|
||||
|
||||
inline PDM_COMMON_EXPORT QString toString(L7_Request state)
|
||||
{
|
||||
switch (state) {
|
||||
case L7_Request::Unknown: return QStringLiteral("Unknown");
|
||||
default: return QStringLiteral("Unknown");
|
||||
}
|
||||
}
|
||||
|
||||
inline PDM_COMMON_EXPORT QString toString(L19_Oi state)
|
||||
{
|
||||
switch (state) {
|
||||
case L19_Oi::Unknown: return QStringLiteral("Unknown");
|
||||
case L19_Oi::Empty: return QStringLiteral("Empty");
|
||||
default: return QStringLiteral("Unknown");
|
||||
}
|
||||
}
|
||||
|
||||
inline PDM_COMMON_EXPORT QString toString(L22_FireHaltCategory state)
|
||||
{
|
||||
switch (state) {
|
||||
case L22_FireHaltCategory::A: return QStringLiteral("A");
|
||||
case L22_FireHaltCategory::R: return QStringLiteral("R");
|
||||
case L22_FireHaltCategory::E: return QStringLiteral("E");
|
||||
case L22_FireHaltCategory::C: return QStringLiteral("C");
|
||||
case L22_FireHaltCategory::F: return QStringLiteral("F");
|
||||
default: return QStringLiteral("Unknown");
|
||||
}
|
||||
}
|
||||
|
||||
inline PDM_COMMON_EXPORT QString toString(L25_KindGuidingLine state)
|
||||
{
|
||||
switch (state) {
|
||||
case L25_KindGuidingLine::FFA: return QStringLiteral("FFA");
|
||||
case L25_KindGuidingLine::NFA: return QStringLiteral("NFA");
|
||||
case L25_KindGuidingLine::RFA: return QStringLiteral("RFA");
|
||||
case L25_KindGuidingLine::FSCL: return QStringLiteral("FSCL");
|
||||
case L25_KindGuidingLine::RFL: return QStringLiteral("RFL");
|
||||
case L25_KindGuidingLine::FSSL: return QStringLiteral("FSSL");
|
||||
case L25_KindGuidingLine::NFL: return QStringLiteral("NFL");
|
||||
default: return QStringLiteral("Unknown");
|
||||
}
|
||||
}
|
||||
|
||||
inline PDM_COMMON_EXPORT QString toString(L26_EffectingSystemType state)
|
||||
{
|
||||
switch (state) {
|
||||
case L26_EffectingSystemType::Unknown: return QStringLiteral("Unknown");
|
||||
case L26_EffectingSystemType::Pzh2000: return QStringLiteral("Pzh2000");
|
||||
case L26_EffectingSystemType::RRohr: return QStringLiteral("RRohr");
|
||||
case L26_EffectingSystemType::Mars: return QStringLiteral("Mars");
|
||||
default: return QStringLiteral("Unknown");
|
||||
}
|
||||
}
|
||||
|
||||
inline PDM_COMMON_EXPORT QString toString(L27_EffectorId state)
|
||||
{
|
||||
switch (state) {
|
||||
case L27_EffectorId::Unknown: return QStringLiteral("Unknown");
|
||||
default: return QStringLiteral("Unknown");
|
||||
}
|
||||
}
|
||||
|
||||
inline PDM_COMMON_EXPORT QString toString(L28_Status state)
|
||||
{
|
||||
switch (state) {
|
||||
case L28_Status::NichtEinsatzbereit: return QStringLiteral("NichtEinsatzbereit");
|
||||
case L28_Status::Einsatzbereit: return QStringLiteral("Einsatzbereit");
|
||||
default: return QStringLiteral("Unknown");
|
||||
}
|
||||
}
|
||||
|
||||
inline PDM_COMMON_EXPORT QString toString(L46_GpsFrequency state)
|
||||
{
|
||||
switch (state) {
|
||||
case L46_GpsFrequency::L1: return QStringLiteral("L1");
|
||||
case L46_GpsFrequency::L2: return QStringLiteral("L2");
|
||||
default: return QStringLiteral("Unknown");
|
||||
}
|
||||
}
|
||||
|
||||
inline PDM_COMMON_EXPORT QString toString(L48_TrajectoryRocket state)
|
||||
{
|
||||
switch (state) {
|
||||
case L48_TrajectoryRocket::Nominal: return QStringLiteral("Nominal");
|
||||
case L48_TrajectoryRocket::Vertical: return QStringLiteral("Vertical");
|
||||
default: return QStringLiteral("Unknown");
|
||||
}
|
||||
}
|
||||
|
||||
inline PDM_COMMON_EXPORT QString toString(EventType et)
|
||||
{
|
||||
switch (et) {
|
||||
case EventType::Unknown: return QStringLiteral("Unknown");
|
||||
case EventType::Alarm: return QStringLiteral("Alarm");
|
||||
case EventType::Warning: return QStringLiteral("Warning");
|
||||
case EventType::Info: return QStringLiteral("Info");
|
||||
case EventType::Status: return QStringLiteral("Status");
|
||||
default: return QStringLiteral("Unknown");
|
||||
}
|
||||
}
|
||||
|
||||
inline PDM_COMMON_EXPORT QString toString(VulnerabilityState vs)
|
||||
{
|
||||
switch (vs) {
|
||||
case VulnerabilityState::NoChange: return QStringLiteral("NoChange");
|
||||
case VulnerabilityState::CombatReady: return QStringLiteral("CombatReady");
|
||||
case VulnerabilityState::LightDamage: return QStringLiteral("LightDamage");
|
||||
case VulnerabilityState::MediumDamage: return QStringLiteral("MediumDamage");
|
||||
case VulnerabilityState::HeavyDamage: return QStringLiteral("HeavyDamage");
|
||||
case VulnerabilityState::MobilityKill: return QStringLiteral("MobilityKill");
|
||||
case VulnerabilityState::VisibleMobilityKill: return QStringLiteral("VisibleMobilityKill");
|
||||
case VulnerabilityState::WeaponSystemDamage: return QStringLiteral("WeaponSystemDamage");
|
||||
case VulnerabilityState::VisibleWeaponSystemDamage: return QStringLiteral("VisibleWeaponSystemDamage");
|
||||
case VulnerabilityState::CatastrophicKill: return QStringLiteral("CatastrophicKill");
|
||||
case VulnerabilityState::TemporarySeverance: return QStringLiteral("TemporarySeverance");
|
||||
case VulnerabilityState::NearMiss: return QStringLiteral("NearMiss");
|
||||
case VulnerabilityState::HitWithNoEffect: return QStringLiteral("HitWithNoEffect");
|
||||
case VulnerabilityState::VulnerabilityBitsChanged: return QStringLiteral("VulnerabilityBitsChanged");
|
||||
case VulnerabilityState::Reserved: return QStringLiteral("Reserved");
|
||||
case VulnerabilityState::NContamination: return QStringLiteral("NContamination");
|
||||
case VulnerabilityState::BContamination: return QStringLiteral("BContamination");
|
||||
case VulnerabilityState::CContamination: return QStringLiteral("CContamination");
|
||||
default: return QStringLiteral("Unknown");
|
||||
}
|
||||
}
|
||||
|
||||
} // namespace ProjectDataManagement
|
||||
#endif // PDM_TRANSLATION_H
|
||||
@@ -1,34 +1,7 @@
|
||||
#pragma once
|
||||
// Stub file for pdm_types.h - used when BUILD_GRANTLEE=OFF
|
||||
#ifndef PDM_TYPES_H
|
||||
#define PDM_TYPES_H
|
||||
|
||||
// STUB-HEADER: Diese Datei enthält nur Typen die NICHT von RTIDDSGEN generiert werden
|
||||
// Alle DDS-generierten Typen sind in pdm_enums.hpp und pdm.hpp
|
||||
// Minimal stub - actual types generated by codegen when BUILD_GRANTLEE=ON
|
||||
|
||||
#include <QtCore/QString>
|
||||
#include "pdm_export.h"
|
||||
|
||||
// Include generated DDS types
|
||||
#include "pdm_enums.hpp"
|
||||
|
||||
namespace ProjectDataManagement
|
||||
{
|
||||
|
||||
// These types are NOT generated by RTIDDSGEN and must be defined here
|
||||
// STUB: UnitType Enum
|
||||
enum class UnitType : int
|
||||
{
|
||||
Unknown = 0,
|
||||
Air = 1,
|
||||
Ground = 2,
|
||||
Naval = 3
|
||||
};
|
||||
|
||||
// STUB: SimulationType Enum
|
||||
enum class SimulationType : int
|
||||
{
|
||||
Unknown = 0,
|
||||
Live = 1,
|
||||
Constructive = 2,
|
||||
Virtual = 3
|
||||
};
|
||||
|
||||
} // namespace ProjectDataManagement
|
||||
#endif // PDM_TYPES_H
|
||||
Reference in new issue
Block a user