Removes code-generated files that were accidentally committed to the repo
This commit is contained in:
46 files changed
+96
-2547
No files matched your search
@@ -1,12 +0,0 @@
|
||||
/**
|
||||
* @file core.hpp
|
||||
* @brief Core DDS Sammel-Header
|
||||
*
|
||||
* Beinhaltet alle Core-Typen für DDS-Integration.
|
||||
*/
|
||||
|
||||
#pragma once
|
||||
|
||||
#include <Core/core_types.h>
|
||||
#include <Core/core_enums.hpp>
|
||||
#include <Core/core_dtc.h>
|
||||
@@ -1,51 +0,0 @@
|
||||
/**
|
||||
* @file core_dtc_types.h
|
||||
* @brief DDS-Stub für Core-Typen (DTC = Data Transfer Component)
|
||||
*
|
||||
* Dieser Header enthält Stub-Definitionen für DDS-Core-Typen, die von RTI DDS generiert werden würden.
|
||||
*/
|
||||
|
||||
#pragma once
|
||||
|
||||
#include <QtCore/QString>
|
||||
|
||||
namespace IDL
|
||||
{
|
||||
|
||||
enum class PartitionType
|
||||
{
|
||||
Any = 0,
|
||||
Live = 1,
|
||||
Replay = 2,
|
||||
Record = 3,
|
||||
Gateway = 4
|
||||
};
|
||||
|
||||
} // namespace IDL
|
||||
|
||||
namespace Core
|
||||
{
|
||||
|
||||
class ReplayPartition
|
||||
{
|
||||
public:
|
||||
ReplayPartition() = default;
|
||||
|
||||
int domainId() const { return m_domainId; }
|
||||
int id() const { return m_id; }
|
||||
int exerciseId() const { return m_exerciseId; }
|
||||
QString tcpConnectionUrl() const { return m_tcpConnectionUrl; }
|
||||
|
||||
void setDomainId(int id) { m_domainId = id; }
|
||||
void setId(int id) { m_id = id; }
|
||||
void setExerciseId(int id) { m_exerciseId = id; }
|
||||
void setTcpConnectionUrl(const QString &url) { m_tcpConnectionUrl = url; }
|
||||
|
||||
private:
|
||||
int m_domainId = -1;
|
||||
int m_id = 0;
|
||||
int m_exerciseId = 0;
|
||||
QString m_tcpConnectionUrl;
|
||||
};
|
||||
|
||||
} // namespace Core
|
||||
@@ -0,0 +1,61 @@
|
||||
|
||||
|
||||
#pragma once
|
||||
#include <LtsUtils/LtsUtilsCore/data_modification_enum.h>
|
||||
#include <dds/sub/LoanedSamples.hpp>
|
||||
|
||||
namespace NGLLogger
|
||||
{
|
||||
class INGLLogger;
|
||||
}
|
||||
|
||||
namespace DTC
|
||||
{
|
||||
class SubscriberListener;
|
||||
|
||||
template <typename DRO_OBJECT, typename SC> class GenericDtcSC
|
||||
{
|
||||
public:
|
||||
using DataReaderObject = DRO_OBJECT;
|
||||
using SubscriberCallback = SC;
|
||||
using TopicType = typename DRO_OBJECT::TopicType;
|
||||
|
||||
GenericDtcSC() = default;
|
||||
virtual ~GenericDtcSC() = default;
|
||||
|
||||
virtual bool setSubscriberCallback(const SubscriberCallback& subscriberCallback) = 0;
|
||||
virtual dds::sub::LoanedSamples<TopicType> readAlive() const = 0;
|
||||
virtual dds::sub::LoanedSamples<TopicType> takeAlive() const = 0;
|
||||
virtual dds::sub::LoanedSamples<TopicType> takeDisposed() const = 0;
|
||||
virtual bool hasSamples() const = 0;
|
||||
virtual DataReaderObject* dataReader() const = 0;
|
||||
virtual bool waitForHistoricalData(int timeoutMSec) = 0;
|
||||
};
|
||||
|
||||
template <typename DRO_OBJECT>
|
||||
class GenericDtc
|
||||
: public GenericDtcSC<DRO_OBJECT, std::function<void(const typename DRO_OBJECT::TopicType&, DataModification)>>
|
||||
{
|
||||
};
|
||||
|
||||
template <typename DRO_OBJECT>
|
||||
class GenericDtcSampleInfo
|
||||
: public GenericDtcSC<DRO_OBJECT,
|
||||
std::function<void(const typename DRO_OBJECT::TopicType&, const dds::sub::SampleInfo&)>>
|
||||
{
|
||||
};
|
||||
|
||||
template <typename DRO_OBJECT>
|
||||
class Ddtc
|
||||
: public GenericDtcSC<
|
||||
DRO_OBJECT, std::function<void(const typename DRO_OBJECT::TopicType&, const std::string&, DataModification)>>
|
||||
{
|
||||
};
|
||||
|
||||
template <typename DRO_OBJECT>
|
||||
class DdtcSampleInfo
|
||||
: public GenericDtcSC<DRO_OBJECT, std::function<void(const typename DRO_OBJECT::TopicType&, const std::string&,
|
||||
const dds::sub::SampleInfo&)>>
|
||||
{
|
||||
};
|
||||
} // namespace DTC
|
||||
Reference in new issue
Block a user