12#ifndef CHANGEWRAPPER_HPP
13#define CHANGEWRAPPER_HPP
25#include "Platform.hpp"
26#include "WkfPointOfInterest.hpp"
44 : mEditorPtr(aEditorPtr)
58 : mEditorPtr(aEditorPtr)
60 , mAttachmentPtr(aAttachmentPtr)
66 vespa::VaAttachment* aAttachmentPtr,
68 : mEditorPtr(aEditorPtr)
69 , mPlatformPtr(aPlatformPtr)
70 , mAttachmentPtr(aAttachmentPtr)
107 else if (!aRHS.mRange.Valid())
112 if (mRange.mSource->GetFilePath() == aRHS.mRange.mSource->GetFilePath())
114 if (mRange.GetBegin() == aRHS.mRange.GetBegin())
116 return mRange.GetEnd() > aRHS.mRange.GetEnd();
120 return mRange.GetBegin() > aRHS.mRange.GetBegin();
125 return mRange.mSource->GetFilePath() < aRHS.mRange.mSource->GetFilePath();
134 wkf::AttachmentRoute* GetRoute() const noexcept;
138 wkf::Waypoint* GetWaypoint() const noexcept;
142 wkf::AttachmentZone* GetZone() const noexcept;
146 wkf::ZonePoint* GetZonePoint() const noexcept;
154 wkf::PointOfInterest* GetPointOfInterest() const noexcept;
157 const UtTextDocumentRange&
GetRange()
const {
return mRange; }
165 void SetRangeFromNode() noexcept;
170 void SetEditorFromRange() noexcept;
173 UtTextDocumentRange mRange;
175 wkf::PointOfInterest* mPointOfInterestPtr{
nullptr};
176 vespa::VaAttachment* mAttachmentPtr{
nullptr};
177 wkf::Waypoint* mWaypointPtr{
nullptr};
178 wkf::ZonePoint* mZonePointPtr{
nullptr};
#define VI_EXPORT
Definition ViExport.hpp:38
Definition WsfPProxyNode.hpp:60
Definition ChangeWrapper.hpp:41
ChangeWrapper(wizard::Editor *aEditorPtr, vespa::VaAttachment *aAttachmentPtr, UtTextDocumentRange aRange)
Definition ChangeWrapper.hpp:57
bool operator<(const ChangeWrapper &aRHS) const noexcept
Definition ChangeWrapper.hpp:100
ChangeWrapper(wizard::Editor *aEditorPtr, wizard::Platform *aPlatformPtr, vespa::VaAttachment *aAttachmentPtr, WsfPProxyNode aProxyNode)
Definition ChangeWrapper.hpp:64
WsfPProxyNode GetProxyNode() const
Definition ChangeWrapper.hpp:158
ChangeWrapper(wizard::Editor *aEditorPtr, UtTextDocumentRange aRange)
Definition ChangeWrapper.hpp:43
const UtTextDocumentRange & GetRange() const
Definition ChangeWrapper.hpp:157
wizard::Editor * GetEditor() const
Definition ChangeWrapper.hpp:156
@ Waypoint
Definition P6DofVehicleData.hpp:304
Definition ActionManager.hpp:28