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:
848 files changed
+89305
-100020
No files matched your search
@@ -5,9 +5,9 @@
|
||||
// DDS-generierte Typen werden im Build-Prozess extern erzeugt
|
||||
// Dieser Stub ermöglicht die Migration und den Build ohne DDS-Generator
|
||||
|
||||
#include <QString>
|
||||
#include <QMap>
|
||||
#include <QSet>
|
||||
#include <QString>
|
||||
|
||||
namespace AreaEffectSimulation
|
||||
{
|
||||
@@ -16,39 +16,29 @@ namespace AreaEffectSimulation
|
||||
class SymbolAppearance;
|
||||
|
||||
// Enum für Symbol Visibility (aus DDS-generiertem Code)
|
||||
enum class SymbolVisibility
|
||||
{
|
||||
Standard = 0,
|
||||
Faded = 1,
|
||||
Hidden = 2,
|
||||
AdditionalSymbol = 3
|
||||
};
|
||||
enum class SymbolVisibility { Standard = 0, Faded = 1, Hidden = 2, AdditionalSymbol = 3 };
|
||||
|
||||
// Enum für Unit Symbol Position (aus DDS-generiertem Code)
|
||||
enum class UnitSymbolPosition
|
||||
{
|
||||
Center,
|
||||
Leader
|
||||
};
|
||||
enum class UnitSymbolPosition { Center, Leader };
|
||||
|
||||
// Minimaler Stub für SymbolAppearance DDS-Type
|
||||
// Vollständige Definition wird im Build-Prozess durch DDS generiert
|
||||
class SymbolAppearance
|
||||
{
|
||||
public:
|
||||
// Standard-Konstruktor
|
||||
SymbolAppearance() = default;
|
||||
~SymbolAppearance() = default;
|
||||
public:
|
||||
// Standard-Konstruktor
|
||||
SymbolAppearance() = default;
|
||||
~SymbolAppearance() = default;
|
||||
|
||||
// Copy-Konstruktor und Assignment
|
||||
SymbolAppearance(const SymbolAppearance &) = default;
|
||||
SymbolAppearance &operator=(const SymbolAppearance &) = default;
|
||||
SymbolAppearance(SymbolAppearance &&) = default;
|
||||
SymbolAppearance &operator=(SymbolAppearance &&) = default;
|
||||
// Copy-Konstruktor und Assignment
|
||||
SymbolAppearance(const SymbolAppearance&) = default;
|
||||
SymbolAppearance& operator=(const SymbolAppearance&) = default;
|
||||
SymbolAppearance(SymbolAppearance&&) = default;
|
||||
SymbolAppearance& operator=(SymbolAppearance&&) = default;
|
||||
|
||||
// Placeholder-Properties (werden durch DDS-Typ ersetzt)
|
||||
// Diese Properties werden im echten DDS-Typ definiert
|
||||
QString id; // Placeholder für DDS key
|
||||
// Placeholder-Properties (werden durch DDS-Typ ersetzt)
|
||||
// Diese Properties werden im echten DDS-Typ definiert
|
||||
QString id; // Placeholder für DDS key
|
||||
};
|
||||
|
||||
} // namespace AreaEffectSimulation
|
||||
|
||||
+27
-28
@@ -6,11 +6,12 @@
|
||||
#ifndef ISM_ENUMS_HPP
|
||||
#define ISM_ENUMS_HPP
|
||||
|
||||
#include <cstdint>
|
||||
#include <QString>
|
||||
#include <QDebug>
|
||||
#include <QString>
|
||||
#include <cstdint>
|
||||
|
||||
namespace InfrastructureManagement {
|
||||
namespace InfrastructureManagement
|
||||
{
|
||||
|
||||
// MountingPointType als enum class mit allen Werten
|
||||
enum class MountingPointType : int32_t {
|
||||
@@ -31,24 +32,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;
|
||||
@@ -67,9 +60,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;
|
||||
@@ -77,9 +71,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;
|
||||
@@ -88,27 +83,31 @@ struct AimState_def {
|
||||
} // namespace InfrastructureManagement
|
||||
|
||||
// QDebug operator<< für MountingPointType
|
||||
inline QDebug operator<<(QDebug debug, InfrastructureManagement::MountingPointType type) {
|
||||
inline QDebug operator<<(QDebug debug, InfrastructureManagement::MountingPointType type)
|
||||
{
|
||||
QDebugStateSaver saver(debug);
|
||||
debug.nospace() << "MountingPointType(" << static_cast<int32_t>(type) << ")";
|
||||
return debug;
|
||||
}
|
||||
|
||||
// QDebug operator<< für MountingPointState
|
||||
inline QDebug operator<<(QDebug debug, InfrastructureManagement::MountingPointState state) {
|
||||
inline QDebug operator<<(QDebug debug, InfrastructureManagement::MountingPointState state)
|
||||
{
|
||||
QDebugStateSaver saver(debug);
|
||||
debug.nospace() << "MountingPointState(" << static_cast<int32_t>(state) << ")";
|
||||
return debug;
|
||||
}
|
||||
|
||||
// qHash für MountingPointType (für QMap/QHash)
|
||||
namespace dds {
|
||||
namespace core {
|
||||
static inline uint qHash(const InfrastructureManagement::MountingPointType &mpt)
|
||||
namespace dds
|
||||
{
|
||||
return ::qHash(static_cast<int32_t>(mpt));
|
||||
namespace core
|
||||
{
|
||||
static inline uint qHash(const InfrastructureManagement::MountingPointType& mpt)
|
||||
{
|
||||
return ::qHash(static_cast<int32_t>(mpt));
|
||||
}
|
||||
}
|
||||
}
|
||||
} // namespace core
|
||||
} // namespace dds
|
||||
|
||||
#endif // ISM_ENUMS_HPP
|
||||
Reference in new issue
Block a user