Files
qt-migration-legatus/qt6-after/qt6-migrated-legatus/Lts/Viewer/SituationMap/Map/situation_map_utils.h
T
torstenandCopilot 7a6be7474e Qt6 migration: Fix BUILD_RTI=OFF build errors in TrainingAreaBase
- 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>
2026-08-23 20:49:23 +02:00

155 lines
6.2 KiB
C++
Executable File

/**
* @RDE_HEADER@
* Utilities for SituationMap
* $Id$
* $HeadURL$
* $Author$
*/
#pragma once
// Own
#include "situation_map_types.h"
// arcgis
#include <arcgis/SceneViewTypes.h> // SurfacePlacement
#include <arcgis/Error.h>
// Qt
#include <QtCore/QPointF>
#include <QtCore/QSize>
#include <QtCore/QRectF>
#include <iosfwd>
// Forward:
namespace Esri
{
namespace ArcGISRuntime
{
enum class GraphicsRenderingMode;
enum class ElevationSourceType;
enum class LayerType;
enum class LicenseStatus;
enum class LoadStatus;
enum class NetworkCachePolicy;
enum class SceneLocationVisibility;
enum class ViewpointType;
enum class GeometryType;
class Viewpoint;
class Camera;
}
}
//----------------------------------------------------------------------------
SITUATIONMAP_EXPORT std::ostream &operator<< (std::ostream &stream,
const SituationMap::PositionCont &value);
SITUATIONMAP_EXPORT std::ostream &operator<< (std::ostream &stream,
const QColor &value);
namespace SituationMap
{
SITUATIONMAP_EXPORT std::ostream &operator<< (std::ostream &stream,
const SituationMap::DrawStatus value);
SITUATIONMAP_EXPORT std::ostream &operator<< (std::ostream &stream,
const SituationMap::GridType value);
SITUATIONMAP_EXPORT std::ostream &operator<< (std::ostream &stream,
const SituationMap::LayerType value);
SITUATIONMAP_EXPORT std::ostream &operator<< (std::ostream &stream,
const SituationMap::BasemapType value);
SITUATIONMAP_EXPORT std::ostream &operator<< (std::ostream &stream,
const SituationMap::RenderingMode value);
SITUATIONMAP_EXPORT std::ostream &operator<< (std::ostream &stream,
const SituationMap::SurfacePlacement value);
SITUATIONMAP_EXPORT std::ostream &operator<< (std::ostream &stream,
const SituationMap::EsriNetworkCacheSettings value);
}
SITUATIONMAP_EXPORT QString toString(const QRectF &value);
SITUATIONMAP_EXPORT QString toString(const QColor &value);
namespace SituationMap
{
SITUATIONMAP_EXPORT QString toString(SituationMap::DrawStatus value);
SITUATIONMAP_EXPORT QString toString(SituationMap::GridType value);
SITUATIONMAP_EXPORT bool fromString(SituationMap::GridType &gridType, const QString &str);
SITUATIONMAP_EXPORT QString toString(SituationMap::LayerType value);
SITUATIONMAP_EXPORT QString toString(SituationMap::BasemapType value);
SITUATIONMAP_EXPORT QString toString(SituationMap::RenderingMode value);
SITUATIONMAP_EXPORT bool fromString(SituationMap::RenderingMode &renderingMode, const QString &str);
SITUATIONMAP_EXPORT QString toString(SituationMap::SurfacePlacement value);
SITUATIONMAP_EXPORT bool fromString(SituationMap::SurfacePlacement &surfacePlacement, const QString &str);
SITUATIONMAP_EXPORT QString toDisplayString(SituationMap::BasemapType value);
}
namespace Esri
{
namespace ArcGISRuntime
{
SITUATIONMAP_EXPORT QString toString(const Esri::ArcGISRuntime::Error &value);
SITUATIONMAP_EXPORT QString toString(const Esri::ArcGISRuntime::ElevationSourceType value);
SITUATIONMAP_EXPORT QString toString(const Esri::ArcGISRuntime::GraphicsRenderingMode value);
SITUATIONMAP_EXPORT QString toString(const Esri::ArcGISRuntime::GeometryType value);
SITUATIONMAP_EXPORT QString toString(const Esri::ArcGISRuntime::LayerType value);
SITUATIONMAP_EXPORT QString toString(const Esri::ArcGISRuntime::LicenseStatus value);
SITUATIONMAP_EXPORT QString toString(const Esri::ArcGISRuntime::LoadStatus value);
#if ACRGIS_VERSION >= 0x640700 // 100.8.0 / Update 8
SITUATIONMAP_EXPORT QString toString(const Esri::ArcGISRuntime::NetworkCachePolicy value);
#endif // ACRGIS_VERSION
SITUATIONMAP_EXPORT QString toString(const Esri::ArcGISRuntime::SceneLocationVisibility value);
SITUATIONMAP_EXPORT QString toString(const Esri::ArcGISRuntime::SurfacePlacement value);
SITUATIONMAP_EXPORT QString toString(const Esri::ArcGISRuntime::ViewpointType value);
SITUATIONMAP_EXPORT std::ostream &operator<< (std::ostream &stream,
const Esri::ArcGISRuntime::Error &value);
SITUATIONMAP_EXPORT std::ostream &operator<< (std::ostream &stream,
const Esri::ArcGISRuntime::ElevationSourceType value);
SITUATIONMAP_EXPORT std::ostream &operator<< (std::ostream &stream,
const Esri::ArcGISRuntime::GraphicsRenderingMode value);
SITUATIONMAP_EXPORT std::ostream &operator<< (std::ostream &stream,
const Esri::ArcGISRuntime::GeometryType value);
SITUATIONMAP_EXPORT std::ostream &operator<< (std::ostream &stream,
const Esri::ArcGISRuntime::LayerType value);
SITUATIONMAP_EXPORT std::ostream &operator<< (std::ostream &stream,
const Esri::ArcGISRuntime::LicenseStatus value);
SITUATIONMAP_EXPORT std::ostream &operator<< (std::ostream &stream,
const Esri::ArcGISRuntime::LoadStatus value);
SITUATIONMAP_EXPORT std::ostream &operator<< (std::ostream &stream,
const Esri::ArcGISRuntime::NetworkCachePolicy value);
SITUATIONMAP_EXPORT std::ostream &operator<< (std::ostream &stream,
const Esri::ArcGISRuntime::SceneLocationVisibility value);
SITUATIONMAP_EXPORT std::ostream &operator<< (std::ostream &stream,
const Esri::ArcGISRuntime::SurfacePlacement value);
SITUATIONMAP_EXPORT std::ostream &operator<< (std::ostream &stream,
const Esri::ArcGISRuntime::ViewpointType value);
SITUATIONMAP_EXPORT std::ostream &operator<< (std::ostream &stream,
const Esri::ArcGISRuntime::Viewpoint &value);
SITUATIONMAP_EXPORT std::ostream &operator<< (std::ostream &stream,
const Esri::ArcGISRuntime::Camera &value);
}
}