33 lines
946 B
C++
33 lines
946 B
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 "exmcommon_export.h"
|
|
#include "exm_enums.hpp"
|
|
|
|
namespace ExerciseManagement
|
|
{
|
|
|
|
// STUB: Exercise - wird durch echten DDS-Typ ersetzt
|
|
struct EXMCOMMON_EXPORT Exercise
|
|
{
|
|
int id = 0;
|
|
QString m_name;
|
|
int phase = 0; // Exercise phase ID
|
|
SymbolAppearance symbolAppearance = SymbolAppearance::Solid;
|
|
SymbolVisibility symbolVisibility = SymbolVisibility::Visible;
|
|
|
|
[[nodiscard]] std::string name() const { return m_name.toStdString(); }
|
|
// Weitere Felder werden bei Bedarf ergänzt
|
|
};
|
|
|
|
// Stream operator for logging
|
|
inline std::ostream& operator<<(std::ostream& os, const Exercise& ex) {
|
|
os << "Exercise(id=" << ex.id << ", name=" << ex.m_name.toStdString() << ")";
|
|
return os;
|
|
}
|
|
|
|
} // namespace ExerciseManagement
|