NAVTOR SDK  v.3.0
Software Development Kit for fast and efficient development of ECDIS, ECS and generic marine applications
s57_catalog_reader_interface.h
Go to the documentation of this file.
1 #ifndef SDK_S57_CATALOG_READER_INTERFACE_H_
11 #define SDK_S57_CATALOG_READER_INTERFACE_H_
12 
13 #include <base/inc/sdk_results.h>
15 #include <base/inc/sdk_ref_ptr.h>
17 #include "s57_catalog_interface.h"
18 
19 namespace sdk {
20 namespace s63 {
21 
24 static const wchar_t kS57CatalogFileName[] = L"CATALOG.031";
25 
27 class IS57CatalogReader;
28 typedef sdk::SDKRefPtr<IS57CatalogReader> S57CatalogReaderSP;
29 
32 class IS57CatalogReader : public sdk::ISDKComponent
33 {
34  public:
37  virtual SDKResult SDK_CALLTYPE LoadCatalog(
38  const sdk::base::SDKStreamSP& stream,
39  sdk::s63::S57CatalogEntriesStorageSP& catalog_storage) const throw() = 0;
40 
42  SDK_IMPLEMENT_IID(IS57CatalogReader)
43  SDK_END_INTERFACE(IS57CatalogReader)
44 };
45 SDK_DECLARE_IID(IS57CatalogReader)
46 
47 } // namespace s63
48 } // namespace sdk
49 
50 #endif // SDK_S57_CATALOG_READER_INTERFACE_H_
sdk_results.h
A list of SDK error/return results.
sdk_ref_ptr.h
Interfaces wrapper with reference count control.
s57_catalog_interface.h
Set of interfaces for S-57 catalog description.
SDKResult
SDKInt32 SDKResult
Type of all error or return codes which SDK functions can end with.
Definition: sdk_results.h:17
stream_interface.h
Generic data stream interface.
SDKRefPtr
A smart pointer class for managing SDK components interface pointers.
Definition: sdk_ref_ptr.h:23
sdk::s63::IS57CatalogReader
Interface for reading the S-57 catalog file.
Definition: s57_catalog_reader_interface.h:32
sdk_component_interface.h
Common base SDK interfaces.
sdk::s63::IS57CatalogReader::LoadCatalog
virtual SDKResult SDK_CALLTYPE LoadCatalog(const sdk::base::SDKStreamSP &stream, sdk::s63::S57CatalogEntriesStorageSP &catalog_storage) const =0
Loads catalog data from a specified stream and creates an S57CatalogStorageSP instance.
sdk::s63::kS57CatalogFileName
static const wchar_t kS57CatalogFileName[]
Reserved name for the Catalog file in S-57.
Definition: s57_catalog_reader_interface.h:24