 |
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_BASE_SDK_RESOURCE_INTERFACE_H_
11 #define SDK_BASE_SDK_RESOURCE_INTERFACE_H_
79 SDKString& resource_class)
const throw() = 0;
82 SDKString& resource_type)
const throw() = 0;
85 SDKString& name)
const throw() = 0;
88 SDKString& path)
const throw() = 0;
91 SDKString& path)
const throw() = 0;
94 SDKUInt64& size)
const throw() = 0;
103 SDK_DECLARE_IID(ISDKResourceInfo)
105 class ISDKResourceStorage :
public ISDKResource
120 SDKResourceSP& resource)
throw() = 0;
123 SDKResourceStorageEnumeratorSP& enumerator)
throw() = 0;
127 const SDKString& name, SDKResourceSP& resource)
throw() = 0;
130 const SDKString& name)
throw() = 0;
132 SDK_IMPLEMENT_IID(ISDKResourceStorage)
133 SDK_END_INTERFACE(ISDKResourceStorage)
135 SDK_DECLARE_IID(ISDKResourceStorage)
145 virtual
SDKResult SDK_CALLTYPE
GetNext(SDKResourceSP& resource) throw() = 0;
147 SDK_IMPLEMENT_IID(ISDKResourceStorageEnumerator)
148 SDK_END_INTERFACE(ISDKResourceStorageEnumerator)
150 SDK_DECLARE_IID(ISDKResourceStorageEnumerator)
158 virtual SDKResult SDK_CALLTYPE Create (
const SDKString& resource_type,
161 virtual SDKResult SDK_CALLTYPE Delete (
const SDKString& name) = 0;
163 virtual SDKResult SDK_CALLTYPE Copy(
const SDKString& name,
166 virtual SDKResult SDK_CALLTYPE Move(
const SDKString& name,
169 virtual SDKResult SDK_CALLTYPE IsExist(
const SDKString& name) = 0;
187 virtual SDKResult SDK_CALLTYPE GetRawData(SDKUInt8** buffer,
188 SDKUInt64* size)
throw() = 0;
191 virtual SDKResult SDK_CALLTYPE GetSize(SDKUInt64& size)
throw() = 0;
196 SDK_DECLARE_IID(ISDKMemoryBuffer)
201 #endif // SDK_BASE_SDK_STORAGE_INTERFACE_H_
Provides access to members that return information about and manage the resource object.
Definition: generic_resource_interface.h:53
@ kOpenResourceFlags_Read
Create/open resource only for reading.
Definition: generic_resource_interface.h:42
@ kOpenResourceFlags_Create
Creates resource or truncate if exists.
Definition: generic_resource_interface.h:44
Provides access to members that manage the resource object.
Definition: generic_resource_interface.h:154
@ kOpenResourceFlags_Append
Open resouce and search to the end.
Definition: generic_resource_interface.h:45
Interfaces wrapper with reference count control.
@ kOpenResourceFlags_Exclusive
Create/open resource in exclusive mode.
Definition: generic_resource_interface.h:46
@ kOpenResourceFlags_Text
Open file in text mode (default is binary).
Definition: generic_resource_interface.h:47
@ kOpenResourceFlags_Write
Create/open resource only for writing.
Definition: generic_resource_interface.h:43
virtual SDKResult SDK_CALLTYPE GetSize(SDKUInt64 &size) const =0
Returns the size of the resource.
virtual SDKResult SDK_CALLTYPE GetResource(const SDKString &name, SDKResourceSP &resource)=0
Returns a specified resource.
virtual SDKResult SDK_CALLTYPE EnumResources(SDKResourceStorageEnumeratorSP &enumerator)=0
Enumerates resources.
SDKInt32 SDKResult
Type of all error or return codes which SDK functions can end with.
Definition: sdk_results.h:17
virtual SDKResult SDK_CALLTYPE GetName(SDKString &name) const =0
Returns the name of the resource.
Generic data stream interface.
A smart pointer class for managing SDK components interface pointers.
Definition: sdk_ref_ptr.h:23
virtual SDKResult SDK_CALLTYPE GetClass(SDKString &resource_class) const =0
Returns the class of the resource.
Common base SDK interfaces.
Provides access to members that control the named properties.
Definition: named_properties_interface.h:29
OpenResourceFlags
Resource creation flags (first part of resource creation context)
Definition: generic_resource_interface.h:40
Provides access to members that return information about the memory buffer.
Definition: generic_resource_interface.h:183
virtual SDKResult SDK_CALLTYPE Reset()=0
Resets the enumeration sequence to the beginning.
Provides access to members that return information about the resource object.
Definition: generic_resource_interface.h:74
Base interface for all SDK interfaces.
Definition: sdk_component_interface.h:41
virtual SDKResult SDK_CALLTYPE GetInfo(SDKResourceInfoSP &info)=0
Returns information.
virtual SDKResult SDK_CALLTYPE GetParentPath(SDKString &path) const =0
Returns the path to the parent of the resource.
virtual SDKResult SDK_CALLTYPE GetNext(SDKResourceSP &resource)=0
Retrieves a next resource in the enumeration sequence.
virtual SDKResult SDK_CALLTYPE GetFullPath(SDKString &path) const =0
Returns the full path to the resource.
Object generic named properties interface.
virtual SDKResult SDK_CALLTYPE CreateResource(const SDKString &resource_type, const SDKString &name, SDKResourceSP &resource)=0
Creates a resource.
virtual SDKResult SDK_CALLTYPE OpenStream(SDKUInt64 context, SDKStreamSP &stream)=0
Opens stream.
virtual SDKResult SDK_CALLTYPE DeleteResource(const SDKString &name)=0
Deletes a specified resource.
FWD_DECL_INTERFACE(ILWEParserWrapper)
Provides a wrapper around the message parser to get, add or remove the.
virtual SDKResult SDK_CALLTYPE GetType(SDKString &resource_type) const =0
Returns the type of the resource.