![]() |
NAVTOR SDK
v.3.0
Software Development Kit for fast and efficient development of ECDIS, ECS and generic marine applications
|
A Workspace is a container of spatial and non-spatial datasets. Workspace is a non-creatable object. References to non-creatable objects must be obtained through other objects. More...
#include <gdb_workspace.h>
Public Member Functions | |
| virtual GDBResult SDK_CALLTYPE | GetWorkspaceID (WorkspaceID &id) const =0 throw () |
| Returns Workspace identifier. | |
| virtual GDBResult SDK_CALLTYPE | GetWorkspaceFactory (IWorkspaceFactory **factory)=0 throw () |
| Returns a reference back to the workspace factory for this workspace. More... | |
| virtual GDBResult SDK_CALLTYPE | GetConfiguration (IWorkspaceConfiguration **configuration) const =0 throw () |
| Returns the pointer to configuration object that was used during the workspace construction. More... | |
| virtual GDBResult SDK_CALLTYPE | GetWorkspaceProperty (WorkspacePropertyId property_id, SDKAny &value) const =0 throw () |
| Returns properties of the workspace. More... | |
| virtual GDBResult SDK_CALLTYPE | GetCatalog (CatalogType catalog_type, ICatalog **catalog) const =0 throw () |
| Returns the pointer to the workspace catalog specified by the type of the catalog. More... | |
| virtual GDBResult SDK_CALLTYPE | GetFeatureCatalog (PRSP prsp, IClassCatalog **feature_catalog) const =0 throw () |
| Returns the pointer to the feature catalog specified by the PRSP. More... | |
| virtual GDBResult SDK_CALLTYPE | GetDatasetIDs (geometry::IGeometry *geometric_filter, IQueryParameters *parameter_filter, IEnumDatasetID **enum_dataset_id)=0 throw () |
| Returns an enumerator over the dataset identifiers in the workspace for the specified geometric and parameters filters. More... | |
| virtual GDBResult SDK_CALLTYPE | GetDatasets (geometry::IGeometry *geometric_filter, IQueryParameters *parameter_filter, IEnumDataset **datasets)=0 throw () |
| Returns an enumerator over the datasets in the workspace of the specified geometric and parameters filters. GetDatasets will return a fully constructed dataset object. More... | |
| virtual GDBResult SDK_CALLTYPE | GetDataset (DatasetID dataset_id, IDataset **dataset)=0 throw () |
| Returns a fully constructed dataset object specified by id. More... | |
| virtual GDBResult SDK_CALLTYPE | GetDatasetByName (const SDKString &dataset_name, IDataset **dataset)=0 throw () |
| Returns a fully constructed dataset object specified by name. More... | |
| virtual GDBResult SDK_CALLTYPE | GetFeature (ObjectID id, IFeature **feature)=0 throw () |
| Returns the feature specified by the object identifier. More... | |
| virtual GDBResult SDK_CALLTYPE | GetState (WorkspaceState &state) const =0 throw () |
| Retrieves the status for a workspace. More... | |
| virtual GDBResult SDK_CALLTYPE | GetWorkspaceUpdateHistory (IWorkspaceUpdateHistory **update_history)=0 throw () |
| Returns the IWorkspaceUpdateHistory interface associated with the workspace update history. | |
| virtual GDBResult SDK_CALLTYPE | GetPermits (IPermitCollection **permit_collection)=0 throw () |
| Returns the IPermitCollection interface associated with the workspace permits. More... | |
| virtual GDBResult SDK_CALLTYPE | GetDatasetID (const SDKString &dataset_name, DatasetID &dataset_id) const =0 throw () |
| Returns the dataset id for the dataset specified by name. More... | |
| virtual GDBResult SDK_CALLTYPE | GetFeatures (geometry::IGeometry *geometry_filter, IQueryParameters *parameters, IFeatureFilter *back_call_feature_filter, IEnumFeature **features)=0 throw () |
| Returns an enumeration of the features which contain in this workspace. More... | |
| virtual GDBResult SDK_CALLTYPE | GetCellActuality (const SDKString &cell_name, CellActuality &actuality)=0 throw () |
| Returns the actuality status of an installed ENC cell relative to the data server product list (PRODUCTS.TXT dataset) stored in the same SENC. 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. | |
A Workspace is a container of spatial and non-spatial datasets. Workspace is a non-creatable object. References to non-creatable objects must be obtained through other objects.
|
pure virtual | ||||||||||||||
Returns a reference back to the workspace factory for this workspace.
| [out] | factory | Address of a variable that receives a pointer to the IWorkspaceFactory interface associated with the workspace factory that opened the workspace. |
|
pure virtual | ||||||||||||||
Returns the pointer to configuration object that was used during the workspace construction.
| [out] | configuration | Address of a variable that receives a pointer to the IWorkspaceConfiguration interface associated with a workspace configuration. |
|
pure virtual | ||||||||||||||||||||
Returns properties of the workspace.
| [in] | property_id | A workspace property identifier. |
| [out] | value | Address of a variable that receives a property value. |
|
pure virtual | ||||||||||||||||||||
Returns the pointer to the workspace catalog specified by the type of the catalog.
| [in] | catalog_type | Type of a catalog. |
| [out] | catalog | Address of a variable that receives the pointer to the ICatalog interface associated with a catalog of specified type. |
|
pure virtual | ||||||||||||||||||||
Returns the pointer to the feature catalog specified by the PRSP.
| [in] | prsp | Product specification. |
| [out] | feature_catalog | Address of a variable that receives the pointer to the IClassCatalog interface associated with a feature catalog. |
|
pure virtual | ||||||||||||||||||||||||
Returns an enumerator over the dataset identifiers in the workspace for the specified geometric and parameters filters.
| [in] | geometric_filter | Pointer to the IGeometry interface associated with a geometry for the request filtration. |
| [in] | parameter_filter | Pointer to the IQueryParameters interface associated with the dataset parameters filter. |
| [out] | enum_dataset_id | Address of a variable that receives a pointer to the IEnumDatasetID interface associated with a dataset enumeration. |
|
pure virtual | ||||||||||||||||||||||||
Returns an enumerator over the datasets in the workspace of the specified geometric and parameters filters. GetDatasets will return a fully constructed dataset object.
| [in] | geometric_filter | Pointer to IGeometry interface associated with a geometry for the request filtration. |
| [in] | parameter_filter | Pointer to IQueryParameters interface associated with the dataset parameters filter. |
| [out] | datasets | Address of a variable that receives a pointer to the IEnumDataset interface associated with a dataset enumeration. |
|
pure virtual | ||||||||||||||||||||
Returns a fully constructed dataset object specified by id.
| [in] | dataset_id | A dataset identifier. |
| [out] | dataset | Address of a variable that receives a pointer to the IDataset interface associated with a dataset. |
|
pure virtual | ||||||||||||||||||||
Returns a fully constructed dataset object specified by name.
| [in] | dataset_name | - A dataset name. |
| [out] | dataset | - Address of a variable that receives a pointer to the IDataset interface associated with a dataset. |
|
pure virtual | ||||||||||||||||||||
Returns the feature specified by the object identifier.
| id | [in] The object identifier. |
| feature | [out] Address of a variable that receives the pointer to the IFeature interface associated with the feature. |
|
pure virtual | ||||||||||||||
Retrieves the status for a workspace.
| [out] | state | Address of a variable that receives a workspace state. |
|
pure virtual | ||||||||||||||
Returns the IPermitCollection interface associated with the workspace permits.
| [out] | permit_collection | Address of a variable that receives the pointer to the IPermitCollection interface associated with the permit collection. |
|
pure virtual | ||||||||||||||||||||
Returns the dataset id for the dataset specified by name.
| [in] | dataset)name | The dataset name. |
| [out] | dataset_id | Address of a variable that receives the dataset identifier. |
|
pure virtual | ||||||||||||||||||||||||||||
Returns an enumeration of the features which contain in this workspace.
| [in] | geometry_filter | Pointer to the IGeometry interface associated with the geometry object. |
| [in] | parameters | Set of parameters that specify request for the feature iteration IQueryParameters |
| [in] | back_call_feature_filter | Pointer to the IFeatureFilter interface associated with the filter of the features. Called for every feature in iteration. |
| [out] | features | Address of a variable that receives the pointer to the IEnumFeature interface associated with the feature enumeration object. |
|
pure virtual | ||||||||||||||||||||
Returns the actuality status of an installed ENC cell relative to the data server product list (PRODUCTS.TXT dataset) stored in the same SENC.
The method compares the edition and update numbers of the installed cell dataset (kDSP_EditionNumber / kDSP_UpdateNumber) with the corresponding record attributes of the PRODUCTS.TXT dataset stored in the SENC (base cell edition / latest update number) and takes into account the terminated and new edition flags of the cell dataset, as well as the cancelled cell replacement marker of the PRODUCTS.TXT record.
The result is fail-safe: kCellActuality_Unknown is set whenever the comparison can not be positively performed - there is no PRODUCTS.TXT dataset in this SENC, there is no PRODUCTS.TXT record for the given cell, the required dataset properties or record attributes can not be read, or the cell name is not a valid 8 symbol cell name. A consumer MUST NOT interpret kCellActuality_Unknown as "up to date": unknown actuality has to be reported to the user as uncertainty, not as actuality.
| [in] | cell_name | Cell (dataset) name. Directory and SENC file extension are optional. |
| [out] | actuality | Address of a variable that receives the cell actuality status (see CellActuality). It is set to kCellActuality_Unknown on any failure. |