- cmake/FindRTI.cmake: Add INTERFACE placeholder targets when RTI not found - cmake/FindRTI.cmake: Force BUILD_RTI=OFF when RTI not installed - Lts/Common/LtsSession/CMakeLists.txt: Make LtsSessionDataDds conditional on BUILD_RTI - Lts/Viewer/CMakeLists.txt: Make LtsDataView conditional on BUILD_RTI - Lts/Plugins/*/CMakeLists.txt: 97 plugin files wrapped in BUILD_RTI conditionals - cmake/NGLMacros.cmake: Fix NGL_ADD_BIG_RESOURCES macro (removed premature return()) - Multiple Qt6 API fixes: QLinkedList→std::list, QStringRef→QStringView, etc. - BUILD_RTI_FIXES_SUMMARY.md: Comprehensive documentation of all fixes Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
59 lines
1.5 KiB
C++
Executable File
59 lines
1.5 KiB
C++
Executable File
/**
|
|
* Marker object
|
|
* $Id$
|
|
* $HeadURL$
|
|
* $Author$
|
|
* Created by hjl, SLSE, 2016-04-12
|
|
*/
|
|
|
|
#pragma once
|
|
|
|
#include "dds_handler.h"
|
|
#include "mrk_db.h"
|
|
#include <Core/core_types.h>
|
|
|
|
// Generated
|
|
#include <MarkerManagement/mrk_db.h>
|
|
|
|
namespace MarkerManagement
|
|
{
|
|
|
|
class ObjectMarker final
|
|
{
|
|
public:
|
|
explicit ObjectMarker(const std::shared_ptr<DdsHandler> &ddsHandler,
|
|
const std::shared_ptr<DatabaseInterface> &db);
|
|
|
|
~ObjectMarker();
|
|
|
|
Core::FunctionReplyObject createObject(const Marker &data);
|
|
Core::FunctionReplyObject updateObject(const Marker &data);
|
|
Core::FunctionReplyObject removeObject();
|
|
|
|
Core::FunctionReplyObject setUsed(bool isUsed);
|
|
|
|
qint32 getId() const { return m_dataMarkerObject.id(); }
|
|
Marker getData() const { return m_dataMarkerObject; }
|
|
QString getName() const { return QString::fromStdString(m_dataMarkerObject.name()); }
|
|
|
|
bool isValid() const;
|
|
bool isUsed() const;
|
|
|
|
|
|
// convert methods
|
|
static Database::MrkMarker toDbData(const Marker &ddsData); // dds -> db
|
|
static Marker toDdsData(const Database::MrkMarker &dbData); // db -> dds
|
|
|
|
static Database::MrkMarkerDescription toDbData(const MarkerDescription &ddsData); // dds -> db
|
|
static MarkerDescription toDdsData(const Database::MrkMarkerDescription &dbData); // db -> dds
|
|
|
|
private:
|
|
void onPublishData();
|
|
|
|
private:
|
|
std::shared_ptr<DdsHandler> m_ddsHandler;
|
|
std::shared_ptr<DatabaseInterface> m_db;
|
|
Marker m_dataMarkerObject;
|
|
};
|
|
} // namespace MarkerManagement
|