- 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>
62 lines
1.9 KiB
C++
Executable File
62 lines
1.9 KiB
C++
Executable File
/**
|
|
* @RDE_HEADER@
|
|
* ISM Object Main Structure Element
|
|
* $Id$
|
|
* $HeadURL$
|
|
* $Author$
|
|
* Created by Iuliana Ojog, SLSE, 2016-11-26
|
|
*/
|
|
|
|
#pragma once
|
|
|
|
#include <QMap>
|
|
#include <Core/core_types.h>
|
|
|
|
#include <PresentationManagement/pre_db.h>
|
|
#include <PresentationManagement/pre.hpp>
|
|
|
|
#include "logger.h"
|
|
|
|
//-------------------------------------------------------------------------------------------------------------
|
|
namespace PresentationManagement
|
|
{
|
|
class Initialization;
|
|
|
|
class ObjectPresentation
|
|
{
|
|
public:
|
|
explicit ObjectPresentation(Initialization *mainHandler);
|
|
ObjectPresentation(const Presentation &data, Initialization *mainHandler);
|
|
|
|
~ObjectPresentation();
|
|
|
|
Core::FunctionReplyObject createObject(const PresentationModifyRequest &request);
|
|
Core::FunctionReplyObject updateObject(const PresentationModifyRequest &request);
|
|
Core::FunctionReplyObject removeObject();
|
|
Core::FunctionReplyObject changeStatus(const PresentationChangeStatusRequest &request);
|
|
|
|
qint32 getId() const { return m_data.id(); }
|
|
QString getName() const { return QString::fromStdString(m_data.name()); }
|
|
const std::vector<PresentationContent> &getContent() const { return m_content; }
|
|
const Presentation &getData() const { return m_data; }
|
|
|
|
bool isValid() const;
|
|
|
|
void addPresentationContent(PresentationContent &&data);
|
|
|
|
// convert methods
|
|
static Database::PrePresentation toDbData(const Presentation &ddsData); // dds -> db
|
|
static Presentation toDdsData(const Database::PrePresentation &dbData); // db -> dds
|
|
|
|
static Database::PrePresentationContent toDbData(const PresentationContent &ddsData); // dds -> db
|
|
static PresentationContent toDdsData(const Database::PrePresentationContent &dbData); // db -> dds
|
|
|
|
void onPublishData();
|
|
|
|
private:
|
|
Initialization *m_mainHandler;
|
|
Presentation m_data;
|
|
std::vector<PresentationContent> m_content;
|
|
};
|
|
}
|