Continues migration with DDS, Common

This commit is contained in:
torsten committed 2026-07-17 12:41:42 +02:00
1 parent 9b15cee841
commit fa48db111e
668 files changed
+111841 -2

No files matched your search

+35
View File
@@ -0,0 +1,35 @@
#pragma once
#include <dds/core/xtypes/StructType.hpp>
namespace DDSGeneric
{
struct TopicDescription
{
TopicDescription()
: type(dds::core::xtypes::StructType("Unknown")) {}
TopicDescription(const std::string &name_, const std::string &typeName_, const dds::core::xtypes::StructType &type_)
: name(name_)
, typeName(typeName_)
, type(type_)
{}
std::string name;
std::string typeName;
dds::core::xtypes::StructType type;
bool operator==(const TopicDescription &ti) const
{
return (name.compare(ti.name) == 0) &&
(typeName.compare(ti.typeName) == 0) &&
(type == ti.type);
}
bool isEmpty() const
{
return name.empty();
}
};
}