본문으로 건너뛰기
로딩중...
검색중...
일치하는것 없음
glsEditController.h
1#pragma once
2
3#include "gdk_dll/glsExport.h"
4#include "gdk_dll/glsTypes.h"
5#include "glsEditSave.h"
6
7#include <cstddef>
8#include <cstdint>
9
10namespace GDK {
11namespace dll::spatial { struct EditBatchAccess; }
12
13class glsMapView;
15
20enum class glsEditLayerStatus : int32_t
21{
30};
31
32// Mirrors Qt's EditController::State.
37enum class glsEditWorkflowState : int32_t
38{
46 Saving = 3,
49};
50
55enum class glsEditOperation : int32_t
56{
58 Add = 0,
60 Update = 1,
62 Delete = 2,
63};
64
65// Permanent contract with the Qt/C# menu phrase tables: append only, never
66// renumber or reuse.
88
89// May run on a background thread (a C# commit purges from Task.Run); hosts
90// marshal with a Qt queued connection or WinForms BeginInvoke/Post.
100{
101public:
103 virtual ~IGlsEditHistoryObserver() = default;
105 virtual void OnHistoryChanged() noexcept = 0;
106};
107
113{
114public:
120 glsEditHistoryStepResult& operator=(const glsEditHistoryStepResult&) = delete;
121
124 int GetLayerCount() const noexcept;
133 glsStatus GetLayerIdAt(int index, char* buf, size_t bufSize, size_t* requiredSize) const noexcept;
137 int GetViewIdCount(int index) const noexcept;
146 glsStatus GetViewIdsAt(int index, int64_t* buf, int bufCount, int* requiredCount) const noexcept;
152 int GetRemovedViewIdCount(int index) const noexcept;
161 glsStatus GetRemovedViewIdsAt(int index, int64_t* buf, int bufCount, int* requiredCount) const noexcept;
167 uint64_t GetEntryKeyAt(int index) const noexcept;
168
169private:
170 friend class glsEditController;
171 struct Impl;
172 Impl* impl_;
173};
174
180{
181 bool ReadOnly = false;
182 bool Editable = false;
183 bool CanAdd = false;
184 bool CanUpdate = false;
185 bool CanDelete = false;
186 bool GraphicsLayer = false;
188};
189
197
201{
202 // true: open the layer's edit session when it is not editing yet (Qt);
203 // false: fail with LayerNotEditing (C#). The auto-begin keeps every
204 // session inside a layer the workflow snapshot tracks, so SaveEdits,
205 // CancelEditing and HasDirtyEdits can still settle it.
210};
211
212// Ported from apps/qt_gdk_dll's EditLayerStateReader.cpp with two deliberate
213// differences from the Qt behavior: group layers are recursed into, and a
214// layer with an empty id is skipped rather than auto-repaired.
222{
223public:
226 explicit glsEditController(glsEditSessionState* sessionState) noexcept;
231 glsEditController(const glsEditController&) = delete;
232 glsEditController& operator=(const glsEditController&) = delete;
233
236
244 static glsStatus ReadLayerInfo(glsMapView* view, const char* layerId, glsEditLayerInfo* outInfo) noexcept;
245
250 glsEditLayerStatus GetLayerStatus(glsMapView* view, const char* layerId) const noexcept;
251
252 // --- workflow over a layer snapshot (Qt edit mode) ---
253 //
254 // Ported from apps/qt_gdk_dll's EditController.cpp. See
255 // src/gdk_dll/wrappers/edit/glsEditController.cpp for the rule-by-rule
256 // mapping to the Qt source lines this replicates.
257
264 glsStatus StartEditing(glsMapView* view, const char* initialLayerId) noexcept;
269 bool CanStartEditing(glsMapView* view, const char* initialLayerId) const noexcept;
276 glsStatus BeginEditingLayer(glsMapView* view, const char* layerId) noexcept;
278
281
287 // Canonical save scopes. Per-layer failures are in the owned receipt; Ok
288 // means the receipt was produced, not that every provider saved.
289 // SaveLayer/SaveAll retain edit mode and safe continuation of each entry.
297 glsStatus SaveLayer(glsMapView* view,const char* layerId,glsEditSaveResult** outResult) noexcept;
304 glsStatus SaveAll(glsMapView* view,glsEditSaveResult** outResult) noexcept;
312 glsStatus SaveAndFinish(glsMapView* view,const char* layerId,glsEditSaveResult** outResult) noexcept;
323 bool LastSaveNeedsRefresh() const noexcept;
331 glsStatus GetLastSaveRefreshWarning(char* buf, size_t bufSize, size_t* requiredSize) const noexcept;
338 // No-op while SaveEdits()/CancelEditing() is mid-loop (phase Saving or
339 // Reverting) -- their Commit()/Rollback() calls can re-enter through an
340 // event-loop pump, and resetting then would erase the snapshot out from
341 // under the loop's range.
346 void Reset(glsMapView* view) noexcept;
351 void SyncWithView(glsMapView* view) noexcept;
357 bool HasDirtyEdits() const noexcept;
360 bool HasAnyOpenEditSession() const noexcept;
367 bool IsOperationAllowed(const char* layerId, glsEditOperation op) const noexcept;
368
370
373
381 bool CanInsertFeature(glsMapView* view, const char* layerId, glsSketchGeometryKind kind) const noexcept;
388 bool IsSpatialEditLayer(glsMapView* view, const char* layerId) const noexcept;
395 bool IsPolygonEditLayer(glsMapView* view, const char* layerId) const noexcept;
396
397 // --- Task 4: feature insertion ---
398 //
399 // Ported from apps/qt_gdk_dll's EditController.cpp addFeature/
400 // addFeatureFromWkb. See src/gdk_dll/wrappers/edit/glsEditController.cpp
401 // for the rule-by-rule mapping to the Qt source lines this replicates, and
402 // for the shared mutation helpers (target/permission/session checks,
403 // attribute application, staging-failure mapping) that Task 5's
404 // update/delete entry points reuse.
405
419 glsStatus AddFeatureFromSketch(glsMapView* view, const char* layerId,
421 const glsMapPoint* mapPoints, int pointCount,
422 const glsAttributeAssignment* attributes, int attributeCount,
423 const glsEditMutationOptions& options,
424 int64_t* outViewId) noexcept;
425
439 glsStatus AddFeatureFromWkb(glsMapView* view, const char* layerId,
440 const uint8_t* wkb, size_t wkbSize, int32_t srid,
441 const glsAttributeAssignment* attributes, int attributeCount,
442 const glsEditMutationOptions& options,
443 int64_t* outViewId) noexcept;
444
445 // --- Task 5: feature update and delete ---
446 //
447 // Ported from apps/qt_gdk_dll's EditController.cpp updateFeatureAttributes/
448 // updateFeatureAttributesPartial/updateFeatureGeometry/
449 // updateFeatureGeometryAndAttributes/deleteSelectedFeatures. See
450 // src/gdk_dll/wrappers/edit/glsEditController.cpp for the rule-by-rule
451 // mapping and the shared mutation helpers these reuse.
452 //
453 // Behavior changes from Qt/C# (see docs/superpowers/plans/2026-09-24-editing-to-gdk-dll-stage3b.md's behavior-change table):
454 // (#1/#2) the pre-update existence read goes through the layer's
455 // GetEffectiveDataSource() (the edit view while editing) keyed by the
456 // session view id, not the physical source keyed by the same numeric id;
457 // (#3) CheckMutationSession refuses to stage into a layer whose commit is
458 // in progress or whose outcome is unknown; (#4) DeleteFeatures allows a
459 // delete without CanDelete when every id is a pending insert from this
460 // session.
461
472 glsStatus UpdateFeatureAttributes(glsMapView* view, const char* layerId, int64_t viewId,
473 const glsAttributeAssignment* attributes, int attributeCount,
474 const glsEditMutationOptions& options) noexcept;
475
487 glsStatus UpdateFeatureGeometry(glsMapView* view, const char* layerId, int64_t viewId,
488 const uint8_t* wkb, size_t wkbSize, int32_t srid,
489 const glsEditMutationOptions& options) noexcept;
490
504 glsStatus UpdateFeatureGeometryAndAttributes(glsMapView* view, const char* layerId, int64_t viewId,
505 const uint8_t* wkb, size_t wkbSize, int32_t srid,
506 const glsAttributeAssignment* attributes, int attributeCount,
507 const glsEditMutationOptions& options) noexcept;
508
518 glsStatus DeleteFeatures(glsMapView* view, const char* layerId,
519 const int64_t* viewIds, int count,
520 const glsEditMutationOptions& options) noexcept;
521
522 // --- undo / redo -----------------------------------------------------
523 // One session-wide stack over every mutation above (and Paste). See
524 // docs/superpowers/specs/2026-09-30-edit-undo-redo-design.md.
525 //
526 // The history: every successful mutation above (and glsFeatureClipboard::
527 // Paste) is one step. A step restores exactly the pending changes before
528 // (Undo) or after (Redo) it; nothing is written to the data source. A
529 // layer's steps are dropped when its pending changes are saved
530 // successfully, discarded, or its edit is closed for good, and when it is
531 // changed outside this controller. A new step clears the redo steps.
532
534
537
540 bool CanUndo() const noexcept;
543 bool CanRedo() const noexcept;
557 glsStatus PeekUndoLabel(char* buf, size_t bufSize, size_t* requiredSize) const noexcept;
565 glsStatus PeekRedoLabel(char* buf, size_t bufSize, size_t* requiredSize) const noexcept;
584 void SetHistoryLimit(int maxSteps) noexcept;
590
591 // --- edit groups -----------------------------------------------------
598 glsStatus BeginEditGroup(glsEditHistoryKind kind, const char* label) noexcept;
609
610 // --- snapshot access ---
612
615
618 int GetLayerCount() const noexcept;
622 int FindLayer(const char* layerId) const noexcept;
627 glsStatus GetLayerInfoAt(int index, glsEditLayerInfo* outInfo) const noexcept;
634 glsStatus GetLayerIdAt(int index, char* buf, size_t bufSize, size_t* requiredSize) const noexcept;
643 glsStatus GetLayerNameAt(int index, char* buf, size_t bufSize, size_t* requiredSize) const noexcept;
652 glsStatus GetLayerProviderKeyAt(int index, char* buf, size_t bufSize, size_t* requiredSize) const noexcept;
653
655
656private:
657 glsStatus SaveWorkflow(glsMapView*,const char*,bool,glsEditSaveResult**) noexcept;
658 friend struct dll::spatial::EditBatchAccess;
659 struct Impl;
660 Impl* impl_;
661};
662
668{
669public:
676 glsEditGroupScope(glsEditController& controller, glsEditHistoryKind kind, const char* label) noexcept
677 : controller_(controller), status_(controller.BeginEditGroup(kind, label)) {}
678
681 ~glsEditGroupScope() { if (status_.IsOk() && !completed_) controller_.CancelEditGroup(); }
682 glsEditGroupScope(const glsEditGroupScope&) = delete;
683 glsEditGroupScope& operator=(const glsEditGroupScope&) = delete;
684
687 glsStatus Status() const noexcept { return status_; }
691 {
692 if (!status_.IsOk() || completed_) return status_;
693 completed_ = true;
694 return controller_.EndEditGroup();
695 }
696
697private:
698 glsEditController& controller_;
699 glsStatus status_;
700 bool completed_ = false;
701};
702
703} // namespace GDK
컨트롤러 실행 취소 이력의 변경을 받는 관찰자입니다.
정의 glsEditController.h:100
virtual void OnHistoryChanged() noexcept=0
이력 상태가 바뀐 뒤 통지합니다.
virtual ~IGlsEditHistoryObserver()=default
이력 관찰자 구현 객체를 해제합니다.
지도 편집 모드, 검증을 거치는 피처 변경, 실행 취소 이력과 저장을 관리합니다.
정의 glsEditController.h:222
glsStatus GetLayerNameAt(int index, char *buf, size_t bufSize, size_t *requiredSize) const noexcept
모드 목록에 기록한 표시 이름을 UTF-8로 복사합니다.
glsEditHistoryKind PeekUndoKind() const noexcept
실행 취소할 다음 단계의 종류를 조회합니다.
glsStatus SaveAll(glsMapView *view, glsEditSaveResult **outResult) noexcept
지도 뷰에서 편집을 연 피처 레이어를 모두 저장합니다.
bool LastSaveNeedsRefresh() const noexcept
최근 SaveEdits()에 새로 고침 경고가 있었는지 확인합니다.
void Reset(glsMapView *view) noexcept
저장 없이 컨트롤러의 편집 모드를 초기화합니다.
void SetHistoryLimit(int maxSteps) noexcept
유지할 실행 취소 단계 수를 제한합니다.
glsStatus StartEditing(glsMapView *view, const char *initialLayerId) noexcept
편집 모드를 시작하고 필요하면 초기 레이어의 편집을 엽니다.
~glsEditController()
컨트롤러와 실행 취소 이력을 해제합니다.
void SyncWithView(glsMapView *view) noexcept
현재 지도에 없는 레이어를 편집 모드 목록에서 제거합니다.
bool IsOperationAllowed(const char *layerId, glsEditOperation op) const noexcept
현재 모드에서 레이어에 지정 편집 작업을 허용하는지 검사합니다.
bool CanRedo() const noexcept
다시 실행할 단계가 있는지 판정합니다.
bool IsPolygonEditLayer(glsMapView *view, const char *layerId) const noexcept
폴리곤 계열을 편집할 수 있는 레이어인지 검사합니다.
glsEditHistoryKind PeekRedoKind() const noexcept
다시 실행할 단계의 종류를 조회합니다.
glsStatus CancelEditGroup() noexcept
열린 그룹의 모든 중첩 수준을 취소합니다.
glsEditWorkflowState GetWorkflowState() const noexcept
편집 모드와 현재 저장·폐기 단계를 조회합니다.
glsStatus SaveAndFinishEditing(glsMapView *view) noexcept
모드 목록을 저장한 뒤 모두 성공한 경우에만 편집 모드를 종료합니다.
glsStatus UpdateFeatureGeometry(glsMapView *view, const char *layerId, int64_t viewId, const uint8_t *wkb, size_t wkbSize, int32_t srid, const glsEditMutationOptions &options) noexcept
편집 피처의 기하 변경을 보류합니다.
glsStatus BeginEditingLayer(glsMapView *view, const char *layerId) noexcept
편집 모드 목록에서 레이어의 편집을 엽니다.
int GetLayerCount() const noexcept
편집 모드 목록의 레이어 수를 조회합니다.
glsStatus BeginEditGroup(glsEditHistoryKind kind, const char *label) noexcept
복합 편집 그룹을 열거나 중첩 수준을 추가합니다.
glsStatus EndEditGroup() noexcept
복합 그룹의 한 중첩 수준을 종료합니다.
static glsStatus ReadLayerInfo(glsMapView *view, const char *layerId, glsEditLayerInfo *outInfo) noexcept
그룹을 포함한 지도에서 레이어의 현재 편집 권한을 조회합니다.
glsEditLayerStatus GetLayerStatus(glsMapView *view, const char *layerId) const noexcept
레이어의 편집 가능 여부와 보류 상태를 조회합니다.
glsEditController(glsEditSessionState *sessionState) noexcept
편집 상태 위에 컨트롤러를 생성합니다.
bool CanStartEditing(glsMapView *view, const char *initialLayerId) const noexcept
편집 모드를 열 수 있는지 상태를 바꾸지 않고 판정합니다.
glsStatus CancelEditing(glsMapView *view) noexcept
모드 목록의 보류 변경을 폐기하고 편집을 닫습니다.
glsStatus GetLastSaveRefreshWarning(char *buf, size_t bufSize, size_t *requiredSize) const noexcept
최근 SaveEdits()의 새로 고침 경고를 조회합니다.
glsStatus DeleteFeatures(glsMapView *view, const char *layerId, const int64_t *viewIds, int count, const glsEditMutationOptions &options) noexcept
여러 편집 피처를 한꺼번에 삭제 대상으로 표시합니다.
glsStatus GetLayerIdAt(int index, char *buf, size_t bufSize, size_t *requiredSize) const noexcept
모드 목록의 레이어 ID를 UTF-8로 복사합니다.
glsStatus Redo(glsMapView *view, glsEditHistoryStepResult *outResult) noexcept
가장 최근에 취소한 단계 이후의 보류 변경을 복원합니다.
glsStatus Undo(glsMapView *view, glsEditHistoryStepResult *outResult) noexcept
가장 최근 이력 단계 직전의 보류 변경 상태를 복원합니다.
void SetHistoryObserver(IGlsEditHistoryObserver *observer) noexcept
이력 변경 관찰자를 설정하거나 제거합니다.
glsStatus UpdateFeatureGeometryAndAttributes(glsMapView *view, const char *layerId, int64_t viewId, const uint8_t *wkb, size_t wkbSize, int32_t srid, const glsAttributeAssignment *attributes, int attributeCount, const glsEditMutationOptions &options) noexcept
편집 피처의 기하와 속성을 하나의 실행 취소 단계로 보류합니다.
glsStatus UpdateFeatureAttributes(glsMapView *view, const char *layerId, int64_t viewId, const glsAttributeAssignment *attributes, int attributeCount, const glsEditMutationOptions &options) noexcept
편집 피처의 지정 속성 값을 보류합니다.
glsStatus SaveAndFinish(glsMapView *view, const char *layerId, glsEditSaveResult **outResult) noexcept
보류 변경을 저장하고 대상 레이어 편집의 종료를 시도합니다.
glsStatus AddFeatureFromWkb(glsMapView *view, const char *layerId, const uint8_t *wkb, size_t wkbSize, int32_t srid, const glsAttributeAssignment *attributes, int attributeCount, const glsEditMutationOptions &options, int64_t *outViewId) noexcept
레이어 원본 CRS WKB로 새 편집 피처를 추가합니다.
int FindLayer(const char *layerId) const noexcept
편집 모드 목록에서 ID를 찾습니다.
glsStatus GetLayerProviderKeyAt(int index, char *buf, size_t bufSize, size_t *requiredSize) const noexcept
모드 목록에 저장된 소문자 공급자 키를 조회합니다.
glsStatus SaveEdits() noexcept
편집 모드의 열린 변경을 저장하고 모드를 유지합니다.
glsStatus AddFeatureFromSketch(glsMapView *view, const char *layerId, glsSketchGeometryKind kind, const glsMapPoint *mapPoints, int pointCount, const glsAttributeAssignment *attributes, int attributeCount, const glsEditMutationOptions &options, int64_t *outViewId) noexcept
지도 좌표의 스케치에서 새 피처를 편집 버퍼에 추가합니다.
bool CanUndo() const noexcept
실행 취소할 단계가 있는지 판정합니다.
glsStatus GetLayerInfoAt(int index, glsEditLayerInfo *outInfo) const noexcept
모드 목록의 저장된 편집 정보를 복사합니다.
bool HasDirtyEdits() const noexcept
모드 목록에 보류 변경이 있는지 판정합니다.
glsStatus PeekRedoLabel(char *buf, size_t bufSize, size_t *requiredSize) const noexcept
다시 실행 대상의 UTF-8 라벨을 조회합니다.
bool IsSpatialEditLayer(glsMapView *view, const char *layerId) const noexcept
공간 편집을 지원하는 레이어인지 검사합니다.
glsStatus PeekUndoLabel(char *buf, size_t bufSize, size_t *requiredSize) const noexcept
실행 취소 대상의 UTF-8 라벨을 조회합니다.
bool CanInsertFeature(glsMapView *view, const char *layerId, glsSketchGeometryKind kind) const noexcept
스케치 타입을 대상 레이어에 추가할 수 있는지 검사합니다.
glsStatus SaveLayer(glsMapView *view, const char *layerId, glsEditSaveResult **outResult) noexcept
지정 레이어와 보류 변경을 공유하는 레이어를 저장합니다.
bool HasAnyOpenEditSession() const noexcept
모드 목록에 열린 편집이 있는지 판정합니다.
범위를 벗어날 때 완료하지 않은 복합 편집을 자동 취소합니다.
정의 glsEditController.h:668
glsStatus Status() const noexcept
그룹 열기 결과를 조회합니다.
정의 glsEditController.h:687
glsStatus Complete() noexcept
열린 편집 그룹의 이 중첩 수준을 종료합니다.
정의 glsEditController.h:690
~glsEditGroupScope()
아직 완료하지 않은 열린 그룹을 취소합니다.
정의 glsEditController.h:681
glsEditGroupScope(glsEditController &controller, glsEditHistoryKind kind, const char *label) noexcept
컨트롤러의 복합 편집 그룹을 엽니다.
정의 glsEditController.h:676
실행 취소 또는 다시 실행 한 단계가 건드린 레이어와 편집 ID입니다.
정의 glsEditController.h:113
uint64_t GetEntryKeyAt(int index) const noexcept
레이어의 공유 편집 항목 키를 조회합니다.
glsStatus GetRemovedViewIdsAt(int index, int64_t *buf, int bufCount, int *requiredCount) const noexcept
레이어에서 보이지 않게 된 편집 ID를 복사합니다.
int GetRemovedViewIdCount(int index) const noexcept
단계가 보이지 않게 만든 편집 ID 수를 조회합니다.
glsStatus GetViewIdsAt(int index, int64_t *buf, int bufCount, int *requiredCount) const noexcept
레이어의 영향을 받은 편집 ID를 복사합니다.
glsStatus GetLayerIdAt(int index, char *buf, size_t bufSize, size_t *requiredSize) const noexcept
지정 레이어의 UTF-8 ID를 조회합니다.
glsEditHistoryStepResult() noexcept
영향을 받은 레이어와 편집 ID가 없는 빈 결과를 생성합니다.
int GetLayerCount() const noexcept
이력 단계의 영향을 받은 레이어 수를 조회합니다.
int GetViewIdCount(int index) const noexcept
단계에서 영향을 받은 편집 ID 수를 조회합니다.
SaveLayer(), SaveAll(), SaveAndFinish()의 레이어별 저장 영수증입니다.
정의 glsEditSave.h:25
지도 레이어의 보류 변경을 원본별로 공유하는 세션입니다.
정의 glsEditSession.h:116
지도 화면·레이어·렌더링·피처 식별·스냅을 관리하는 뷰입니다.
정의 glsMapView.h:87
SDK의 공유 라이브러리 심볼에 적용할 플랫폼별 선언 특성을 정의합니다.
공개 gdk_dll API가 공유하는 값 형식, 결과 코드, 호출 규약입니다.
glsSketchGeometryKind
지도 점으로 스케치한 새 피처의 모양입니다.
정의 glsTypes.h:2131
glsGeometryType
지오메트리 또는 레이어 스키마의 지오메트리 유형입니다.
정의 glsTypes.h:189
#define GDK_DLL_API
Windows에서는 SDK 심볼을 내보내거나 가져오고, 그 외 플랫폼에서는 SDK 빌드의 심볼을 공개합니다.
정의 glsExport.h:20
@ Unknown
알 수 없거나 레이어 스키마에서 모든 유형을 허용합니다.
정의 glsTypes.h:191
glsEditOperation
레이어에 허용되는지 검사할 편집 작업 유형입니다.
정의 glsEditController.h:56
glsEditWorkflowState
컨트롤러의 편집 모드와 현재 저장·폐기 단계입니다.
정의 glsEditController.h:38
glsEditHistoryKind
실행 취소 또는 다시 실행할 한 단계의 작업 종류입니다.
정의 glsEditController.h:72
glsEditLayerStatus
단일 피처 레이어의 편집 가능 여부와 보류 상태입니다.
정의 glsEditController.h:21
@ Update
기하나 속성을 갱신하는 권한입니다(glsEditLayerInfo::CanUpdate).
정의 glsEditController.h:60
@ Add
새 피처를 추가하는 권한입니다(glsEditLayerInfo::CanAdd).
정의 glsEditController.h:58
@ Delete
피처를 삭제하는 권한입니다(glsEditLayerInfo::CanDelete).
정의 glsEditController.h:62
@ NotEditing
편집 모드가 꺼져 있습니다.
정의 glsEditController.h:40
@ Saving
SaveEdits, SaveLayer, SaveAll 또는 SaveAndFinish가 실행 중입니다.
정의 glsEditController.h:46
@ Reverting
CancelEditing으로 편집 변경을 폐기하는 중입니다.
정의 glsEditController.h:48
@ EditingClean
편집 모드가 켜져 있고 편집 모드 레이어 목록의 어느 레이어에도 보류 변경이 없습니다.
정의 glsEditController.h:42
@ Group
애플리케이션의 라벨을 단 복합 편집 단계입니다(BeginEditGroup()).
정의 glsEditController.h:86
@ AddFeature
스케치나 WKB에서 피처를 추가한 단계입니다(AddFeatureFromSketch(), AddFeatureFromWkb()).
정의 glsEditController.h:74
@ Paste
클립보드의 피처를 붙여 넣은 단계입니다(glsFeatureClipboard::Paste()).
정의 glsEditController.h:84
@ UpdateGeometryAndAttributes
기하와 속성을 함께 바꾸거나(UpdateFeatureGeometryAndAttributes()) 공간 편집을 적용한 단계입니다.
정의 glsEditController.h:80
@ UpdateGeometry
피처 기하를 바꾼 단계입니다(UpdateFeatureGeometry()).
정의 glsEditController.h:78
@ DeleteFeatures
피처를 삭제 대상으로 지정한 단계입니다(DeleteFeatures()).
정의 glsEditController.h:82
@ UpdateAttributes
피처 속성을 바꾼 단계입니다(UpdateFeatureAttributes()).
정의 glsEditController.h:76
@ Editable
편집할 수 있지만 아직 편집을 열지 않았습니다.
정의 glsEditController.h:25
@ NotEditable
레이어를 찾지 못했거나 편집할 수 없습니다(glsEditLayerInfo::Editable이 false).
정의 glsEditController.h:23
@ Editing
편집을 열었고 보류 변경이 없습니다.
정의 glsEditController.h:27
@ EditingDirty
편집을 열었고 보류 변경이 있습니다.
정의 glsEditController.h:29
glsGdk SDK의 네이티브 C++ API 이름 공간입니다.
정의 glsAttributeTable.h:5
피처를 추가하거나 변경할 때 지정하는 필드 값입니다.
정의 glsEditController.h:193
int FieldIndex
레이어 스키마에서 0부터 시작하는 필드 인덱스입니다.
정의 glsEditController.h:194
glsAttributeValue Value
호출 중에 차용하여 읽을 해당 필드의 새 값입니다.
정의 glsEditController.h:195
형식 태그로 실제 값이 들어 있는 멤버를 지정하는 속성값입니다.
정의 glsTypes.h:1575
피처 레이어 원본의 권한에서 읽은 편집 가능 정보입니다.
정의 glsEditController.h:180
bool CanDelete
편집 가능하고 원본이 DeleteFeature를 지원하면 true입니다.
정의 glsEditController.h:185
bool GraphicsLayer
원본 메타데이터 gdk.layer_kind가 대소문자와 관계없이 graphics이면 true입니다.
정의 glsEditController.h:186
bool CanAdd
편집 가능하고 원본이 AddFeature를 지원하면 true입니다.
정의 glsEditController.h:183
glsGeometryType GeometryType
데이터 소스의 기하 유형입니다. 읽을 수 없으면 Unknown입니다.
정의 glsEditController.h:187
bool ReadOnly
레이어의 Editable이 false이면 true입니다.
정의 glsEditController.h:181
bool Editable
원본이 Transaction과 AddFeature·UpdateFeature·DeleteFeature 중 하나 이상을 지원하면 true입니다.
정의 glsEditController.h:182
bool CanUpdate
편집 가능하고 원본이 UpdateFeature를 지원하면 true입니다.
정의 glsEditController.h:184
컨트롤러가 피처를 변경하기 전에 적용할 옵션입니다.
정의 glsEditController.h:201
bool BeginSessionIfNeeded
열린 편집이 없으면 시작할지 지정합니다.
정의 glsEditController.h:209
사용 API가 지정한 좌표 참조계의 지도 좌표입니다.
정의 glsTypes.h:111
DLL 경계의 공개 함수가 반환하는 상태입니다.
정의 glsTypes.h:83