- training_area_telegrams.cpp: Fixed QJsonObject initializer syntax (Qt6 requires {{}} not ({}))
- training_area_telegrams.cpp: Fixed fromJson() methods to access m_* members directly
- training_area_telegrams.cpp: Fixed brace mismatches in multiple toJson() methods
- training_area_telegrams.h: Changed Header struct to public members for consistency
- tx_mixin.cpp: Fixed getEquipmentNumber() template for direct member access
- lts_coordinate.cpp: Added missing #include <iomanip>
- MIGRATION_STATUS.md: Added migration progress tracking document
C++17 constraint enforced due to RTI Connext DDS 7.7.0 incompatibility with C++20+
Build status: BUILD_RTI=OFF successful (0 errors, warnings only)
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
77 lines
1.8 KiB
C++
Executable File
77 lines
1.8 KiB
C++
Executable File
/**
|
|
* @RDE_HEADER@
|
|
* StreamNameMappingPublisher
|
|
* $Id$
|
|
* $HeadURL$
|
|
* $Author$
|
|
* Created by Christian Fröbel, NLSE, 2018-03-13
|
|
*/
|
|
|
|
#pragma once
|
|
|
|
#include <QtCore/QMap>
|
|
#include <QtCore/QObject>
|
|
#include <AudioVideoManagement/avm.hpp>
|
|
|
|
class QString;
|
|
|
|
namespace InfrastructureManagement
|
|
{
|
|
|
|
class MainStructureElement;
|
|
class StructureElement;
|
|
|
|
namespace Interface
|
|
{
|
|
class Dtc;
|
|
}
|
|
|
|
} // namespace InfrastructureManagement
|
|
|
|
|
|
enum class DataModification;
|
|
|
|
|
|
namespace AudioVideoManagement
|
|
{
|
|
|
|
namespace Interface
|
|
{
|
|
class Dts;
|
|
}
|
|
|
|
/**
|
|
* This class is responsible to publish the StreamNameMapping.
|
|
*
|
|
* We subscribe to ISM StructureElements and for each MountingPoint of type
|
|
* Outdoor-/IndoorCamera or AnnouncementUnit we publish the associated
|
|
* internalName and displayName.
|
|
*
|
|
* The internalName is the stream name used in the device_config.
|
|
* The displayName is what shall be show in the GUI.
|
|
*
|
|
* @author Christian Fröbel
|
|
*/
|
|
class StreamNameMappingPublisher : public QObject
|
|
{
|
|
public:
|
|
StreamNameMappingPublisher(InfrastructureManagement::Interface::Dtc *ismDtc, Interface::Dts *dts);
|
|
virtual ~StreamNameMappingPublisher() = default;
|
|
|
|
private slots:
|
|
void onMainStructureElementChanged(const InfrastructureManagement::MainStructureElement &mse, DataModification modType);
|
|
|
|
private:
|
|
void onMseChanged(const InfrastructureManagement::MainStructureElement &mse);
|
|
void onMseRemoved(const InfrastructureManagement::MainStructureElement &mse);
|
|
|
|
void publish(const InfrastructureManagement::StructureElement &mountingPoint);
|
|
void remove(const InfrastructureManagement::StructureElement &mountingPoint);
|
|
|
|
InfrastructureManagement::Interface::Dtc *m_ismDtc;
|
|
Interface::Dts *m_dts;
|
|
QMap<int, StreamName> m_streamNames;
|
|
};
|
|
|
|
} // namespace AudioVideoManagement
|