NAVTOR SDK  v.3.0
Software Development Kit for fast and efficient development of ECDIS, ECS and generic marine applications
IFeatureCollection Class Referenceabstract

Collection of features. More...

#include <gdb_dataset.h>

Inheritance diagram for IFeatureCollection:
ISDKComponent

Public Member Functions

virtual GDBResult SDK_CALLTYPE GetFeatureCount (SDKUInt32 *count) const noexcept=0
 Returns the number of Features in the FeatureCollection. More...
 
virtual GDBResult SDK_CALLTYPE GetFeatureByIndex (SDKUInt32 index, IFeature **feature) noexcept=0
 Returns the ith Feature from the FeatureCollection. The first Feature has index 0 and the last Feature has index equal to FeatureCount - 1. More...
 
- Public Member Functions inherited from ISDKComponent
virtual SDKAtomicRefCount SDK_CALLTYPE AddRef () const =0 throw ()
 Increments the reference count for an interface on a component.

 
virtual SDKAtomicRefCount SDK_CALLTYPE Release () const =0 throw ()
 Decrements the reference count for an interface on a component.
 
virtual SDKResult SDK_CALLTYPE GetInterface (const InterfaceId &id, void **obj_ptr)=0 throw ()
 Returns pointers to the supported interfaces on a component.
 
template<typename _Itf >
SDKResult GetInterface (_Itf **obj_ptr) throw ()
 Returns pointers to the supported interfaces on a component.
 

Detailed Description

Collection of features.

Member Function Documentation

◆ GetFeatureCount()

virtual GDBResult SDK_CALLTYPE GetFeatureCount ( SDKUInt32 *  count) const
pure virtualnoexcept

Returns the number of Features in the FeatureCollection.

Parameters
count[out] Address of a variable that receives the number of features in collection.
Returns
kSDKResult_Succeeded
kSDKResult_NotImplemented

◆ GetFeatureByIndex()

virtual GDBResult SDK_CALLTYPE GetFeatureByIndex ( SDKUInt32  index,
IFeature **  feature 
)
pure virtualnoexcept

Returns the ith Feature from the FeatureCollection. The first Feature has index 0 and the last Feature has index equal to FeatureCount - 1.

Parameters
index[in] Zero-based position of a Feature in the collection.
geometry[out] Address of variable that receives the pointer to a IFeature interface.
Returns
SDKResult_Succeeded
SDKResult_NotImplemented
SDKResult_NotExist

The documentation for this class was generated from the following file: