72 lines
2.3 KiB
C++
72 lines
2.3 KiB
C++
#pragma once
|
|
|
|
// STUB-HEADER: Diese Datei wird normalerweise von ddsdtc generiert
|
|
// Für die Migration erstellen wir minimale Typ-Definitionen
|
|
|
|
#include <QtCore/QString>
|
|
#include <ostream>
|
|
#include "gna_export.h"
|
|
|
|
namespace GuezNasat
|
|
{
|
|
|
|
// STUB: NasatAircraft - wird durch echten DDS-Typ ersetzt
|
|
struct NasatAircraft
|
|
{
|
|
int idValue = 0;
|
|
QString nameValue;
|
|
int exerciseIdValue = 0;
|
|
int nasatIdValue = 0;
|
|
bool simulationActiveValue = false;
|
|
|
|
// Getter-Methoden für Kompatibilität
|
|
int id() const { return idValue; }
|
|
QString name() const { return nameValue; }
|
|
int exerciseId() const { return exerciseIdValue; }
|
|
int nasatId() const { return nasatIdValue; }
|
|
bool simulationActive() const { return simulationActiveValue; }
|
|
|
|
// Stream operator für Logger
|
|
friend std::ostream& operator<<(std::ostream& os, const NasatAircraft& aircraft);
|
|
};
|
|
|
|
// STUB: NasatAircraftParticipant - wird durch echten DDS-Typ ersetzt
|
|
struct NasatAircraftParticipant
|
|
{
|
|
int idValue = 0;
|
|
int nasatAircraftIdValue = 0;
|
|
int exerciseIdValue = 0;
|
|
int participantIdValue = 0;
|
|
|
|
// Getter-Methoden für Kompatibilität
|
|
int id() const { return idValue; }
|
|
int nasatAircraftId() const { return nasatAircraftIdValue; }
|
|
int exerciseId() const { return exerciseIdValue; }
|
|
int participantId() const { return participantIdValue; }
|
|
|
|
// Stream operator für Logger
|
|
friend std::ostream& operator<<(std::ostream& os, const NasatAircraftParticipant& participant);
|
|
};
|
|
|
|
} // namespace GuezNasat
|
|
|
|
// Stream-Operator Implementierung
|
|
namespace GuezNasat
|
|
{
|
|
inline std::ostream& operator<<(std::ostream& os, const NasatAircraft& aircraft)
|
|
{
|
|
os << "NasatAircraft{id=" << aircraft.id() << ", name=" << aircraft.name().toStdString()
|
|
<< ", exerciseId=" << aircraft.exerciseId() << ", nasatId=" << aircraft.nasatId()
|
|
<< ", simulationActive=" << aircraft.simulationActive() << "}";
|
|
return os;
|
|
}
|
|
|
|
inline std::ostream& operator<<(std::ostream& os, const NasatAircraftParticipant& participant)
|
|
{
|
|
os << "NasatAircraftParticipant{id=" << participant.id()
|
|
<< ", nasatAircraftId=" << participant.nasatAircraftId()
|
|
<< ", exerciseId=" << participant.exerciseId()
|
|
<< ", participantId=" << participant.participantId() << "}";
|
|
return os;
|
|
}
|
|
} // namespace GuezNasat
|