NAVTOR SDK  v.3.0
Software Development Kit for fast and efficient development of ECDIS, ECS and generic marine applications
s57_catalog_writer_interface.h
Go to the documentation of this file.
1 #ifndef SDK_S57_CATALOG_WRITER_INTERFACE_H_
11 #define SDK_S57_CATALOG_WRITER_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 
23 class IS57CatalogWriter;
24 typedef sdk::SDKRefPtr<IS57CatalogWriter> S57CatalogWriterSP;
25 
28 class IS57CatalogWriter : public sdk::ISDKComponent
29 {
30 public:
32  virtual SDKResult SDK_CALLTYPE SaveCatalog(
33  const sdk::s63::S57CatalogEntriesStorageSP& catalog_storage,
34  const sdk::base::SDKStreamSP& stream) const throw() = 0;
35 
37  SDK_IMPLEMENT_IID(IS57CatalogWriter)
38  SDK_END_INTERFACE(IS57CatalogWriter)
39 };
40 SDK_DECLARE_IID(IS57CatalogWriter)
41 
42 } // namespace s63
43 } // namespace sdk
44 
45 #endif // SDK_S57_CATALOG_WRITER_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_component_interface.h
Common base SDK interfaces.
sdk::s63::IS57CatalogWriter
Interface for writing to the S-57 catalog file.
Definition: s57_catalog_writer_interface.h:28
sdk::s63::IS57CatalogWriter::SaveCatalog
virtual SDKResult SDK_CALLTYPE SaveCatalog(const sdk::s63::S57CatalogEntriesStorageSP &catalog_storage, const sdk::base::SDKStreamSP &stream) const =0
Saves data from the catalog storage to a specified stream.