Removes FilterManagement stub headers superseded by codegen
This commit is contained in:
1 parent
5d6807f256
commit
9d1419a5b1
5 files changed
-410
No files matched your search
@@ -1,72 +0,0 @@
|
||||
/**
|
||||
* DDS Stub Implementation for FilterManagement DTS/FTS
|
||||
*
|
||||
* This is a minimal stub implementation to enable building without
|
||||
* the actual DDS-generated code.
|
||||
*/
|
||||
|
||||
#include "flt_dts.h"
|
||||
#include "flt_fts.h"
|
||||
#include <Core/core_types.h>
|
||||
|
||||
namespace FilterManagement
|
||||
{
|
||||
namespace Interface
|
||||
{
|
||||
|
||||
// Dts Stub Implementation
|
||||
class DtsImpl : public Dts
|
||||
{
|
||||
public:
|
||||
explicit DtsImpl(const std::shared_ptr<DDSConnector::DdsConnector> & /*connector*/)
|
||||
{}
|
||||
|
||||
bool enableAll() override
|
||||
{
|
||||
// Stub - always succeeds
|
||||
return true;
|
||||
}
|
||||
|
||||
void publish(const AesFilter & /*filter*/) override
|
||||
{
|
||||
// Stub - no-op
|
||||
}
|
||||
|
||||
void removeAesFilterByKey(int /*key*/) override
|
||||
{
|
||||
// Stub - no-op
|
||||
}
|
||||
};
|
||||
|
||||
std::shared_ptr<Dts> Dts::create(const std::shared_ptr<DDSConnector::DdsConnector> &connector)
|
||||
{
|
||||
return std::make_shared<DtsImpl>(connector);
|
||||
}
|
||||
|
||||
// Fts Stub Implementation
|
||||
class FtsImpl : public Fts
|
||||
{
|
||||
public:
|
||||
explicit FtsImpl(const std::shared_ptr<DDSConnector::DdsConnector> & /*connector*/)
|
||||
{}
|
||||
|
||||
bool enableAll() override
|
||||
{
|
||||
// Stub - always succeeds
|
||||
return true;
|
||||
}
|
||||
|
||||
void aesFilterUpdateReply(const rti::core::SampleIdentity & /*cookie*/,
|
||||
const Core::FunctionReplyObject & /*reply*/) override
|
||||
{
|
||||
// Stub - no-op
|
||||
}
|
||||
};
|
||||
|
||||
std::shared_ptr<Fts> Fts::create(const std::shared_ptr<DDSConnector::DdsConnector> &connector)
|
||||
{
|
||||
return std::make_shared<FtsImpl>(connector);
|
||||
}
|
||||
|
||||
} // namespace Interface
|
||||
} // namespace FilterManagement
|
||||
@@ -1,67 +0,0 @@
|
||||
/**
|
||||
* DDS Stub Header for FilterManagement DTS (Data Transfer Service)
|
||||
*
|
||||
* This is a minimal stub header to enable building without the actual
|
||||
* DDS-generated headers. The real flt_dts.h would be generated by RTI DDS
|
||||
* from IDL definitions.
|
||||
*/
|
||||
|
||||
#pragma once
|
||||
|
||||
#include <memory>
|
||||
#include <QtCore/QString>
|
||||
#include <QtCore/QDateTime>
|
||||
#if BUILD_RTI
|
||||
#include <rti/core/SampleIdentity.hpp>
|
||||
#include <DDS/DDSConnector/dds_connector.h>
|
||||
#endif
|
||||
|
||||
namespace FilterManagement
|
||||
{
|
||||
|
||||
// Forward declaration
|
||||
class AesFilter;
|
||||
|
||||
namespace Interface
|
||||
{
|
||||
|
||||
/**
|
||||
* @brief Dts - DDS Data Transfer Service interface for FilterManagement
|
||||
*
|
||||
* Stub implementation - real type would be DDS-generated
|
||||
*/
|
||||
class Dts
|
||||
{
|
||||
public:
|
||||
static std::shared_ptr<Dts> create(const std::shared_ptr<DDSConnector::DdsConnector> &connector);
|
||||
|
||||
virtual ~Dts() = default;
|
||||
|
||||
virtual bool enableAll() = 0;
|
||||
|
||||
// AesFilter operations
|
||||
virtual void publish(const AesFilter &filter) = 0;
|
||||
virtual void removeAesFilterByKey(int key) = 0;
|
||||
};
|
||||
|
||||
/**
|
||||
* @brief Fts - DDS Filter Tasking Service interface for FilterManagement
|
||||
*
|
||||
* Stub implementation - real type would be DDS-generated
|
||||
*/
|
||||
class Fts
|
||||
{
|
||||
public:
|
||||
static std::shared_ptr<Fts> create(const std::shared_ptr<DDSConnector::DdsConnector> &connector);
|
||||
|
||||
virtual ~Fts() = default;
|
||||
|
||||
virtual bool enableAll() = 0;
|
||||
|
||||
// AesFilter operations
|
||||
virtual void aesFilterUpdateReply(const rti::core::SampleIdentity &cookie,
|
||||
const Core::FunctionReplyObject &reply) = 0;
|
||||
};
|
||||
|
||||
} // namespace Interface
|
||||
} // namespace FilterManagement
|
||||
@@ -1,159 +0,0 @@
|
||||
/**
|
||||
* @file flt_ftc.h
|
||||
* @brief DDS-generated Stub-Header für FilterManagement FTC (Filter Topic Client)
|
||||
*
|
||||
* Dieser Header ist ein Stub für den von RTI DDS Generator erzeugten Header.
|
||||
* Ermöglicht Build ohne echte DDS-Codegenerierung.
|
||||
*/
|
||||
|
||||
#pragma once
|
||||
|
||||
#include <memory>
|
||||
#include <QtCore/QString>
|
||||
#include <QtCore/QMap>
|
||||
#include <QtCore/QJsonObject>
|
||||
#include <Core/core_types.h>
|
||||
#include <Core/core_enums.hpp>
|
||||
#include <AreaEffectSimulation/aes.hpp>
|
||||
|
||||
namespace rti {
|
||||
namespace core {
|
||||
class SampleIdentity;
|
||||
}
|
||||
}
|
||||
|
||||
namespace FilterManagement {
|
||||
|
||||
// Forward declarations
|
||||
class AesFilter
|
||||
{
|
||||
public:
|
||||
AesFilter() = default;
|
||||
~AesFilter() = default;
|
||||
|
||||
// Placeholder members for AesFilter functionality
|
||||
QString getName() const { return m_name; }
|
||||
void setName(const QString &name) { m_name = name; }
|
||||
|
||||
bool isActive() const { return m_active; }
|
||||
void setActive(bool active) { m_active = active; }
|
||||
|
||||
private:
|
||||
QString m_name;
|
||||
bool m_active = false;
|
||||
};
|
||||
|
||||
/**
|
||||
* @brief SymbolAppearance - DDS-Stub für Symbol Appearance Filter
|
||||
*/
|
||||
class SymbolAppearance
|
||||
{
|
||||
public:
|
||||
SymbolAppearance() = default;
|
||||
~SymbolAppearance() = default;
|
||||
|
||||
// Placeholder members for SymbolAppearance functionality
|
||||
QString getName() const { return m_name; }
|
||||
void setName(const QString &name) { m_name = name; }
|
||||
|
||||
// Content getter/setter (wird von symbol_appearance_settings_impl.cpp verwendet)
|
||||
QString content() const { return m_content; }
|
||||
void setContent(const QString &c) { m_content = c; }
|
||||
|
||||
private:
|
||||
QString m_name;
|
||||
QString m_content;
|
||||
};
|
||||
|
||||
/**
|
||||
* @brief BuildingComponentFilter - DDS-Stub für Building Component Filter
|
||||
*
|
||||
* Minimaler Stub der die im Code verwendeten Methoden bereitstellt.
|
||||
*/
|
||||
class BuildingComponentFilter
|
||||
{
|
||||
public:
|
||||
BuildingComponentFilter() = default;
|
||||
BuildingComponentFilter(const BuildingComponentFilter &) = default;
|
||||
BuildingComponentFilter &operator=(const BuildingComponentFilter &) = default;
|
||||
~BuildingComponentFilter() = default;
|
||||
|
||||
const std::string& content() const { return m_content; }
|
||||
void content(const std::string &c) { m_content = c; }
|
||||
|
||||
private:
|
||||
std::string m_content;
|
||||
};
|
||||
|
||||
namespace Interface {
|
||||
|
||||
/**
|
||||
* @brief FTC (Filter Topic Client) Interface
|
||||
*
|
||||
* DDS-generierte Klasse für Filter-Client-Operationen.
|
||||
* Diese Stub-Implementation ermöglicht Build ohne DDS.
|
||||
*/
|
||||
class Ftc
|
||||
{
|
||||
public:
|
||||
virtual ~Ftc() = default;
|
||||
|
||||
/**
|
||||
* @brief Factory-Methode zur Erstellung einer Ftc-Instanz
|
||||
* @param connector DDS-Connector (wird im Stub ignoriert)
|
||||
* @return Shared Pointer zur Ftc-Instanz (nullptr im Stub)
|
||||
*/
|
||||
static std::shared_ptr<Ftc> create(void* /*connector*/)
|
||||
{
|
||||
return nullptr; // Stub returns nullptr - actual implementation requires DDS
|
||||
}
|
||||
|
||||
// Reply-Handler Methoden (DDS Request/Reply Pattern)
|
||||
virtual void aesFilterUpdateReply(const rti::core::SampleIdentity& cookie,
|
||||
const Core::FunctionReplyObject& ret) = 0;
|
||||
|
||||
virtual void symbolAppearanceUpdateReply(const rti::core::SampleIdentity& cookie,
|
||||
const Core::FunctionReplyObject& ret) = 0;
|
||||
|
||||
virtual void buildingComponentFilterUpdateReply(const rti::core::SampleIdentity& cookie,
|
||||
const Core::FunctionReplyObject& ret) = 0;
|
||||
|
||||
// Weitere FTC-Methoden nach Bedarf
|
||||
virtual void enableAll() = 0;
|
||||
};
|
||||
|
||||
/**
|
||||
* @brief AesFilterUpdateReplyHandler - Callback Interface für AesFilter Updates
|
||||
*/
|
||||
class AesFilterUpdateReplyHandler
|
||||
{
|
||||
public:
|
||||
virtual ~AesFilterUpdateReplyHandler() = default;
|
||||
virtual void aesFilterUpdateReply(const rti::core::SampleIdentity& cookie,
|
||||
const Core::FunctionReplyObject& ret) = 0;
|
||||
};
|
||||
|
||||
/**
|
||||
* @brief SymbolAppearanceUpdateReplyHandler - Callback Interface für SymbolAppearance Updates
|
||||
*/
|
||||
class SymbolAppearanceUpdateReplyHandler
|
||||
{
|
||||
public:
|
||||
virtual ~SymbolAppearanceUpdateReplyHandler() = default;
|
||||
virtual void symbolAppearanceUpdateReply(const rti::core::SampleIdentity& cookie,
|
||||
const Core::FunctionReplyObject& ret) = 0;
|
||||
};
|
||||
|
||||
/**
|
||||
* @brief BuildingComponentFilterUpdateReplyHandler - Callback Interface für BuildingComponentFilter Updates
|
||||
*/
|
||||
class BuildingComponentFilterUpdateReplyHandler
|
||||
{
|
||||
public:
|
||||
virtual ~BuildingComponentFilterUpdateReplyHandler() = default;
|
||||
virtual void buildingComponentFilterUpdateReply(const rti::core::SampleIdentity& cookie,
|
||||
const Core::FunctionReplyObject& ret) = 0;
|
||||
};
|
||||
|
||||
} // namespace Interface
|
||||
} // namespace FilterManagement
|
||||
@@ -1,86 +0,0 @@
|
||||
/**
|
||||
* DDS Stub Header for FilterManagement FTS (Filter Tasking Service)
|
||||
*
|
||||
* This is a minimal stub header to enable building without the actual
|
||||
* DDS-generated headers. The real flt_fts.h would be generated by RTI DDS
|
||||
* from IDL definitions.
|
||||
*/
|
||||
|
||||
#pragma once
|
||||
|
||||
#include <QtCore/QString>
|
||||
#include <QtCore/QDateTime>
|
||||
#if BUILD_RTI
|
||||
#include <rti/core/SampleIdentity.hpp>
|
||||
#endif
|
||||
|
||||
namespace FilterManagement
|
||||
{
|
||||
|
||||
/**
|
||||
* @brief AesFilter - DDS type for AES filter data
|
||||
*
|
||||
* Stub implementation - real type would be DDS-generated
|
||||
*/
|
||||
class AesFilter
|
||||
{
|
||||
public:
|
||||
AesFilter() = default;
|
||||
AesFilter(int id, int operatorId, qint64 sampleTime, const std::string &content, const std::string &ctx)
|
||||
: m_id(id)
|
||||
, m_operatorId(operatorId)
|
||||
, m_sampleTime(sampleTime)
|
||||
, m_content(content)
|
||||
, m_ctx(ctx)
|
||||
{}
|
||||
|
||||
// Copy constructor from AesFilter (for DDS compatibility)
|
||||
AesFilter(const AesFilter &other) = default;
|
||||
AesFilter &operator=(const AesFilter &other) = default;
|
||||
|
||||
// Getters
|
||||
int id() const { return m_id; }
|
||||
int operatorId() const { return m_operatorId; }
|
||||
qint64 sampleTime() const { return m_sampleTime; }
|
||||
const std::string &content() const { return m_content; }
|
||||
const std::string &ctx() const { return m_ctx; }
|
||||
|
||||
// Setters
|
||||
void id(int id) { m_id = id; }
|
||||
void operatorId(int operatorId) { m_operatorId = operatorId; }
|
||||
void sampleTime(qint64 sampleTime) { m_sampleTime = sampleTime; }
|
||||
void content(const std::string &content) { m_content = content; }
|
||||
void ctx(const std::string &ctx) { m_ctx = ctx; }
|
||||
|
||||
private:
|
||||
int m_id = 0;
|
||||
int m_operatorId = 0;
|
||||
qint64 m_sampleTime = 0;
|
||||
std::string m_content;
|
||||
std::string m_ctx;
|
||||
};
|
||||
|
||||
} // namespace FilterManagement
|
||||
|
||||
namespace Interface
|
||||
{
|
||||
namespace Fts
|
||||
{
|
||||
|
||||
/**
|
||||
* @brief AesFilterUpdateRequestHandler - DDS request handler interface
|
||||
*
|
||||
* Stub implementation - real type would be DDS-generated
|
||||
*/
|
||||
class AesFilterUpdateRequestHandler
|
||||
{
|
||||
public:
|
||||
virtual ~AesFilterUpdateRequestHandler() = default;
|
||||
|
||||
protected:
|
||||
virtual void onAesFilterUpdateRequest(const rti::core::SampleIdentity &cookie,
|
||||
const FilterManagement::AesFilter &request) = 0;
|
||||
};
|
||||
|
||||
} // namespace Fts
|
||||
} // namespace Interface
|
||||
@@ -1,26 +0,0 @@
|
||||
/**
|
||||
* @RDE_HEADER@
|
||||
* Logging Stub for FilterManagement
|
||||
* Placeholder for DDS-generated logger
|
||||
*/
|
||||
|
||||
#pragma once
|
||||
|
||||
#include <NGLLogger/INGLLogger.h>
|
||||
#include <QtCore/QString>
|
||||
|
||||
namespace FilterManagement
|
||||
{
|
||||
using LOGGER_T = NGL::INGLLogger &;
|
||||
|
||||
inline LOGGER_T getLogger(const char *name)
|
||||
{
|
||||
(void)name; // Unused in stub
|
||||
return NGL::getMemoryLogger();
|
||||
}
|
||||
|
||||
inline LOGGER_T getLogger(const QString &loggerName)
|
||||
{
|
||||
return getLogger(loggerName.toUtf8().constData());
|
||||
}
|
||||
} // namespace FilterManagement
|
||||
Reference in new issue
Block a user