Apply clang-format to Lts/Common and DTC/enum headers

- Formatted all CodeGen module files (9 files)
- Formatted LtsAppDescriptor module files
- Formatted LtsAppManager/AppChooser files
- Applied clang-format to all DTC and enum headers across modules
- Removed coordTransTests from CommonUnitTestsPlaceholder (moved to tests/)

Cosmetic changes only, no functional modifications.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
This commit is contained in:
torstenandCopilot committed 2026-08-19 14:46:29 +02:00
1 parent 1881d68aef
commit d6b6ffce7c
848 files changed
+89305 -100020

No files matched your search

@@ -1,4 +1,5 @@
#pragma once
// STUB-HEADER: Diese Datei wird normalerweise von ddsdtc generiert
// Für die Migration erstellen wir minimale Forward-Declarations
@@ -6,7 +7,7 @@ namespace AlarmManagement
{
namespace Interface
{
class Dtc;
class Ftc;
}
}
class Dtc;
class Ftc;
} // namespace Interface
} // namespace AlarmManagement
@@ -1,4 +1,5 @@
#pragma once
// STUB-HEADER: Diese Datei wird normalerweise von ddsdtc generiert
// Für die Migration erstellen wir minimale Forward-Declarations
@@ -6,7 +7,7 @@ namespace AreaEffectSimulation
{
namespace Interface
{
class Dtc;
class Ftc;
}
}
class Dtc;
class Ftc;
} // namespace Interface
} // namespace AreaEffectSimulation
@@ -1,4 +1,5 @@
#pragma once
// STUB-HEADER: Diese Datei wird normalerweise von ddsdtc generiert
// Für die Migration erstellen wir minimale Forward-Declarations
@@ -6,7 +7,7 @@ namespace AssetManagement
{
namespace Interface
{
class Dtc;
class Ftc;
}
}
class Dtc;
class Ftc;
} // namespace Interface
} // namespace AssetManagement
@@ -1,24 +1,19 @@
#pragma once
// STUB-HEADER: Diese Datei wird normalerweise von ddsdtc generiert
// Für die Migration erstellen wir minimale Typ-Definitionen
namespace AssetManagement
{
// Placeholder enums - werden durch echte DDS-Typen ersetzt
enum class SymbolAppearance : int {
Solid = 0,
Dashed = 1,
Dotted = 2
};
enum class SymbolAppearance : int { Solid = 0, Dashed = 1, Dotted = 2 };
enum class SymbolVisibility : int {
Visible = 0,
Hidden = 1
};
enum class SymbolVisibility : int { Visible = 0, Hidden = 1 };
struct UnitSymbolPosition {
double x = 0.0;
double y = 0.0;
double z = 0.0;
struct UnitSymbolPosition
{
double x = 0.0;
double y = 0.0;
double z = 0.0;
};
}
} // namespace AssetManagement
@@ -1,4 +1,5 @@
#pragma once
// STUB-HEADER: Diese Datei wird normalerweise von ddsdtc generiert
// Für die Migration erstellen wir minimale Forward-Declarations
@@ -6,7 +7,7 @@ namespace AudioVideoManagement
{
namespace Interface
{
class Dtc;
class Ftc;
}
}
class Dtc;
class Ftc;
} // namespace Interface
} // namespace AudioVideoManagement
@@ -1,24 +1,19 @@
#pragma once
// STUB-HEADER: Diese Datei wird normalerweise von ddsdtc generiert
// Für die Migration erstellen wir minimale Typ-Definitionen
namespace AudioVideoManagement
{
// Placeholder enums - werden durch echte DDS-Typen ersetzt
enum class SymbolAppearance : int {
Solid = 0,
Dashed = 1,
Dotted = 2
};
enum class SymbolAppearance : int { Solid = 0, Dashed = 1, Dotted = 2 };
enum class SymbolVisibility : int {
Visible = 0,
Hidden = 1
};
enum class SymbolVisibility : int { Visible = 0, Hidden = 1 };
struct UnitSymbolPosition {
double x = 0.0;
double y = 0.0;
double z = 0.0;
struct UnitSymbolPosition
{
double x = 0.0;
double y = 0.0;
double z = 0.0;
};
}
} // namespace AudioVideoManagement
@@ -1,4 +1,5 @@
#pragma once
// STUB-HEADER: Diese Datei wird normalerweise von ddsdtc generiert
// Für die Migration erstellen wir minimale Forward-Declarations
@@ -6,7 +7,7 @@ namespace Buildings
{
namespace Interface
{
class Dtc;
class Ftc;
}
}
class Dtc;
class Ftc;
} // namespace Interface
} // namespace Buildings
@@ -1,24 +1,19 @@
#pragma once
// STUB-HEADER: Diese Datei wird normalerweise von ddsdtc generiert
// Für die Migration erstellen wir minimale Typ-Definitionen
namespace Buildings
{
// Placeholder enums - werden durch echte DDS-Typen ersetzt
enum class SymbolAppearance : int {
Solid = 0,
Dashed = 1,
Dotted = 2
};
enum class SymbolAppearance : int { Solid = 0, Dashed = 1, Dotted = 2 };
enum class SymbolVisibility : int {
Visible = 0,
Hidden = 1
};
enum class SymbolVisibility : int { Visible = 0, Hidden = 1 };
struct UnitSymbolPosition {
double x = 0.0;
double y = 0.0;
double z = 0.0;
struct UnitSymbolPosition
{
double x = 0.0;
double y = 0.0;
double z = 0.0;
};
}
} // namespace Buildings
@@ -1,4 +1,5 @@
#pragma once
// STUB-HEADER: Diese Datei wird normalerweise von ddsdtc generiert
// Für die Migration erstellen wir minimale Forward-Declarations
@@ -6,7 +7,7 @@ namespace CentralEffectSimulation
{
namespace Interface
{
class Dtc;
class Ftc;
}
}
class Dtc;
class Ftc;
} // namespace Interface
} // namespace CentralEffectSimulation
@@ -1,4 +1,5 @@
#pragma once
// STUB-HEADER: Diese Datei wird normalerweise von ddsdtc generiert
// Für die Migration erstellen wir minimale Forward-Declarations
@@ -6,7 +7,7 @@ namespace CodificationManagement
{
namespace Interface
{
class Dtc;
class Ftc;
}
}
class Dtc;
class Ftc;
} // namespace Interface
} // namespace CodificationManagement
@@ -1,4 +1,5 @@
#pragma once
// STUB-HEADER: Diese Datei wird normalerweise von ddsdtc generiert
// Für die Migration erstellen wir minimale Forward-Declarations
@@ -6,7 +7,7 @@ namespace ComponentMonitor
{
namespace Interface
{
class Dtc;
class Ftc;
}
}
class Dtc;
class Ftc;
} // namespace Interface
} // namespace ComponentMonitor
@@ -1,4 +1,5 @@
#pragma once
// STUB-HEADER: Diese Datei wird normalerweise von ddsdtc generiert
// Für die Migration erstellen wir minimale Forward-Declarations
@@ -6,7 +7,7 @@ namespace Core
{
namespace Interface
{
class Dtc;
class Ftc;
}
}
class Dtc;
class Ftc;
} // namespace Interface
} // namespace Core
@@ -1,24 +1,19 @@
#pragma once
// STUB-HEADER: Diese Datei wird normalerweise von ddsdtc generiert
// Für die Migration erstellen wir minimale Typ-Definitionen
namespace Core
{
// Placeholder enums - werden durch echte DDS-Typen ersetzt
enum class SymbolAppearance : int {
Solid = 0,
Dashed = 1,
Dotted = 2
};
enum class SymbolAppearance : int { Solid = 0, Dashed = 1, Dotted = 2 };
enum class SymbolVisibility : int {
Visible = 0,
Hidden = 1
};
enum class SymbolVisibility : int { Visible = 0, Hidden = 1 };
struct UnitSymbolPosition {
double x = 0.0;
double y = 0.0;
double z = 0.0;
struct UnitSymbolPosition
{
double x = 0.0;
double y = 0.0;
double z = 0.0;
};
}
} // namespace Core
@@ -1,4 +1,5 @@
#pragma once
// STUB-HEADER: Diese Datei wird normalerweise von ddsdtc generiert
// Für die Migration erstellen wir minimale Forward-Declarations
@@ -6,7 +7,7 @@ namespace DDS
{
namespace Interface
{
class Dtc;
class Ftc;
}
}
class Dtc;
class Ftc;
} // namespace Interface
} // namespace DDS
@@ -1,4 +1,5 @@
#pragma once
// STUB-HEADER: Diese Datei wird normalerweise von ddsdtc generiert
// Für die Migration erstellen wir minimale Forward-Declarations
@@ -6,7 +7,7 @@ namespace TrainingAreaBaseOC
{
namespace Interface
{
class Dtc;
class Ftc;
}
}
class Dtc;
class Ftc;
} // namespace Interface
} // namespace TrainingAreaBaseOC
@@ -1,4 +1,5 @@
#pragma once
// STUB-HEADER: Diese Datei wird normalerweise von ddsdtc generiert
// Für die Migration erstellen wir minimale Forward-Declarations
@@ -6,7 +7,7 @@ namespace DDS
{
namespace Interface
{
class Dtc;
class Ftc;
}
}
class Dtc;
class Ftc;
} // namespace Interface
} // namespace DDS
@@ -1,4 +1,5 @@
#pragma once
// STUB-HEADER: Diese Datei wird normalerweise von ddsdtc generiert
// Für die Migration erstellen wir minimale Forward-Declarations
@@ -6,7 +7,7 @@ namespace EffectShowClient
{
namespace Interface
{
class Dtc;
class Ftc;
}
}
class Dtc;
class Ftc;
} // namespace Interface
} // namespace EffectShowClient
@@ -1,4 +1,5 @@
#pragma once
// STUB-HEADER: Diese Datei wird normalerweise von ddsdtc generiert
// Für die Migration erstellen wir minimale Forward-Declarations
@@ -6,7 +7,7 @@ namespace EffectShowManagement
{
namespace Interface
{
class Dtc;
class Ftc;
}
}
class Dtc;
class Ftc;
} // namespace Interface
} // namespace EffectShowManagement
@@ -1,4 +1,5 @@
#pragma once
// STUB-HEADER: Diese Datei wird normalerweise von ddsdtc generiert
// Für die Migration erstellen wir minimale Forward-Declarations
@@ -6,7 +7,7 @@ namespace Evaluations
{
namespace Interface
{
class Dtc;
class Ftc;
}
}
class Dtc;
class Ftc;
} // namespace Interface
} // namespace Evaluations
@@ -1,4 +1,5 @@
#pragma once
// STUB-HEADER: Diese Datei wird normalerweise von ddsdtc generiert
// Für die Migration erstellen wir minimale Forward-Declarations
@@ -6,7 +7,7 @@ namespace ExerciseEventManagement
{
namespace Interface
{
class Dtc;
class Ftc;
}
}
class Dtc;
class Ftc;
} // namespace Interface
} // namespace ExerciseEventManagement
@@ -1,24 +1,19 @@
#pragma once
// STUB-HEADER: Diese Datei wird normalerweise von ddsdtc generiert
// Für die Migration erstellen wir minimale Typ-Definitionen
namespace ExerciseEventManagement
{
// Placeholder enums - werden durch echte DDS-Typen ersetzt
enum class SymbolAppearance : int {
Solid = 0,
Dashed = 1,
Dotted = 2
};
enum class SymbolAppearance : int { Solid = 0, Dashed = 1, Dotted = 2 };
enum class SymbolVisibility : int {
Visible = 0,
Hidden = 1
};
enum class SymbolVisibility : int { Visible = 0, Hidden = 1 };
struct UnitSymbolPosition {
double x = 0.0;
double y = 0.0;
double z = 0.0;
struct UnitSymbolPosition
{
double x = 0.0;
double y = 0.0;
double z = 0.0;
};
}
} // namespace ExerciseEventManagement
@@ -1,4 +1,5 @@
#pragma once
// STUB-HEADER: Diese Datei wird normalerweise von ddsdtc generiert
// Für die Migration erstellen wir minimale Forward-Declarations
@@ -6,7 +7,7 @@ namespace ExerciseManagement
{
namespace Interface
{
class Dtc;
class Ftc;
}
}
class Dtc;
class Ftc;
} // namespace Interface
} // namespace ExerciseManagement
@@ -1,24 +1,19 @@
#pragma once
// STUB-HEADER: Diese Datei wird normalerweise von ddsdtc generiert
// Für die Migration erstellen wir minimale Typ-Definitionen
namespace ExerciseManagement
{
// Placeholder enums - werden durch echte DDS-Typen ersetzt
enum class SymbolAppearance : int {
Solid = 0,
Dashed = 1,
Dotted = 2
};
enum class SymbolAppearance : int { Solid = 0, Dashed = 1, Dotted = 2 };
enum class SymbolVisibility : int {
Visible = 0,
Hidden = 1
};
enum class SymbolVisibility : int { Visible = 0, Hidden = 1 };
struct UnitSymbolPosition {
double x = 0.0;
double y = 0.0;
double z = 0.0;
struct UnitSymbolPosition
{
double x = 0.0;
double y = 0.0;
double z = 0.0;
};
}
} // namespace ExerciseManagement
@@ -1,4 +1,5 @@
#pragma once
// STUB-HEADER: Diese Datei wird normalerweise von ddsdtc generiert
// Für die Migration erstellen wir minimale Forward-Declarations
@@ -6,7 +7,7 @@ namespace FileManagement
{
namespace Interface
{
class Dtc;
class Ftc;
}
}
class Dtc;
class Ftc;
} // namespace Interface
} // namespace FileManagement
@@ -1,24 +1,19 @@
#pragma once
// STUB-HEADER: Diese Datei wird normalerweise von ddsdtc generiert
// Für die Migration erstellen wir minimale Typ-Definitionen
namespace FileManagement
{
// Placeholder enums - werden durch echte DDS-Typen ersetzt
enum class SymbolAppearance : int {
Solid = 0,
Dashed = 1,
Dotted = 2
};
enum class SymbolAppearance : int { Solid = 0, Dashed = 1, Dotted = 2 };
enum class SymbolVisibility : int {
Visible = 0,
Hidden = 1
};
enum class SymbolVisibility : int { Visible = 0, Hidden = 1 };
struct UnitSymbolPosition {
double x = 0.0;
double y = 0.0;
double z = 0.0;
struct UnitSymbolPosition
{
double x = 0.0;
double y = 0.0;
double z = 0.0;
};
}
} // namespace FileManagement
@@ -1,4 +1,5 @@
#pragma once
// STUB-HEADER: Diese Datei wird normalerweise von ddsdtc generiert
// Für die Migration erstellen wir minimale Forward-Declarations
@@ -6,7 +7,7 @@ namespace GuezIedManagement
{
namespace Interface
{
class Dtc;
class Ftc;
}
}
class Dtc;
class Ftc;
} // namespace Interface
} // namespace GuezIedManagement
@@ -1,4 +1,5 @@
#pragma once
// STUB-HEADER: Diese Datei wird normalerweise von ddsdtc generiert
// Für die Migration erstellen wir minimale Forward-Declarations
@@ -6,7 +7,7 @@ namespace GuezNasat
{
namespace Interface
{
class Dtc;
class Ftc;
}
}
class Dtc;
class Ftc;
} // namespace Interface
} // namespace GuezNasat
@@ -1,4 +1,5 @@
#pragma once
// STUB-HEADER: Diese Datei wird normalerweise von ddsdtc generiert
// Für die Migration erstellen wir minimale Forward-Declarations
@@ -6,7 +7,7 @@ namespace InfrastructureManagement
{
namespace Interface
{
class Dtc;
class Ftc;
}
}
class Dtc;
class Ftc;
} // namespace Interface
} // namespace InfrastructureManagement
@@ -8,7 +8,8 @@
#include <cstdint>
namespace InfrastructureManagement {
namespace InfrastructureManagement
{
// MountingPointType als enum class mit allen Werten
enum class MountingPointType : int32_t {
@@ -29,24 +30,16 @@ enum class MountingPointType : int32_t {
};
// MountingPointState als enum class mit allen Werten
enum class MountingPointState : int32_t {
Undefined = 0,
Equipped = 1,
Empty = 2,
Idle = 3
};
enum class MountingPointState : int32_t { Undefined = 0, Equipped = 1, Empty = 2, Idle = 3 };
// AimState als enum class
enum class AimState : int32_t {
Undefined = 0,
Active = 1,
Inactive = 2
};
enum class AimState : int32_t { Undefined = 0, Active = 1, Inactive = 2 };
// DDS type wrapper für MountingPointType
struct MountingPointType_def {
struct MountingPointType_def
{
using type = MountingPointType;
// Enum values als static members für Kompatibilität
static constexpr MountingPointType Undefined = MountingPointType::Undefined;
static constexpr MountingPointType Generic = MountingPointType::Generic;
@@ -65,9 +58,10 @@ struct MountingPointType_def {
};
// DDS type wrapper für MountingPointState
struct MountingPointState_def {
struct MountingPointState_def
{
using type = MountingPointState;
static constexpr MountingPointState Undefined = MountingPointState::Undefined;
static constexpr MountingPointState Equipped = MountingPointState::Equipped;
static constexpr MountingPointState Empty = MountingPointState::Empty;
@@ -75,9 +69,10 @@ struct MountingPointState_def {
};
// DDS type wrapper für AimState
struct AimState_def {
struct AimState_def
{
using type = AimState;
static constexpr AimState Undefined = AimState::Undefined;
static constexpr AimState Active = AimState::Active;
static constexpr AimState Inactive = AimState::Inactive;
@@ -1,4 +1,5 @@
#pragma once
// STUB-HEADER: Diese Datei wird normalerweise von ddsdtc generiert
// Für die Migration erstellen wir minimale Forward-Declarations
@@ -6,7 +7,7 @@ namespace MarkerManagement
{
namespace Interface
{
class Dtc;
class Ftc;
}
}
class Dtc;
class Ftc;
} // namespace Interface
} // namespace MarkerManagement
@@ -1,4 +1,5 @@
#pragma once
// STUB-HEADER: Diese Datei wird normalerweise von ddsdtc generiert
// Für die Migration erstellen wir minimale Forward-Declarations
@@ -6,7 +7,7 @@ namespace Messaging
{
namespace Interface
{
class Dtc;
class Ftc;
}
}
class Dtc;
class Ftc;
} // namespace Interface
} // namespace Messaging
@@ -1,4 +1,5 @@
#pragma once
// STUB-HEADER: Diese Datei wird normalerweise von ddsdtc generiert
// Für die Migration erstellen wir minimale Forward-Declarations
@@ -6,7 +7,7 @@ namespace MeteoDataManagement
{
namespace Interface
{
class Dtc;
class Ftc;
}
}
class Dtc;
class Ftc;
} // namespace Interface
} // namespace MeteoDataManagement
@@ -1,4 +1,5 @@
#pragma once
// STUB-HEADER: Diese Datei wird normalerweise von ddsdtc generiert
// Für die Migration erstellen wir minimale Forward-Declarations
@@ -6,7 +7,7 @@ namespace NotificationManagement
{
namespace Interface
{
class Dtc;
class Ftc;
}
}
class Dtc;
class Ftc;
} // namespace Interface
} // namespace NotificationManagement
@@ -1,24 +1,19 @@
#pragma once
// STUB-HEADER: Diese Datei wird normalerweise von ddsdtc generiert
// Für die Migration erstellen wir minimale Typ-Definitionen
namespace NotificationManagement
{
// Placeholder enums - werden durch echte DDS-Typen ersetzt
enum class SymbolAppearance : int {
Solid = 0,
Dashed = 1,
Dotted = 2
};
enum class SymbolAppearance : int { Solid = 0, Dashed = 1, Dotted = 2 };
enum class SymbolVisibility : int {
Visible = 0,
Hidden = 1
};
enum class SymbolVisibility : int { Visible = 0, Hidden = 1 };
struct UnitSymbolPosition {
double x = 0.0;
double y = 0.0;
double z = 0.0;
struct UnitSymbolPosition
{
double x = 0.0;
double y = 0.0;
double z = 0.0;
};
}
} // namespace NotificationManagement
@@ -1,4 +1,5 @@
#pragma once
// STUB-HEADER: Diese Datei wird normalerweise von ddsdtc generiert
// Für die Migration erstellen wir minimale Forward-Declarations
@@ -6,7 +7,7 @@ namespace OcSituationServer
{
namespace Interface
{
class Dtc;
class Ftc;
}
}
class Dtc;
class Ftc;
} // namespace Interface
} // namespace OcSituationServer
@@ -1,4 +1,5 @@
#pragma once
// STUB-HEADER: Diese Datei wird normalerweise von ddsdtc generiert
// Für die Migration erstellen wir minimale Forward-Declarations
@@ -6,7 +7,7 @@ namespace OperatorManagement
{
namespace Interface
{
class Dtc;
class Ftc;
}
}
class Dtc;
class Ftc;
} // namespace Interface
} // namespace OperatorManagement
@@ -1,24 +1,19 @@
#pragma once
// STUB-HEADER: Diese Datei wird normalerweise von ddsdtc generiert
// Für die Migration erstellen wir minimale Typ-Definitionen
namespace ParticipantManagement
{
// Placeholder enums - werden durch echte DDS-Typen ersetzt
enum class SymbolAppearance : int {
Solid = 0,
Dashed = 1,
Dotted = 2
};
enum class SymbolAppearance : int { Solid = 0, Dashed = 1, Dotted = 2 };
enum class SymbolVisibility : int {
Visible = 0,
Hidden = 1
};
enum class SymbolVisibility : int { Visible = 0, Hidden = 1 };
struct UnitSymbolPosition {
double x = 0.0;
double y = 0.0;
double z = 0.0;
struct UnitSymbolPosition
{
double x = 0.0;
double y = 0.0;
double z = 0.0;
};
}
} // namespace ParticipantManagement
@@ -1,16 +1,16 @@
/**
* @file pre_dtc.h
* @brief DDS-generated Stub-Header für PresentationManagement DTC (Data Transfer Component)
*
*
* Dieser Header ist ein Stub für den von RTI DDS Generator erzeugten Header.
* Ermöglicht Build ohne echte DDS-Codegenerierung.
*/
#pragma once
#include <QList>
#include <QObject>
#include <QString>
#include <QList>
#include <functional>
#include <memory>
@@ -23,41 +23,41 @@ struct PresentationContent;
struct GetPresentationContentReply;
// FileStatus Enum - Status einer Präsentation
enum class FileStatus : int {
Valid = 0,
Deleted = 1
};
enum class FileStatus : int { Valid = 0, Deleted = 1 };
// Presentation - DDS-generierter Typ für Präsentationen
struct Presentation {
int32_t id = 0;
QString name;
QString description;
int32_t operatorId = 0;
qint64 lastModified = 0;
FileStatus fileStatus = FileStatus::Valid;
struct Presentation
{
int32_t id = 0;
QString name;
QString description;
int32_t operatorId = 0;
qint64 lastModified = 0;
FileStatus fileStatus = FileStatus::Valid;
};
// PresentationContent - Inhalt einer Präsentation
struct PresentationContent {
QString attributes;
QString channel;
QString description;
int32_t duration = 0;
double height = 0.0;
int32_t id = 0;
int32_t index = 0;
int32_t presentationId = 0;
QString presentationTopicType;
qint64 startTime = 0;
double width = 0.0;
double x = 0.0;
double y = 0.0;
struct PresentationContent
{
QString attributes;
QString channel;
QString description;
int32_t duration = 0;
double height = 0.0;
int32_t id = 0;
int32_t index = 0;
int32_t presentationId = 0;
QString presentationTopicType;
qint64 startTime = 0;
double width = 0.0;
double x = 0.0;
double y = 0.0;
};
// GetPresentationContentReply - Reply für GetPresentationContent Request
struct GetPresentationContentReply {
QList<PresentationContent> content;
struct GetPresentationContentReply
{
QList<PresentationContent> content;
};
namespace Interface
@@ -65,106 +65,125 @@ namespace Interface
/**
* @brief Dtc - Data Transfer Component für Presentation Management
*
*
* DDS-generierte Klasse mit Präsentation-Daten und Signalen für Änderungen.
*/
class Dtc : public QObject {
Q_OBJECT
public:
Dtc() = default;
~Dtc() override = default;
// Präsentations-Liste abrufen (Callback-basiert)
void presentations(const std::function<void(const Presentation&)>& callback) const {
for (const auto& p : m_presentations) {
callback(p);
class Dtc : public QObject
{
Q_OBJECT
public:
Dtc() = default;
~Dtc() override = default;
// Präsentations-Liste abrufen (Callback-basiert)
void presentations(const std::function<void(const Presentation&)>& callback) const
{
for (const auto& p : m_presentations)
{
callback(p);
}
}
}
// Präsentations-Liste als QList (für direkten Zugriff)
QList<Presentation> presentationsList() const { return m_presentations; }
// Präsentation hinzufügen/entfernen/ändern
void addPresentation(const Presentation& p) {
m_presentations.append(p);
emit presentationChanged(p, 0); // 0 = added
}
void updatePresentation(const Presentation& p) {
for (auto& existing : m_presentations) {
if (existing.id == p.id) {
existing = p;
emit presentationChanged(p, 1); // 1 = modified
return;
}
// Präsentations-Liste als QList (für direkten Zugriff)
QList<Presentation> presentationsList() const
{
return m_presentations;
}
addPresentation(p);
}
void removePresentation(int id) {
for (auto it = m_presentations.begin(); it != m_presentations.end(); ++it) {
if (it->id == id) {
Presentation removed = *it;
m_presentations.erase(it);
emit presentationChanged(removed, 2); // 2 = removed
return;
}
// Präsentation hinzufügen/entfernen/ändern
void addPresentation(const Presentation& p)
{
m_presentations.append(p);
emit presentationChanged(p, 0); // 0 = added
}
}
// Content getter/setter für PresentationContent
void content(const std::function<void(const PresentationContent&)>& callback) const {
for (const auto& c : m_content) {
callback(c);
void updatePresentation(const Presentation& p)
{
for (auto& existing : m_presentations)
{
if (existing.id == p.id)
{
existing = p;
emit presentationChanged(p, 1); // 1 = modified
return;
}
}
addPresentation(p);
}
}
QList<PresentationContent> contentList() const { return m_content; }
void setContent(const QList<PresentationContent>& content) {
m_content = content;
}
signals:
// Signal für Präsentations-Änderungen
void presentationChanged(const Presentation& presentation, int modificationType);
private:
QList<Presentation> m_presentations;
QList<PresentationContent> m_content;
void removePresentation(int id)
{
for (auto it = m_presentations.begin(); it != m_presentations.end(); ++it)
{
if (it->id == id)
{
Presentation removed = *it;
m_presentations.erase(it);
emit presentationChanged(removed, 2); // 2 = removed
return;
}
}
}
// Content getter/setter für PresentationContent
void content(const std::function<void(const PresentationContent&)>& callback) const
{
for (const auto& c : m_content)
{
callback(c);
}
}
QList<PresentationContent> contentList() const
{
return m_content;
}
void setContent(const QList<PresentationContent>& content)
{
m_content = content;
}
signals:
// Signal für Präsentations-Änderungen
void presentationChanged(const Presentation& presentation, int modificationType);
private:
QList<Presentation> m_presentations;
QList<PresentationContent> m_content;
};
/**
* @brief Ftc - Filter Topic Client für Presentation Management
*
*
* DDS-generierte Klasse für Presentation-Client-Operationen.
*/
class Ftc
{
public:
using ModifyTypeReplyHandler = std::function<void(bool success)>;
virtual ~Ftc() = default;
public:
using ModifyTypeReplyHandler = std::function<void(bool success)>;
/**
* @brief Factory-Methode zur Erstellung einer Ftc-Instanz
* @param connector DDS-Connector (wird im Stub ignoriert)
* @return Shared Pointer zur Ftc-Instanz (nullptr im Stub)
*/
static std::shared_ptr<Ftc> create(void* /*connector*/)
{
return nullptr; // Stub returns nullptr - actual implementation requires DDS
}
virtual ~Ftc() = default;
// PresentationModify Reply Handler
virtual void presentationModifyReply(ModifyTypeReplyHandler handler) = 0;
// PresentationRemove Reply Handler
virtual void presentationRemoveReply(ModifyTypeReplyHandler handler) = 0;
// GetPresentationContent Reply Handler
virtual void getPresentationContentReply(const GetPresentationContentReply& reply) = 0;
/**
* @brief Factory-Methode zur Erstellung einer Ftc-Instanz
* @param connector DDS-Connector (wird im Stub ignoriert)
* @return Shared Pointer zur Ftc-Instanz (nullptr im Stub)
*/
static std::shared_ptr<Ftc> create(void* /*connector*/)
{
return nullptr; // Stub returns nullptr - actual implementation requires DDS
}
// PresentationModify Reply Handler
virtual void presentationModifyReply(ModifyTypeReplyHandler handler) = 0;
// PresentationRemove Reply Handler
virtual void presentationRemoveReply(ModifyTypeReplyHandler handler) = 0;
// GetPresentationContent Reply Handler
virtual void getPresentationContentReply(const GetPresentationContentReply& reply) = 0;
};
} // namespace Interface
@@ -1,4 +1,5 @@
#pragma once
// STUB-HEADER: Diese Datei wird normalerweise von ddsdtc generiert
// Für die Migration erstellen wir minimale Forward-Declarations
@@ -6,7 +7,7 @@ namespace ProjectDataManagement
{
namespace Interface
{
class Dtc;
class Ftc;
}
}
class Dtc;
class Ftc;
} // namespace Interface
} // namespace ProjectDataManagement
@@ -5,100 +5,214 @@
#pragma once
#include <QString>
#include <QMap>
#include <QString>
namespace ProjectDataManagement {
namespace ProjectDataManagement
{
// Original enums
enum class ChargeType : int {
Unknown = 0
};
enum class ChargeType : int { Unknown = 0 };
enum class UnitType : int {
Unknown = 0
};
enum class UnitType : int { Unknown = 0 };
enum class SimulationType : int {
Unknown = 0
};
enum class SimulationType : int { Unknown = 0 };
// Additional enums required by AdlerJson/telegrams.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
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
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
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
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 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 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,
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
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 L28_Status : int { NichtEinsatzbereit = 0, Einsatzbereit };
enum class L46_GpsFrequency : int {
L1 = 0,
L2
};
enum class L46_GpsFrequency : int { L1 = 0, L2 };
enum class L48_TrajectoryRocket : int {
Nominal = 0,
Vertical
};
enum class L48_TrajectoryRocket : int { Nominal = 0, Vertical };
} // namespace ProjectDataManagement
@@ -1,4 +1,5 @@
#pragma once
// STUB-HEADER: Diese Datei wird normalerweise von ddsdtc generiert
// Für die Migration erstellen wir minimale Forward-Declarations
@@ -6,7 +7,7 @@ namespace ReportManagement
{
namespace Interface
{
class Dtc;
class Ftc;
}
}
class Dtc;
class Ftc;
} // namespace Interface
} // namespace ReportManagement
@@ -1,24 +1,19 @@
#pragma once
// STUB-HEADER: Diese Datei wird normalerweise von ddsdtc generiert
// Für die Migration erstellen wir minimale Typ-Definitionen
namespace ReportManagement
{
// Placeholder enums - werden durch echte DDS-Typen ersetzt
enum class SymbolAppearance : int {
Solid = 0,
Dashed = 1,
Dotted = 2
};
enum class SymbolAppearance : int { Solid = 0, Dashed = 1, Dotted = 2 };
enum class SymbolVisibility : int {
Visible = 0,
Hidden = 1
};
enum class SymbolVisibility : int { Visible = 0, Hidden = 1 };
struct UnitSymbolPosition {
double x = 0.0;
double y = 0.0;
double z = 0.0;
struct UnitSymbolPosition
{
double x = 0.0;
double y = 0.0;
double z = 0.0;
};
}
} // namespace ReportManagement
@@ -1,4 +1,5 @@
#pragma once
// STUB-HEADER: Diese Datei wird normalerweise von ddsdtc generiert
// Für die Migration erstellen wir minimale Forward-Declarations
@@ -6,7 +7,7 @@ namespace ServiceManagement
{
namespace Interface
{
class Dtc;
class Ftc;
}
}
class Dtc;
class Ftc;
} // namespace Interface
} // namespace ServiceManagement
@@ -7,66 +7,61 @@
namespace AreaEffectSimulation
{
// Placeholder enums - werden durch echte DDS-Typen ersetzt
enum class SymbolAppearance : int {
Solid = 0,
Dashed = 1,
Dotted = 2
};
enum class SymbolAppearance : int { Solid = 0, Dashed = 1, Dotted = 2 };
enum class SymbolVisibility : int {
Visible = 0,
Hidden = 1
};
enum class SymbolVisibility : int { Visible = 0, Hidden = 1 };
struct UnitSymbolPosition {
double x = 0.0;
double y = 0.0;
double z = 0.0;
struct UnitSymbolPosition
{
double x = 0.0;
double y = 0.0;
double z = 0.0;
};
// AesType - Arten von Area Effect Simulation Entities
enum class AesType : int {
AtBCContamination = 0,
AtNContamination = 1,
AtDangerArea = 2,
AtMineArea = 3,
AtMineCorridor = 4,
AtExplosionSingle = 5,
AtExplosionArea = 6,
AtFunctionalArea = 7,
AtBorderline = 8,
AtMineAreaSingleMines = 9,
AtDusSingleMine = 10,
AtGasPipe = 11,
AtTechnicalArea = 12,
AtAirSupportImpact = 13,
AtUnknown = 99
AtBCContamination = 0,
AtNContamination = 1,
AtDangerArea = 2,
AtMineArea = 3,
AtMineCorridor = 4,
AtExplosionSingle = 5,
AtExplosionArea = 6,
AtFunctionalArea = 7,
AtBorderline = 8,
AtMineAreaSingleMines = 9,
AtDusSingleMine = 10,
AtGasPipe = 11,
AtTechnicalArea = 12,
AtAirSupportImpact = 13,
AtUnknown = 99
};
// AesEffectState_def - Status eines AES Effekts (mit _def Suffix wie DDS generiert)
enum class AesEffectState_def : int {
EsCreated = 0,
EsPrepared = 1,
EsFired = 2,
EsActivated = 3,
EsPaused = 4,
EsExpired = 5,
EsRemoved = 6,
EsReceived = 7,
EsUnknown = 99,
EsError = 100
EsCreated = 0,
EsPrepared = 1,
EsFired = 2,
EsActivated = 3,
EsPaused = 4,
EsExpired = 5,
EsRemoved = 6,
EsReceived = 7,
EsUnknown = 99,
EsError = 100
};
// AesEffectState - Alias für AesEffectState_def (Backward Compatibility)
using AesEffectState = AesEffectState_def;
// EffectStateStruct - Filter-Struktur für Effect States
struct EffectStateStruct {
bool showCreated = true;
bool showPrepared = true;
bool showActive = true;
bool showInactive = false;
bool showExpired = false;
struct EffectStateStruct
{
bool showCreated = true;
bool showPrepared = true;
bool showActive = true;
bool showInactive = false;
bool showExpired = false;
};
} // namespace AreaEffectSimulation
@@ -1,4 +1,5 @@
#pragma once
// STUB-HEADER: Diese Datei wird normalerweise von ddsdtc generiert
// Für die Migration erstellen wir minimale Forward-Declarations
@@ -6,7 +7,7 @@ namespace InfrastructureManagement
{
namespace Interface
{
class Dtc;
class Ftc;
}
}
class Dtc;
class Ftc;
} // namespace Interface
} // namespace InfrastructureManagement
@@ -1,4 +1,5 @@
#pragma once
// STUB-HEADER: Diese Datei wird normalerweise von ddsdtc generiert
// Für die Migration erstellen wir minimale Forward-Declarations
@@ -6,7 +7,7 @@ namespace SituationReplay
{
namespace Interface
{
class Dtc;
class Ftc;
}
}
class Dtc;
class Ftc;
} // namespace Interface
} // namespace SituationReplay
@@ -1,24 +1,19 @@
#pragma once
// STUB-HEADER: Diese Datei wird normalerweise von ddsdtc generiert
// Für die Migration erstellen wir minimale Typ-Definitionen
namespace SituationReplay
{
// Placeholder enums - werden durch echte DDS-Typen ersetzt
enum class SymbolAppearance : int {
Solid = 0,
Dashed = 1,
Dotted = 2
};
enum class SymbolAppearance : int { Solid = 0, Dashed = 1, Dotted = 2 };
enum class SymbolVisibility : int {
Visible = 0,
Hidden = 1
};
enum class SymbolVisibility : int { Visible = 0, Hidden = 1 };
struct UnitSymbolPosition {
double x = 0.0;
double y = 0.0;
double z = 0.0;
struct UnitSymbolPosition
{
double x = 0.0;
double y = 0.0;
double z = 0.0;
};
}
} // namespace SituationReplay
@@ -1,4 +1,5 @@
#pragma once
// STUB-HEADER: Diese Datei wird normalerweise von ddsdtc generiert
// Für die Migration erstellen wir minimale Forward-Declarations
@@ -6,7 +7,7 @@ namespace SituationReplayManagement
{
namespace Interface
{
class Dtc;
class Ftc;
}
}
class Dtc;
class Ftc;
} // namespace Interface
} // namespace SituationReplayManagement
@@ -1,4 +1,5 @@
#pragma once
// STUB-HEADER: Diese Datei wird normalerweise von ddsdtc generiert
// Für die Migration erstellen wir minimale Forward-Declarations
@@ -6,7 +7,7 @@ namespace Skeleton
{
namespace Interface
{
class Dtc;
class Ftc;
}
}
class Dtc;
class Ftc;
} // namespace Interface
} // namespace Skeleton
@@ -1,4 +1,5 @@
#pragma once
// STUB-HEADER: Diese Datei wird normalerweise von ddsdtc generiert
// Für die Migration erstellen wir minimale Forward-Declarations
@@ -6,7 +7,7 @@ namespace SoundManagement
{
namespace Interface
{
class Dtc;
class Ftc;
}
}
class Dtc;
class Ftc;
} // namespace Interface
} // namespace SoundManagement
@@ -1,4 +1,5 @@
#pragma once
// STUB-HEADER: Diese Datei wird normalerweise von ddsdtc generiert
// Für die Migration erstellen wir minimale Forward-Declarations
@@ -6,7 +7,7 @@ namespace TargetManagement
{
namespace Interface
{
class Dtc;
class Ftc;
}
}
class Dtc;
class Ftc;
} // namespace Interface
} // namespace TargetManagement
@@ -1,4 +1,5 @@
#pragma once
// STUB-HEADER: Diese Datei wird normalerweise von ddsdtc generiert
// Für die Migration erstellen wir minimale Forward-Declarations
@@ -6,7 +7,7 @@ namespace TrainingAreaBase
{
namespace Interface
{
class Dtc;
class Ftc;
}
}
class Dtc;
class Ftc;
} // namespace Interface
} // namespace TrainingAreaBase
@@ -1,4 +1,5 @@
#pragma once
// STUB-HEADER: Diese Datei wird normalerweise von ddsdtc generiert
// Für die Migration erstellen wir minimale Forward-Declarations
@@ -6,7 +7,7 @@ namespace TrainingAreaBaseOC
{
namespace Interface
{
class Dtc;
class Ftc;
}
}
class Dtc;
class Ftc;
} // namespace Interface
} // namespace TrainingAreaBaseOC
@@ -1,4 +1,5 @@
#pragma once
// STUB-HEADER: Diese Datei wird normalerweise von ddsdtc generiert
// Für die Migration erstellen wir minimale Forward-Declarations
@@ -6,7 +7,7 @@ namespace WarehouseGuez
{
namespace Interface
{
class Dtc;
class Ftc;
}
}
class Dtc;
class Ftc;
} // namespace Interface
} // namespace WarehouseGuez