 |
NAVTOR SDK
v.3.0
Software Development Kit for fast and efficient development of ECDIS, ECS and generic marine applications
|
|
Go to the documentation of this file. 1 #ifndef SDK_GDB_FEATURE_EDIT_INTERFACE_H_
10 #define SDK_GDB_FEATURE_EDIT_INTERFACE_H_
14 #include <base/inc/interfaces/edit/edit_interface.h>
19 SDK_GDB_BEGIN_NAMESPACE
39 const SDKAny& value)
throw() = 0;
80 virtual GDBResult SDK_CALLTYPE
SetFlags(SDKUInt64 flags)
throw() = 0;
130 virtual GDBResult SDK_CALLTYPE
SetFOID(
const SDKAny& foid)
throw() = 0;
137 virtual GDBResult SDK_CALLTYPE
SetShape(
138 sdk::geometry::IGeometry* geometry)
throw() = 0;
146 virtual GDBResult SDK_CALLTYPE
AddSlave(
156 IFeature* slave_feature)
throw() = 0;
166 template<
typename T >
169 IAttributeCollectionEditSP attributes_editor;
173 return attributes_editor->SetAttributeValue(class_code, ScopedAny(value));
178 IAttributeCollectionEditSP attributes_editor;
182 return attributes_editor->SetAttributeValue(class_code,
187 const ScopedAny& value) noexcept {
188 IAttributeCollectionEditSP attributes_editor;
192 return attributes_editor->SetAttributeValue(class_code, value);
200 SDK_GDB_END_NAMESPACE
202 #endif // SDK_GDB_FEATURE_EDIT_INTERFACE_H_
Flags
Feature editor property Flags.
Definition: gdb_feature_edit.h:121
Properties
Feature editor properties.
Definition: gdb_feature_edit.h:116
virtual GDBResult SDK_CALLTYPE SetFOID(const SDKAny &foid)=0
Sets a feature unique identifier to the feature object.
RelationshipRole
Definition of the Relation role.
Definition: gdb_const.h:305
Specifies an interface for a GDB Geometry object.
Definition: gdb_feature_edit.h:29
virtual GDBResult SDK_CALLTYPE SetAttributeValue(AttributeClassCode class_code, const SDKAny &value)=0
Sets a value of the attribute.
virtual GDBResult SDK_CALLTYPE SetObjectClassCode(ClassCode code)=0
Sets an object class code.
virtual GDBResult SDK_CALLTYPE GetGeometryEditor(sdk::geometry::IGeometryEdit **geometry_edit)=0
Returns the geometry editor associated with this feature.
Object is a basic entity of a geodatabase dataset. Every object in the geodatabase is uniquely identi...
Definition: gdb_feature_edit.h:57
Describes interfaces for editing of geometry objects.
@ kIFE_Flags
Propertiy Flags to control the feature editor operations.
Definition: gdb_feature_edit.h:117
virtual GDBResult SDK_CALLTYPE DeleteSlave(IFeature *slave_feature)=0
Breaks off master-slave relation between 2 features. This method was introduced for performance reaso...
virtual GDBResult SDK_CALLTYPE SetShape(sdk::geometry::IGeometry *geometry)=0
Sets a geometry associated with this feature.
Provides access to members that describe properties and behavior of all geometric objects.
Definition: geometry_edit.h:26
virtual GDBResult SDK_CALLTYPE AddSlave(IFeatureEdit **slave_feature)=0
Creates a new feature and adds it as a slave to the master one. This method was introduced for perfor...
Provides access to members that can be used to access the individual attributes of a geometry,...
Definition: gdb_attribute.h:76
virtual GDBResult SDK_CALLTYPE DeleteAttribute(AttributeClassCode class_code)=0
Deletes the attribute with specified class code.
@ kForceKeepHistory
This flag enforces the feature editor to save history after editing.
Definition: gdb_feature_edit.h:122
Geo database constants and structures.
SDKUInt32 ClassCode
Definition of the ClassCode types.
Definition: gdb_const.h:229
sdk::SDKAnyHandler ScopedAny
Synonym for the SDKAnyHandler.
Definition: sdk_any_handler.h:569
Feature is a spatial object. A feature has an associated shape. A feature may have a shape with more ...
Definition: gdb_feature.h:187
virtual GDBResult SDK_CALLTYPE SetFlags(SDKUInt64 flags)=0
Sets object flags.
Feature is a spatial object. A feature has an associated shape. A feature may have a shape with more ...
Definition: gdb_feature_edit.h:113
#define SDK_FAILED(res)
Checks failed result.
Definition: sdk_results_enum.h:69
Object identifier.
Definition: gdb_const.h:115
virtual GDBResult SDK_CALLTYPE GetAttributesEditor(IAttributeCollectionEdit **attributes_editor)=0
Returns the attributes editor.
Base interface for all SDK interfaces.
Definition: sdk_component_interface.h:41
virtual GDBResult SDK_CALLTYPE SetAttributes(IAttributeCollection *attributes)=0
Adds (copies) specified attributes from a collection to the object.
ClassCode AttributeClassCode
Attribute class code type.
Definition: gdb_const.h:247
RelationshipClass
Definition of the Relationship class.
Definition: gdb_const.h:313
SDK_END_NAMESPACE typedef SDKInt64 SDKTime
Milliseconds from Unix epoch.
Definition: base_types.h:56
Describes interfaces that manages a geodatabase feature object.
virtual GDBResult SDK_CALLTYPE AddRelationship(ObjectID member, RelationshipClass relationship_class, RelationshipRole role, ObjectID &rel_id)=0
Adds a relationship between two existing objects in the dataset.
FWD_DECL_INTERFACE(ILWEParserWrapper)
Provides a wrapper around the message parser to get, add or remove the.