- 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>
53 lines
1.3 KiB
C++
Executable File
53 lines
1.3 KiB
C++
Executable File
/**
|
|
* Marker object
|
|
* $Id$
|
|
* $HeadURL$
|
|
* $Author$
|
|
* Created by hjl, SLSE, 2016-04-12
|
|
*/
|
|
|
|
#pragma once
|
|
|
|
#include <QVector>
|
|
#include "dds_handler.h"
|
|
#include "mrk_db.h"
|
|
#include <Core/core_types.h>
|
|
|
|
// Generated
|
|
#include <MarkerManagement/mrk_db.h>
|
|
|
|
namespace MarkerManagement
|
|
{
|
|
class ObjectSnapshot final
|
|
{
|
|
public:
|
|
explicit ObjectSnapshot(const std::shared_ptr<DdsHandler> &ddsHandler,
|
|
const std::shared_ptr<DatabaseInterface> &db);
|
|
|
|
~ObjectSnapshot();
|
|
|
|
Core::FunctionReplyObject createObject(const MarkerManagement::Snapshot &data);
|
|
Core::FunctionReplyObject updateObject(const MarkerManagement::Snapshot &data);
|
|
Core::FunctionReplyObject removeObject();
|
|
|
|
qint32 getId() const{ return m_dataSnapshot.id(); }
|
|
Snapshot getData() const { return m_dataSnapshot; }
|
|
QString getName() const { return QString::fromStdString(m_dataSnapshot.name()); }
|
|
|
|
bool isValid() const;
|
|
|
|
// convert methods
|
|
static Database::MrkSnapshot toDbData(const Snapshot &ddsData); // dds -> db
|
|
static Snapshot toDdsData(const Database::MrkSnapshot &dbData); // db -> dds
|
|
|
|
private:
|
|
void onPublishData();
|
|
|
|
|
|
private:
|
|
std::shared_ptr<DdsHandler> m_ddsHandler;
|
|
std::shared_ptr<DatabaseInterface> m_db;
|
|
MarkerManagement::Snapshot m_dataSnapshot;
|
|
};
|
|
} // namespace MarkerManagement
|